Hi,

While debugging some timeouts I noticed a very high total time when request
is being served from haproxy's local cache.

10.0.17.137:45444 [03/Jan/2022:12:38:46.991] web webnode/<CACHE>
0/0/0/0/15263 200 308984 - - LR-- 118/118/74/0/0 0/0 "GET /v1/package
HTTP/1.1"

At the same time there are large responses with total time of few
milliseconds like:

10.0.17.39:51256 [03/Jan/2022:12:38:47.144] web webnode/<CACHE> 0/0/0/0/22
200 588672 - - LR-- 112/112/83/0/0 0/0 "GET /v1/package HTTP/1.1"

Any idea what could cause these high total time values when every other
time is 0?

HAProxy details are:

HAProxy version 2.4.9-f8dcd9f 2021/11/24 - https://haproxy.org/
Status: long-term supported branch - will stop receiving fixes around Q2
2026.
Known bugs: http://www.haproxy.org/bugs/bugs-2.4.9.html
Running on: Linux 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08
EST 2021 x86_64

I have configured it with following experimental directive to maximize
cache usage:

http-request normalize-uri query-sort-by-name

Cache object is used to serve large static files:

cache mycache
    total-max-size          4095
    max-object-size         50000000
    max-age                 600

Would appreciate it if anyone can point out what could cause this behavior.

Thanks,
Sohaib

Reply via email to