0

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
  }
],
wikier
  • 2,517
  • 2
  • 26
  • 39

1 Answers1

1

If you need/want HTTP HEAD based health checks then COMMAND-based are your only option. The HTTP-based support GET only. See also the Marathon docs for more details.

Michael Hausenblas
  • 13,162
  • 4
  • 52
  • 66