]> git.kaiwu.me - haproxy.git/commit
MINOR: haload: add -T to add a think time after each response
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 25 Aug 2026 13:55:36 +0000 (15:55 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 26 Aug 2026 16:16:35 +0000 (18:16 +0200)
commit76da364d75ab5830d69dfba16a049d2c89934230
tree7edc060b23e039d32c414049c1206009fe8f3f85
parentb563ab7460d755c39569e585fea696513dab2bee
MINOR: haload: add -T to add a think time after each response

Add -T <time>, like h1load's option of the same name: after a
response, wait <time> ms (with a bit of random jitter) before sending
the next request, instead of sending it right away. This simulates a
real user pausing between actions.

-T is positional, like -post or -head: it applies to the URLs that
follow it on the command line, not to all of them.

If -R is also set, the wait used is the larger of the two: the rate
limit and the think time never fight each other, whichever asks for
more waiting wins.

-ee takes over as soon as an error is detected: -T is ignored while it
is still probing, and applies again once probing is done and the
normal load resumes.
doc/haload.txt
include/haproxy/haload.h
src/haload.c
src/haload_init.c