QubitProducts / bamboo

HAProxy auto configuration and auto service discovery for Mesos Marathon
Apache License 2.0
793 stars 214 forks source link

Healthcheck improvments #57

Open j1n6 opened 9 years ago

j1n6 commented 9 years ago

Also related to #56 #62

j1n6 commented 9 years ago

There are a couple of requirements where the healthcheck should/shouldn't happen:

nickpoorman commented 9 years ago

When doing health checks from somewhere like Route 53 it's nice to be able to check the status of marathon. A sensible default might be to add the following to the haproxy template to get the marathon status and subsequently check HAProxy is up and routing.

frontend http-in
  ...
    acl marathon-status path_beg -i /status
    use_backend status if marathon-status

backend status
    balance leastconn
    option httpclose
    option forwardfor

    server localhost 127.0.0.1:8000