ab -c 1000 -n 50000 http://192.168.0.201:7481/test/index.txt
1000个并发请求50000次 测试输出
1 2 3 4 5 6 7 8 9 10
Percentage of the requests served within a certain time (ms) 50% 180 66% 186 75% 193 80% 198 90% 214 95% 1182 98% 1205 99% 2019 100% 7589 (longest request)
我们调整rgw_thread_pool_size = 128再测试一轮
基本无法完成测试
1 2 3 4 5 6 7 8 9 10 11
[root@lab204 ~]# ab -c 1000 -n 50000 http://192.168.0.201:7481/test/index.txt This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.0.201 (be patient) Completed 5000 requests Completed 10000 requests apr_socket_recv: Connection reset by peer (104) Total of 14351 requests completed
我们再加大参数配置rgw_thread_pool_size = 1024
1 2 3 4 5 6 7 8 9 10 11
[root@lab204 ~]# ab -c 1000 -n 50000 http://192.168.0.201:7481/test/index.txt Percentage of the requests served within a certain time (ms) 50% 281 66% 286 75% 290 80% 293 90% 299 95% 305 98% 310 99% 313 100% 1309 (longest request)
[root@lab204 ~]# ab -c 3000 -n 50000 http://192.168.0.201:7481/test/index.txt This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.0.201 (be patient) socket: Too many open files (24)