wg / wrk

Modern HTTP benchmarking tool
Other
37.76k stars 2.93k forks source link

unable to test http with haproxy #150

Open gbjtv opened 9 years ago

gbjtv commented 9 years ago

I'm trying to use wrk to benchmark haproxy. I'm unable to get wrk to successfully run when http keepalives are enabled to backend servers (default behavior in haproxy 1.5) . I have to set "option http-server-close" in the backend section to get around this. Any ideas why wrk is failing when keepalives are enabled? It looks like each thread can make the first http request and get a response but stop sending any more requests.

wg commented 9 years ago

Hi @gbjtv, communication between haproxy and the backend HTTP server doesn't involve wrk, does it? I'm not sure how anything wrk does could affect that part of the pipeline.

gbjtv commented 9 years ago

This is how I am able to replicate.

At this point I run ~/wrk/wrk -c 10 -d 10s -t 10 against

I experience the issue when running against port 9080-9082. wrk seems to hang after the first requests from each thread * connections.

Everything seems to work normally for port 9083 and 9084 which have the http-server-close option set.