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.
Worker가 OOM kill로 죽는 것을 확인 (docker inspect: OOMKilled=true). 호스트 메모리: 물리 RAM ~68MB 여유, 스왑 97% 사용 상태. 원인: Phase 4에서 SELECT AlpacaPriceData (전체 ORM 객체) 로드. - 75 ticker × 78 5분봉 = 5,850개 ORM 객체/요청 - SQLAlchemy ORM instrumentation으로 dict 대비 ~10x 메모리 소비 - Semaphore(10) → 최대 10개 요청 동시 처리 = 피크 수백 MB ~ 1GB 수정: - Phase 4: SELECT * → SELECT 7 columns only (ticker, date, OHLCV) → result.all()로 경량 Row namedtuple 반환, ORM 객체 생성 없음 → SQLAlchemy Row는 속성 접근(row.date, row.open 등) 지원 — 엔드포인트 호환 - Semaphore(10) → Semaphore(3): 동시 처리 3개로 제한 → 피크 메모리 ~70% 감소 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
4 months ago | |
|---|---|---|
| .. | ||
| __init__.py | 5 months ago | |
| alpaca.py | 4 months ago | |
| attention.py | 5 months ago | |
| catalog.py | 5 months ago | |
| database.py | 5 months ago | |
| dividends.py | 4 months ago | |
| earnings.py | 4 months ago | |
| error_logs.py | 5 months ago | |
| etf.py | 5 months ago | |
| filings.py | 4 months ago | |
| financial.py | 5 months ago | |
| finra.py | 5 months ago | |
| fred.py | 5 months ago | |
| health.py | 5 months ago | |
| insider.py | 5 months ago | |
| migration.py | 5 months ago | |
| news.py | 5 months ago | |
| overlay.py | 5 months ago | |
| price.py | 4 months ago | |
| request_logs.py | 5 months ago | |
| screener.py | 5 months ago | |
| stocks.py | 5 months ago | |
| universe.py | 5 months ago | |