โก Performance Optimization (Quick Tips)
Keep it simple. Start with defaults, then tune only if needed.
โ Recommended Settings
# Development (laptops)
CHART_MAX_CONCURRENCY=2
CHART_MAX_ROWS=100000
# Production (8โ16 GB RAM)
CHART_MAX_CONCURRENCY=8
CHART_TOOL_TIMEOUT_MS=60000
REDIS_URL=redis://redis:6379
๐งช Monitor
docker compose logs -f
curl http://localhost:8000/health
๐ If Slow
- Lower
CHART_MAX_CONCURRENCY
- Reduce input size; aggregate before charting
- Prefer JSON/HTML over image formats during iteration
๐งฐ When Scaling
- Enable Redis cache (
REDIS_URL
) - Increase CPU/RAM before tuning timeouts
- Horizontal scale HTTP service if needed
For advanced tuning, see advanced/configuration.md
.