ECS 内无法提高 CPU 运行负载能力
回 1楼云上珠玑的帖子
刚看了一下,我的实例规则组是 n4,共享计算型实例。。这个有什么影响吗
-------------------------
回 3楼云上珠玑的帖子
用的 apache benchemark 压测的,测试过程见下面。其中,ip 地址被我打码了。我分别测得 apache2.4 和 openresty1.13,他们提供同样的页面的。
### 压测 apache c10 n300
➜ ~ ab -c 10 -n 300 http://101.xx.xx.xx:84/This is ApacheBench, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking 101.xx.xx.xx (be patient)Completed 100 requestsCompleted 200 requestsCompleted 300 requestsFinished 300 requestsServer Software: Apache/2.4.18Server Hostname: 101.xx.xx.xxServer Port: 84Document Path: /Document Length: 6184 bytesConcurrency Level: 10Time taken for tests: 15.848 secondsComplete requests: 300Failed requests: 0Total transferred: 1912800 bytesHTML transferred: 1855200 bytesRequests per second: 18.93 [#/sec] (mean)Time per request: 528.282 [ms] (mean)Time per request: 52.828 [ms] (mean, across all concurrent requests)Transfer rate: 117.86 [Kbytes/sec] receivedConnection Times (ms)min mean[+/-sd] median maxConnect: 10 16 58.9 12 1032Processing: 16 438 1125.1 128 13828Waiting: 15 152 581.2 51 7172Total: 28 454 1126.5 143 13843Percentage of the requests served within a certain time (ms)50% 14366% 32275% 37780% 56190% 81695% 138198% 329499% 7235100% 13843 (longest request)
### 压测 openresty c10 n300
➜ ~ ab -c 10 -n 300 http://101.xx.xx.xx:8001/This is ApacheBench, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking 101.xx.xx.xx (be patient)Completed 100 requestsCompleted 200 requestsCompleted 300 requestsFinished 300 requestsServer Software: openrestyServer Hostname: 101.xx.xx.xxServer Port: 8001Document Path: /Document Length: 6776 bytesConcurrency Level: 10Time taken for tests: 15.974 secondsComplete requests: 300Failed requests: 0Total transferred: 2106900 bytesHTML transferred: 2032800 bytesRequests per second: 18.78 [#/sec] (mean)Time per request: 532.472 [ms] (mean)Time per request: 53.247 [ms] (mean, across all concurrent requests)Transfer rate: 128.80 [Kbytes/sec] receivedConnection Times (ms)min mean[+/-sd] median maxConnect: 11 51 172.3 15 1064Processing: 12 460 536.2 294 3384Waiting: 11 148 316.7 42 3358Total: 24 510 554.3 324 3398Percentage of the requests served within a certain time (ms)50% 32466% 51275% 77180% 96190% 124995% 165598% 216399% 2268100% 3398 (longest request)
整个压测过程中,cpu 使用率就没超过 5% ...
-------------------------
回 4楼langll的帖子
找到原因了,原来是达到网络瓶颈了。。。毕竟只有 1Mb 的带宽
赞0
踩0