I have a few tasks that take a while before they get started. Sendmail eg. Is not to happy you cannot set the hostname (in marathon) and then gives a timeout of 1 minute. I think there is something similar when starting openldap. If I enable a regular health check there, it will fail the task before it finished launching. Maybe it is interesting to add an option for this initDelay?
{ "path": "/api/health", "portIndex": 0, "protocol": "MESOS_HTTP", "initDelay": 60, <==== "gracePeriodSeconds": 300, "intervalSeconds": 60, "timeoutSeconds": 20, "maxConsecutiveFailures": 3 }