Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Toolforge health-check-path
With this, `webservice restart` should perform a no-downtime rolling restart, where Kubernetes only terminates the old pod once the new one is ready. The tool might also be restarted automatically if the health check starts failing (though I’m not sure how often this would happen with the “blank” health check we configure here, which really only confirms uWSGI is running). Add a new /healthz route, and put it in the service.template; also, since this route is going to be hit by a lot of requests, disable logging for it. And since this means we now have an uwsgi.ini file anyway, we might as well also configure automatic log rotation, as documented at [1] – though I prefer a slightly larger maximum file size than suggested there. [1]: https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web/Python#Logs Bug: T341919
- Loading branch information