Hi,

Sorry but it's difficult to understand your test case.

Le 29/04/2014 23:41, Seri a écrit :

Hi Lukas,

I've tested in test environment, 1 client, 1 haproxy, 1 backend server.
Surely, no network, backend server issues.

In uri balance method, no issues happened.
In uri_param balance method, issues are reproduced.

Your thread title talks about http-keep-alive broken but here you say that issues occurs with balance uri_param (url_param ?), where in the configuration below, I guess it uses a backend with "option http-server-close".


My test configuration as belows,

frontend http-in
     bind :80
     acl rr hdr(host) -i test1.a.com
     acl uri hdr(host) -i test2.a.com

     use_backend bk_uri if uri
     default_backend rr

Here, your test configuration uses a backend that doesn't exist. It's difficult to guess if we are working on the same tests as you.


backend bk_rr
     id 101
     balance roundrobin
     option http-keep-alive
     option prefer-last-server

     server  test01 1.1.1.1:80 maxconn 2000

backend bk_param
     balance url_param q
     hash-type consistent
     option http-server-close

     server  test01 1.1.1.1:80 maxconn 2000

# ab -n 10 -k http://test2.a.com/test.jpg?q=111
with ab tool, this is reproduced easily.

Reading the thread, it's not clear to me which issues you are reproducing.
Providing the logs (and maybe the traffic capture) should help a lot (considering "option httplog" is enabled in you defaults).


--
Cyril Bonté

Reply via email to