Permalink
Browse files

The version to be used for JDV cluster in domain mode

  • Loading branch information...
vchintal committed Sep 22, 2016
1 parent af2a0e6 commit 3cad0ee77b78ae918eb17330c3e48d1e35163f3d
Showing with 11 additions and 24 deletions.
  1. +11 −24 haproxy.cfg
View
@@ -35,9 +35,8 @@ global
# turn on stats unix socket
stats socket /var/lib/haproxy/stats
# utilize system-wide crypto-policies
ssl-default-bind-ciphers PROFILE=SYSTEM
ssl-default-server-ciphers PROFILE=SYSTEM
ssl-default-bind-options no-sslv3 no-tls-tickets
ssl-server-verify none
#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
@@ -46,10 +45,7 @@ global
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
@@ -66,25 +62,16 @@ defaults
#---------------------------------------------------------------------
frontend main
bind *:5000
acl url_static path_beg -i /static /images /javascript /stylesheets
acl url_static path_end -i .jpg .gif .png .css .js
use_backend static if url_static
default_backend app
#---------------------------------------------------------------------
# static backend for serving up images, stylesheets and such
#---------------------------------------------------------------------
backend static
balance roundrobin
server static 127.0.0.1:4331 check
mode tcp
default_backend jdv
#---------------------------------------------------------------------
# round robin balancing between the various backends
#---------------------------------------------------------------------
backend app
balance roundrobin
server app1 127.0.0.1:5001 check
server app2 127.0.0.1:5002 check
server app3 127.0.0.1:5003 check
server app4 127.0.0.1:5004 check
backend jdv
mode tcp
option tcplog
balance leastconn
server jdv1 127.0.0.1:31000 check
server jdv2 127.0.0.1:31100 check
server jdv3 127.0.0.1:31200 check

0 comments on commit 3cad0ee

Please sign in to comment.