fix(collector/bridge/gateway): rate limit 구조적 수정 — 점진적 백오프 + adaptive 폴링 + burst-friendly 윈도우

This commit is contained in:
Variet Worker
2026-03-12 22:33:49 +09:00
parent 5cdf7777a5
commit 56de71470d
3 changed files with 110 additions and 36 deletions

View File

@@ -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