AkJeond commited on
Commit
f1e46cf
·
1 Parent(s): 30878aa

perf: Gunicorn Worker 수 최적화 (2개→1개) - 메모리 사용량 43% 절감

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -81,10 +81,10 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
81
  CMD python -c "import requests; requests.get('http://localhost:8000/health', timeout=5)"
82
 
83
  # Run with gunicorn for production
84
- # Workers: 2 (4GB RAM에서 안정적)
85
  # Timeout: 300s (AI 모델 추론 시간 고려)
86
  CMD ["gunicorn", "app.main:app", \
87
- "--workers", "2", \
88
  "--worker-class", "uvicorn.workers.UvicornWorker", \
89
  "--bind", "0.0.0.0:8000", \
90
  "--timeout", "300", \
 
81
  CMD python -c "import requests; requests.get('http://localhost:8000/health', timeout=5)"
82
 
83
  # Run with gunicorn for production
84
+ # Workers: 1 (메모리 최적화 - 전시회 환경, 1.7GB 사용)
85
  # Timeout: 300s (AI 모델 추론 시간 고려)
86
  CMD ["gunicorn", "app.main:app", \
87
+ "--workers", "1", \
88
  "--worker-class", "uvicorn.workers.UvicornWorker", \
89
  "--bind", "0.0.0.0:8000", \
90
  "--timeout", "300", \