trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

rate_limit: Adds a --rate option for RPS limits

Open zwoop opened this issue 1 year ago • 1 comments

zwoop avatar Apr 19 '24 14:04 zwoop

Being a token bucket algorithm, which refills tokens every 25ms evenly distributed, it's not 100% accurate. Doing a h2load test, full blast, with ATS configured with --rate=10000, I get

leif@odin ~ » /opt/h3tools/bin/h2load -D 60 -t 24 -n 100000000 --h1  -c 900 `cat /tmp/urls-frigg.txt | xargs` | tail -9
finished in 60.11s, 508939.12 req/s, 200.47MB/s
requests: 30536347 total, 30537247 started, 30536347 done, 609490 succeeded, 29926857 failed, 0 errored, 0 timeout
status codes: 609490 2xx, 0 3xx, 29926857 4xx, 0 5xx

This is 10,158 RPS which are not rejected, which is pretty close to the target of 10k.

zwoop avatar Apr 19 '24 16:04 zwoop