Skip to content

Instantly share code, notes, and snippets.

@navicore
Last active August 22, 2016 02:17
Show Gist options
  • Select an option

  • Save navicore/cbfecfea1af7e2d6212ca67bc06f04ed to your computer and use it in GitHub Desktop.

Select an option

Save navicore/cbfecfea1af7e2d6212ca67bc06f04ed to your computer and use it in GitHub Desktop.
marathon-lb and spray.io health check

tried replacing www with {hostname}

HAPROXY_0_BACKEND_HTTP_HEALTHCHECK_OPTIONS= option httpchk GET {healthCheckPath} HTTP/1.1\\r\\nHost:\\ {hostname}\n timeout check {healthCheckTimeoutSeconds}s\n

and tried

  "HAPROXY_0_BACKEND_HTTP_HEALTHCHECK_OPTIONS": "  option  httpchk GET {healthCheckPath} HTTP/1.1\r\nHost: {hostname}\n  timeout check {healthCheckTimeoutSeconds}s\n"

bug get

marathon_lb: Unexpected error!
Traceback (most recent call last):
  File "/marathon-lb/marathon_lb.py", line 1364, in do_reset
    self.__haproxy_map)
  File "/marathon-lb/marathon_lb.py", line 1313, in regenerate_config
    map_array, config_file),
  File "/marathon-lb/marathon_lb.py", line 470, in config
    str(healthCheckPort) if healthCheckPort else ''
KeyError: 'hostname'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment