Look like the protocols HTTP
or MESOS_HTTP
only do GET
request.
This works:
"healthChecks": [
{
"protocol": "COMMAND",
"command": "curl -I http://0.0.0.0:5000/",
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3
}
],
But I found it to much for such simple tasks... I would expect something simpler, something like "method":"HEAD"
:
"healthChecks": [
{
"protocol": "HTTP",
"path": "/",
"portIndex": 5000,
"method": "HEAD",
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3
}
],