- Adjust
CACHE_EXPIRYvia env var. - Use Redis by mounting external cache.
- Increase FastAPI workers:
uvicorn --workers 4. - Use Gunicorn with Uvicorn workers in production.
- Set
LOG_LEVEL=INFOorDEBUGas needed. - Rotate logs by mounting a log driver.
- Expose
/metricswith Prometheus.