Hello,
We have been using haproxy for a while, but noticed that haproxy is
failing on large POST (several GB). I couldn't find anything in the docs
related to this. Here are the relent log entries. The first post
determines that the files is not on the server and the second tries to
post the file.
Jan 18 13:32:47 localhost.localdomain haproxy[21307]:
128.111.185.111:49313 [18/Jan/2011:13:32:47.467] www bisque/bisque1
0/0/0/62/62 200 262 - - ---- 0/0/0/0/0 0/0 "POST /dn/savefile HTTP/1.1"
Jan 18 13:33:05 localhost.localdomain haproxy[21307]:
128.111.185.111:49314 [18/Jan/2011:13:33:05.718] www www/<NOSRV>
-1/-1/-1/-1/2 400 187 - - PR-- 0/0/0/0/0 0/0 "POST /dn/savefile HTTP/1.1"
Can anyone point us to a solution?
Thanks,
Kris
# this config needs haproxy-1.1.28 or haproxy-1.2.1
global
log 127.0.0.1 local0 debug
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults
log global
mode http
option httplog
option dontlognull
option http-server-close
retries 3
option redispatch
maxconn 2000
contimeout 500000
clitimeout 500000
srvtimeout 500000
balance roundrobin
#listen bisque 127.0.0.1:8080
# server bisque1 localhost:9000 check maxconn 1 cookie
# server bisque2 localhost:9001 check maxconn 1 cookie
# server bisque3 localhost:9002 check maxconn 1 cookie
# server bisque4 localhost:9003 check maxconn 1 cookie
listen stats:8001 0.0.0.0:8001
mode http
stats uri /
backend apache
mode http
option httpclose
option redispatch
server www1 127.0.0.1:8080 check inter 2000
backend bisque
mode http
option httpclose
option redispatch
server bisque1 localhost:9000 check maxconn 4 cookie
server bisque2 localhost:9001 check maxconn 4 cookie
server bisque3 localhost:9002 check maxconn 4 cookie
server bisque4 localhost:9003 check maxconn 4 cookie
frontend www
mode http
bind 0.0.0.0:80
acl rabbit path_beg /rabbit
acl static path_beg /static
use_backend apache if rabbit
use_backend apache if static
default_backend bisque
# listen appli1-rewrite 0.0.0.0:10001
# cookie SERVERID rewrite
# balance roundrobin
# server app1_1 192.168.34.23:8080 cookie app1inst1 check inter 2000
rise 2 fall 5
# server app1_2 192.168.34.32:8080 cookie app1inst2 check inter 2000
rise 2 fall 5
# server app1_3 192.168.34.27:8080 cookie app1inst3 check inter 2000
rise 2 fall 5
# server app1_4 192.168.34.42:8080 cookie app1inst4 check inter 2000
rise 2 fall 5
# listen appli2-insert 0.0.0.0:10002
# option httpchk
# balance roundrobin
# cookie SERVERID insert indirect nocache
# server inst1 192.168.114.56:80 cookie server01 check inter 2000 fall 3
# server inst2 192.168.114.56:81 cookie server02 check inter 2000 fall 3
# capture cookie vgnvisitor= len 32
# option httpclose # disable keep-alive
# rspidel ^Set-cookie:\ IP= # do not let this cookie tell our
internal IP address
# listen appli3-relais 0.0.0.0:10003
# dispatch 192.168.135.17:80
# listen appli4-backup 0.0.0.0:10004
# option httpchk /index.html
# option persist
# balance roundrobin
# server inst1 192.168.114.56:80 check inter 2000 fall 3
# server inst2 192.168.114.56:81 check inter 2000 fall 3 backup
# listen ssl-relay 0.0.0.0:8443
# option ssl-hello-chk
# balance source
# server inst1 192.168.110.56:443 check inter 2000 fall 3
# server inst2 192.168.110.57:443 check inter 2000 fall 3
# server back1 192.168.120.58:443 backup
# listen appli5-backup 0.0.0.0:10005
# option httpchk *
# balance roundrobin
# cookie SERVERID insert indirect nocache
# server inst1 192.168.114.56:80 cookie server01 check inter 2000 fall 3
# server inst2 192.168.114.56:81 cookie server02 check inter 2000 fall 3
# server inst3 192.168.114.57:80 backup check inter 2000 fall 3
# capture cookie ASPSESSION len 32
# srvtimeout 20000
# option httpclose # disable keep-alive
# option checkcache # block response if set-cookie &
cacheable
# rspidel ^Set-cookie:\ IP= # do not let this cookie tell our
internal IP address
# #errorloc 502 http://192.168.114.58/error502.html
# #errorfile 503 /etc/haproxy/errors/503.http
# errorfile 400 /etc/haproxy/errors/400.http
# errorfile 403 /etc/haproxy/errors/403.http
# errorfile 408 /etc/haproxy/errors/408.http
# errorfile 500 /etc/haproxy/errors/500.http
# errorfile 502 /etc/haproxy/errors/502.http
# errorfile 503 /etc/haproxy/errors/503.http
# errorfile 504 /etc/haproxy/errors/504.http