mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-19 05:05:59 +08:00
saas: new rate limit policy
This commit is contained in:
parent
a9fe036ddc
commit
a3412ef180
@ -285,11 +285,11 @@ export class CrawlerHost extends RPCHost {
|
||||
const rateLimitPolicy = auth.getRateLimits('CRAWL') || [
|
||||
parseInt(user.metadata?.speed_level) >= 2 ?
|
||||
RateLimitDesc.from({
|
||||
occurrence: 2000,
|
||||
occurrence: 5000,
|
||||
periodSeconds: 60
|
||||
}) :
|
||||
RateLimitDesc.from({
|
||||
occurrence: 200,
|
||||
occurrence: 500,
|
||||
periodSeconds: 60
|
||||
})
|
||||
];
|
||||
|
@ -200,11 +200,11 @@ export class SearcherHost extends RPCHost {
|
||||
const rateLimitPolicy = auth.getRateLimits(rpcReflect.name.toUpperCase()) || [
|
||||
parseInt(user.metadata?.speed_level) >= 2 ?
|
||||
RateLimitDesc.from({
|
||||
occurrence: 400,
|
||||
occurrence: 1000,
|
||||
periodSeconds: 60
|
||||
}) :
|
||||
RateLimitDesc.from({
|
||||
occurrence: 40,
|
||||
occurrence: 100,
|
||||
periodSeconds: 60
|
||||
})
|
||||
];
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 69808307131d4fbd8ef0026f5d2dcb90ebdfad8c
|
||||
Subproject commit 02279d88bc3940a08a92cb18cf8877d57cb49b82
|
Loading…
x
Reference in New Issue
Block a user