Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4734

Sticky sessions and drain not working together

$
0
0

Try lot of things without success
HAPROXY 2.4.3

I need the cookie …

Configuration
defaults
log global
option httplog
mode http
timeout connect 5s
timeout client 25s
timeout server 25s
timeout queue 10s

#Configuration 2.4.3
frontend stats
bind *:8404
stats enable
stats uri /stats
stats refresh 5s

#Configuration 1.5.18
#listen stat *:8404

stats enable

stats uri /stats

stats refresh 5s

frontend front_forms_bevor
mode http
maxconn 3000
bind 10.101.0.150:80
use_backend back_forms_bevor

backend back_forms_bevor
balance leastconn
log global
stick-table type ip size 1m expire 8h
stick on cookie(DWRSESSION)
stick on src
option httpchk HEAD /forms/frmservlet HTTP/1.0
option httpclose
option redispatch 1
retry-on all-retryable-errors
retries 3
http-request disable-l7-retry if METH_POST

http-request set-header X-Forwarded-Host %[req.hdr(host)]

http-request set-header X-Forwarded-Port %[dst_port]

http-request set-header X-Forwarded-Proto http if !{ ssl_fc }

http-request set-header X-Forwarded-Proto https if { ssl_fc }

http-request set-header Forwarded for=%[src];host=%[req.hdr(host)];proto=%[req.hdr(X-Forwarded-Proto)]

server svofmtst01 10.101.0.153:8420 weight 200 maxconn 2500 check cookie svofmtst01
server svofmtst02 10.101.0.154:8420 weight 200 maxconn 2500 check cookie svofmtst02

When I put the server svofmtst01 in drain mode, I’m always connected on svofmtst01 … No way to connect on the second one

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4734

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>