I'm the worst xd
The parameter is actually `--health-check-path <path-for-the-check>`.
Sorry for the confusion.
On 02/29 13:57, David Caro wrote:
Hi all!
Good news, we have enabled health checks for all the webservices running on toolforge.
There's no action required on your part, the next time you restart or stop/start your webservice, it will have a tcp health check by default (just making sure something is listening).
The most interesting feature though is being able to pass a url to use as HTTP health check.
To do so you can pass `--health-check-url /path/to/health` to your `toolforge webservice start` command, and toolforge will automatically restart your webservice if it stops responding to that path (you can change the path to whatever you want, ex. `/`).
Note that this url will be queried quite often, so try to avoid hitting a page that uses many resources.
Also a reminder that you can find this and smaller user-facing updates about the Toolforge platform features here: https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Changelog
Original task: https://phabricator.wikimedia.org/T341919
Cheers!
-- David Caro SRE - Cloud Services Wikimedia Foundation https://wikimediafoundation.org/ PGP Signature: 7180 83A2 AC8B 314F B4CE 1171 4071 C7E1 D262 69C3
"Imagine a world in which every single human being can freely share in the sum of all knowledge. That's our commitment."