From 98a39b39ab5cd62affa8caab3f079d81b9f23dab Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 19 May 2024 12:59:29 -0700 Subject: [PATCH] Nick: increased rate limits --- apps/api/src/services/rate-limiter.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/api/src/services/rate-limiter.ts b/apps/api/src/services/rate-limiter.ts index d4834a1..29b14f8 100644 --- a/apps/api/src/services/rate-limiter.ts +++ b/apps/api/src/services/rate-limiter.ts @@ -2,21 +2,21 @@ import { RateLimiterRedis } from "rate-limiter-flexible"; import * as redis from "redis"; import { RateLimiterMode } from "../../src/types"; -const MAX_CRAWLS_PER_MINUTE_STARTER = 2; -const MAX_CRAWLS_PER_MINUTE_STANDARD = 4; +const MAX_CRAWLS_PER_MINUTE_STARTER = 3; +const MAX_CRAWLS_PER_MINUTE_STANDARD = 5; const MAX_CRAWLS_PER_MINUTE_SCALE = 20; -const MAX_SCRAPES_PER_MINUTE_STARTER = 10; -const MAX_SCRAPES_PER_MINUTE_STANDARD = 15; -const MAX_SCRAPES_PER_MINUTE_SCALE = 30; +const MAX_SCRAPES_PER_MINUTE_STARTER = 20; +const MAX_SCRAPES_PER_MINUTE_STANDARD = 30; +const MAX_SCRAPES_PER_MINUTE_SCALE = 50; -const MAX_SEARCHES_PER_MINUTE_STARTER = 10; -const MAX_SEARCHES_PER_MINUTE_STANDARD = 15; -const MAX_SEARCHES_PER_MINUTE_SCALE = 30; +const MAX_SEARCHES_PER_MINUTE_STARTER = 20; +const MAX_SEARCHES_PER_MINUTE_STANDARD = 30; +const MAX_SEARCHES_PER_MINUTE_SCALE = 50; const MAX_REQUESTS_PER_MINUTE_PREVIEW = 5; const MAX_REQUESTS_PER_MINUTE_ACCOUNT = 20; -const MAX_REQUESTS_PER_MINUTE_CRAWL_STATUS = 120; +const MAX_REQUESTS_PER_MINUTE_CRAWL_STATUS = 150; export const redisClient = redis.createClient({ url: process.env.REDIS_URL,