Created
March 27, 2015 13:22
-
-
Save wkf/41df2540cee23b576bae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: haproxy -*- | |
# vi: set ft=haproxy : | |
defaults | |
log global | |
mode http | |
option forwardfor | |
option dontlognull | |
option redispatch | |
option http-server-close | |
retries 3 | |
maxconn 2000 | |
timeout connect 5s | |
timeout client 1h | |
timeout server 1h | |
frontend http | |
bind *:9000 | |
use_backend api if { path_beg -i /api } | |
use_backend riemann if { path_beg -i /events } | |
use_backend beaker if { path_beg -i /beaker } | |
default_backend web | |
backend api | |
balance roundrobin | |
server api-server localhost:3000 | |
backend web | |
balance roundrobin | |
server web-server localhost:8081 | |
backend riemann | |
balance roundrobin | |
server riemann-server localhost:5556 | |
backend beaker | |
balance roundrobin | |
server beaker-server localhost:8801 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment