Hi Atha,

Atha Kouroussis wrote:
> Output from ab against haproxy:
> Concurrency Level:      200
> Time per request:       49.986 [ms] (mean)

If you check these numbers, you'll notice that with a time of 49 ms per
request and 200 concurrent requests, you;ll end up at exactly 4000
requests / second:

(1000 ms / (49 ms / req)) * (200 req / s) = 4081 req / s

Thus, in order to achieve a higher throughput, you have two options:

* You could try to reduce the time required per request, which probably
helps a certain amount,
* or you could increase the concurrency of your requests with ab. Since
in the real world, you'll probably get fewer requests per source form
way more sources, this would probably simulate your actual production
load even better.

Best,
Holger

Reply via email to