I am running git clone https://github.com/mesosphere/marathon.git to download the latest marathon. And I knew from the marathon document that we can set the "healthChecks" property to control the work.
but when I start the marathon, I can’t find the "healthChecks" property anywhere,
And I'm sure that the marathon I had was the last.
Can anyone tell me how to use "healthChecks"?
This is a marathon dock for "healthChecks"
And you can see it at http://mesosphere.imtqy.com/marathon/docs/rest-api.html#post-v2-apps
"healthChecks": [ { "protocol": "HTTP", "path": "/health", "gracePeriodSeconds": 3, "intervalSeconds": 10, "portIndex": 0, "timeoutSeconds": 10, "maxConsecutiveFailures": 3 }, { "protocol": "TCP", "gracePeriodSeconds": 3, "intervalSeconds": 5, "portIndex": 1, "timeoutSeconds": 5, "maxConsecutiveFailures": 3 }, { "protocol": "COMMAND", "command": { "value": "curl -f -X GET http://$HOST:$PORT0/health" }, "maxConsecutiveFailures": 3 } ],
source share