fix: 서버 응답불능 — limit-concurrency 20 + asyncio yield points
BaseHTTPMiddleware는 요청당 2개 asyncio task를 생성한다. --limit-concurrency 100은 여전히 200개 task가 event loop를 포화시켜 health check 포함 모든 요청이 block됐다. 변경 사항: - docker-compose.yml: --limit-concurrency 100 → 20 (세마포어 10개 처리 + 10개 대기, 나머지 20초과 시 503으로 즉시 반환) - alpaca_price_service.py: upsert 루프 청크 사이 + Phase 4 ORM 일괄 생성 후 await asyncio.sleep(0) 추가 — 동기 CPU 블로킹 중 event loop yield 보장 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
e25f7295a6
commit
ffaed4fc9d
Loading…
Reference in New Issue