Skip to content

Instantly share code, notes, and snippets.

@x-cray
Created December 23, 2015 20:59
Show Gist options
  • Save x-cray/8237321e679ac6f6a802 to your computer and use it in GitHub Desktop.
Save x-cray/8237321e679ac6f6a802 to your computer and use it in GitHub Desktop.
frontend internal_http_in:marathon
bind :18080
use_backend cluster:marathon
frontend internal_http_in:chronos
bind :14400
use_backend cluster:chronos
listen internal_http_in:consul
bind :18500
timeout client 600000
timeout server 600000
server local 127.0.0.1:8500
backend cluster:marathon
option forwardfor
option httpchk GET /ping
balance roundrobin
{%- for host, ip in master_nodes.iteritems() %}
server {{ host }} {{ ip }}:8080 check inter 10s
{% endfor -%}
backend cluster:chronos
option forwardfor
option httpchk GET /ping
balance roundrobin
{%- for host, ip in master_nodes.iteritems() %}
server {{ host }} {{ ip }}:4400 check inter 10s
{% endfor -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment