You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
I Luk Kim 7e1a4699e9 fix: request_logs 18GB 블로트 방지 — 7일 retention + autovacuum 강화
원인: request_logs에 cleanup 정책이 없어 65M행이 쌓였다가 DELETE되면서
VACUUM FULL 없이 18GB dead page bloat 발생.
PostgreSQL 메모리/디스크 압박 → API worker OOM kill의 간접 원인.

수정:
- _request_log_cleanup() 백그라운드 코루틴 추가
  → 1시간마다 실행, 7일 초과 request_logs 자동 DELETE
  → start_request_log_flusher()에서 함께 스케줄
- request_logs autovacuum scale_factor 0.2 → 0.01
  → 1% 변경 시 autovacuum 즉시 실행, dead tuple 빠르게 회수

즉각 조치: TRUNCATE request_logs 실행 (25GB → 56kB)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 months ago
..
api fix: OOM kill 방지 — Phase 4 경량화 + Semaphore 3으로 제한 4 months ago
core fix: DB 커넥션 풀 고갈 — pool_timeout 단축 + idle_in_transaction 자동 종료 4 months ago
middleware fix: request_logs 18GB 블로트 방지 — 7일 retention + autovacuum 강화 4 months ago
models fix: error_logs.path VARCHAR(500) → TEXT — 서버 응답 불가 해결 4 months ago
schemas feat: multi-ticker bulk bars endpoints + BF-B ticker normalization 4 months ago
services fix: OOM kill 방지 — Phase 4 경량화 + Semaphore 3으로 제한 4 months ago
utils perf: API 성능 개선 Round 3 — 8개 항목 (P15-P22) 5 months ago
__init__.py Initial commit with full project improvements 5 months ago
main.py perf: API 성능 개선 Round 2 — 9개 항목 (P6-P14) 5 months ago