You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
╰─➤ wrk --version
wrk 4.2.0 [kqueue] Copyright (C) 2012 Will Glozer
Usage: wrk <options><url>
Options:
-c, --connections <N> Connections to keep open
-d, --duration <T> Duration of test
-t, --threads <N> Number of threads to use
-s, --script <S> Load Lua script file
-H, --header <H> Add header to request
--latency Print latency statistics
--timeout <T> Socket/request timeout
-v, --version Print version details
Numeric arguments may include a SI unit (1k, 1M, 1G)
Time arguments may include a time unit (2s, 2m, 2h)
╰─➤ uname -a
Linux T4GPU 5.15.0-84-generic #93-Ubuntu SMP Tue Sep 5 17:16:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
The installed wrk is apt installed apt install wrk.
╰─➤ wrk --version 1 ↵
wrk debian/4.1.0-3build1 [epoll] Copyright (C) 2012 Will Glozer
Usage: wrk <options><url>
Options:
-c, --connections <N> Connections to keep open
-d, --duration <T> Duration of test
-t, --threads <N> Number of threads to use
-s, --script <S> Load Lua script file
-H, --header <H> Add header to request
--latency Print latency statistics
--timeout <T> Socket/request timeout
-v, --version Print version details
Numeric arguments may include a SI unit (1k, 1M, 1G)
Time arguments may include a time unit (2s, 2m, 2h)
But something unexpected happened, the RPS became very low, only 1.4k, and the latency became very high, 45ms! This is unusual!
As you can see, there are no latency issues with accessing using python scripts, but why is the latency of wrk access so high? What are the ways to troubleshoot this?
The text was updated successfully, but these errors were encountered:
I have an api service http://192.168.38.223:9100/
Deployed using docker on machine 192.168.38.223
I then use wrk on mac to stress test the http://192.168.38.223:9100/ interface
The result is very good, the RPS can reach 2w+.
I then used the wrk tool on 192.168.38.223 to stress test the http://192.168.38.223:9100/ interface again
But something unexpected happened, the RPS became very low, only 1.4k, and the latency became very high, 45ms! This is unusual!
I ran a python script on the 192.168.38.223 machine
output result
As you can see, there are no latency issues with accessing using python scripts, but why is the latency of wrk access so high? What are the ways to troubleshoot this?
The text was updated successfully, but these errors were encountered: