我正在运行一些快速测试来尝试估算启动时和未来的hw成本。Benchmarking EC2
规格
的Ubuntu 11.04纳蒂64位 的Nginx 0.8.54 m1.large
我觉得我必须错在这里做一些事情。我正在尝试估计在添加额外的机器之前同时支持多少个 。我使用的Django应用程序服务器,但现在我只是测试的nginx服务器的静态index.html页面
结果:
$ ab -n 10000 http://ec2-107-20-9-180.compute-1.amazonaws.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking ec2-107-20-9-180.compute-1.amazonaws.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software: nginx/0.8.54
Server Hostname: ec2-107-20-9-180.compute-1.amazonaws.com
Server Port: 80
Document Path: /
Document Length: 151 bytes
Concurrency Level: 1
Time taken for tests: 217.748 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 3620000 bytes
HTML transferred: 1510000 bytes
Requests per second: 45.92 [#/sec] (mean)
Time per request: 21.775 [ms] (mean)
Time per request: 21.775 [ms] (mean, across all concurrent requests)
Transfer rate: 16.24 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 9 11 10.3 10 971
Processing: 10 11 9.7 11 918
Waiting: 10 11 9.7 11 918
Total: 19 22 14.2 21 982
Percentage of the requests served within a certain time (ms)
50% 21
66% 21
75% 22
80% 22
90% 22
95% 23
98% 25
99% 35
100% 982 (longest request)
所以我之前甚至添加Django的后端,基本nginx的设置只能晚餐45次/秒? 这太可怕了,对于m1.large ...不是?
我在做什么错?
是负载风暴这最好的服务? – josephmisiti 2012-01-06 19:42:28
“最佳”很难界定。这绝对不是最复杂的。但我喜欢loadstorm,因为它们对于我来说便宜,易用且功能强大。 – Leopd 2012-01-06 19:47:31