No description
Single sync worker means a slow request to / (compute_leaderboard, ~17s on dev / longer on h4a's compact CPU slice) blocks every other request, including the /healthz probe. With 2 worker processes and 4 threads each, slow requests on / no longer wedge the gunicorn queue, and /healthz responds promptly even while a /api/calculate is in flight. |
||
|---|---|---|
| data/raw | ||
| docs | ||
| scripts | ||
| src/pluginbattery | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| Dockerfile | ||
| Procfile | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
pluginbattery
Backtest the actual ROI of a home battery against real historical electricity prices and solar irradiance.
Answers: "If I had owned this battery (plug-in or installed) over the last N years, what would it have actually saved me?"
See CLAUDE.md for project intent, open decisions, and assumptions.