HI All
I am very new to Haproxy . Using docs I have configured .
My Scenario is as below
We have 3 server behind haproxy. we have not configured backend kind of things
as still not able to manage the load . It goes to one server some time . Even in
stats showing the queue .
The server are in cloud and configuration for 2 servers are 34.2 GB of memory
and one is 17gb RAM .
what we expect is
1. The load should be balanced according to servers
2. we need to redirect only one site as www.xyz.com only from some ip range .
my current setting is (which is copied from some blogs and to be frank dont know
the exact usages), still reading the articles .
Version : HA-Proxy version 1.3.15.6 2008/11/04
# this config needs haproxy-1.1.28 or haproxy-1.2.1
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults
log global
option httplog
option abortonclose
mode http
clitimeout 600000
srvtimeout 600000
contimeout 400000
retries 4
option redispatch
option httpclose
listen load_balanced 10.x.x.x:80 # http
balance roundrobin
option redispatch
cookie SERVERID insert nocache
option httpchk GET /test.html
appsession ASP.NET_SessionId len 64 timeout 3h prefix
server HA1 10.x.x.x cookie server01 check weight 12 maxconn 750 check
inter 400
server HA2 10.x.x.x cookie server02 check weight 12 maxconn 200 check
inter 400
server HA3 10.x.x.x cookie server03 check weight 12 maxconn 750 check
inter 400
capture cookie vgnvisitor= len 32
reqadd X-Forwarded-Proto:\ http
option forwardfor
stats enable
stats hide-version
stats scope .
stats realm Haproxy\ Statistics
stats uri /haproxy?stats
stats auth admin:12345
option contstats
option checkcache
rspidel ^Set-cookie:\ IP=
Also help me what should be the weight and whats the use of that
In advance thanks
Ajay