Nick: increased rate limits
This commit is contained in:
parent
18fa15df25
commit
98a39b39ab
@ -2,21 +2,21 @@ import { RateLimiterRedis } from "rate-limiter-flexible";
|
|||||||
import * as redis from "redis";
|
import * as redis from "redis";
|
||||||
import { RateLimiterMode } from "../../src/types";
|
import { RateLimiterMode } from "../../src/types";
|
||||||
|
|
||||||
const MAX_CRAWLS_PER_MINUTE_STARTER = 2;
|
const MAX_CRAWLS_PER_MINUTE_STARTER = 3;
|
||||||
const MAX_CRAWLS_PER_MINUTE_STANDARD = 4;
|
const MAX_CRAWLS_PER_MINUTE_STANDARD = 5;
|
||||||
const MAX_CRAWLS_PER_MINUTE_SCALE = 20;
|
const MAX_CRAWLS_PER_MINUTE_SCALE = 20;
|
||||||
|
|
||||||
const MAX_SCRAPES_PER_MINUTE_STARTER = 10;
|
const MAX_SCRAPES_PER_MINUTE_STARTER = 20;
|
||||||
const MAX_SCRAPES_PER_MINUTE_STANDARD = 15;
|
const MAX_SCRAPES_PER_MINUTE_STANDARD = 30;
|
||||||
const MAX_SCRAPES_PER_MINUTE_SCALE = 30;
|
const MAX_SCRAPES_PER_MINUTE_SCALE = 50;
|
||||||
|
|
||||||
const MAX_SEARCHES_PER_MINUTE_STARTER = 10;
|
const MAX_SEARCHES_PER_MINUTE_STARTER = 20;
|
||||||
const MAX_SEARCHES_PER_MINUTE_STANDARD = 15;
|
const MAX_SEARCHES_PER_MINUTE_STANDARD = 30;
|
||||||
const MAX_SEARCHES_PER_MINUTE_SCALE = 30;
|
const MAX_SEARCHES_PER_MINUTE_SCALE = 50;
|
||||||
|
|
||||||
const MAX_REQUESTS_PER_MINUTE_PREVIEW = 5;
|
const MAX_REQUESTS_PER_MINUTE_PREVIEW = 5;
|
||||||
const MAX_REQUESTS_PER_MINUTE_ACCOUNT = 20;
|
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({
|
export const redisClient = redis.createClient({
|
||||||
url: process.env.REDIS_URL,
|
url: process.env.REDIS_URL,
|
||||||
|
Loading…
Reference in New Issue
Block a user