wrk pressure test,8 cpu 16g ram,qps below 100k? #5950
Unanswered
laughingyear
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Is your upstream, APISIX and wrk all on the same machine? Perhaps wrk and upstream are competing for system resources. |
Beta Was this translation helpful? Give feedback.
1 reply
-
What is your expected performance? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I chang apisix/conf/config.yaml ,add below to use port 7890:
nginx_config:
main_configuration_snippet: |
daemon on;
http_configuration_snippet: |
server
{
listen 7890;
server_name _;
access_log off;
i add apisix route:
curl "http://127.0.0.1:9080/apisix/admin/upstreams/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
{
"type": "roundrobin",
"nodes": {
"127.0.0.1:7890": 1
}
}'
curl "http://127.0.0.1:9080/apisix/admin/routes/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
{
"uri": "/",
"host": "127.0.0.1",
"upstream_id": "1"
}'
then i use wrk:
wrk -t8 -c10000 -d30 --latency http://127.0.0.1:9080/
Running 30s test @ http://127.0.0.1:9080/
8 threads and 10000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 39.25ms 161.09ms 1.97s 96.44%
Req/Sec 10.24k 4.24k 25.63k 65.88%
Latency Distribution
50% 9.36ms
75% 16.10ms
90% 29.94ms
99% 1.03s
2446920 requests in 30.10s, 410.63MB read
Socket errors: connect 0, read 0, write 0, timeout 10656
Non-2xx or 3xx responses: 157
Requests/sec: 81296.78
Transfer/sec: 13.64MB
command top shows:
Beta Was this translation helpful? Give feedback.
All reactions