Skip to content

Commit

Permalink
fix: render throttled to 700 service creations per hour
Browse files Browse the repository at this point in the history
  • Loading branch information
TBonnin committed Jan 16, 2025
1 parent 14a96a6 commit d95d05d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jobs/lib/runner/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function getPlan(node: Node): 'starter' | 'standard' | 'pro' {
// Render has a hard limit of 1000 service creations per hour
// and also recommends to limit ourselves to 20 per minute
// We are throttling to 50 per minute max (to allow for some burst)
// as well as 600 per hour to always keep some buffer
// as well as 700 per hour to always keep some buffer
class CombinedThrottler {
private throttlers: RateLimiterAbstract[];

Expand All @@ -180,7 +180,7 @@ const serviceCreationThrottler = await (async () => {
};
const hourThrottlerOpts = {
keyPrefix: 'hour',
points: envs.RENDER_SERVICE_CREATION_MAX_PER_HOUR || 600,
points: envs.RENDER_SERVICE_CREATION_MAX_PER_HOUR || 700,
duration: 3600,
blockDuration: 0
};
Expand Down

0 comments on commit d95d05d

Please sign in to comment.