mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding metrics to a single server, let's see how these shake out.
This commit is contained in:
parent
90725d14c1
commit
8e177cdce0
1 changed files with 6 additions and 0 deletions
|
@ -75,6 +75,7 @@ frontend public
|
|||
use_backend nginx if { path_beg /favicon }
|
||||
use_backend nginx if { path_beg /crossdomain/ }
|
||||
use_backend nginx if { path_beg /robots }
|
||||
use_backend metrics if { path_beg /metrics }
|
||||
#use_backend self if { path_beg /munin/ }
|
||||
use_backend db_metrics if { hdr_end(host) -i metrics.newsblur.com }
|
||||
use_backend consul_manager if { hdr_end(host) -i consul.newsblur.com }
|
||||
|
@ -150,6 +151,11 @@ backend node_images
|
|||
http-check expect rstatus 200|301
|
||||
server-template node-images 1 _node-images._tcp.service.nyc1.consul:8088 check inter 2000ms resolvers consul resolve-opts allow-dup-ip
|
||||
|
||||
backend metrics
|
||||
option httpchk GET /_haproxychk
|
||||
http-check expect rstatus 200|301
|
||||
server app-django1 app-django1.node.nyc1.consul:8000 check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
||||
backend node_socket
|
||||
balance roundrobin
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
|
Loading…
Add table
Reference in a new issue