fix(collector/bridge/gateway): rate limit 구조적 수정 — 점진적 백오프 + adaptive 폴링 + burst-friendly 윈도우
This commit is contained in:
@@ -26,9 +26,9 @@ from aiohttp import web
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Rate limiting
|
||||
RATE_LIMIT_WINDOW = 1.0 # seconds
|
||||
RATE_LIMIT_MAX = 30 # max requests per window per IP (Collector needs ~15-20/cycle)
|
||||
# Rate limiting — burst-friendly: 10s window absorbs async loop wake-up bursts
|
||||
RATE_LIMIT_WINDOW = 10.0 # seconds (was 1.0 — too strict for burst patterns)
|
||||
RATE_LIMIT_MAX = 100 # max requests per window per IP
|
||||
COMMAND_TTL = 1800 # 30 min — stale commands auto-deleted
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user