Ubuntu
Nginx
Mariadb
php-fpm
+ redis
상당히 효과적이다. 동시접속 처리수 증가는 nginx + php-fpm, 처리실패 관리는 redis
ubuntu@jowoncni1:~$ ab -n 15000 -c 1500 https://poll.jowoncni.com/limesurvey
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking poll.jowoncni.com (be patient)
Completed 1500 requests
Completed 3000 requests
Completed 4500 requests
Completed 6000 requests
Completed 7500 requests
Completed 9000 requests
Completed 10500 requests
Completed 12000 requests
Completed 13500 requests
Completed 15000 requests
Finished 15000 requests
Server Software: nginx/1.18.0
Server Hostname: poll.jowoncni.com
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
Server Temp Key: X25519 253 bits
TLS Server Name: poll.jowoncni.com
Document Path: /limesurvey
Document Length: 0 bytes
Concurrency Level: 1500
Time taken for tests: 17.452 seconds
Complete requests: 15000
Failed requests: 1
(Connect: 0, Receive: 0, Length: 1, Exceptions: 0)
Non-2xx responses: 15000
Total transferred: 2475192 bytes
HTML transferred: 186 bytes
Requests per second: 859.52 [#/sec] (mean)
Time per request: 1745.157 [ms] (mean)
Time per request: 1.163 [ms] (mean, across all concurrent requests)
Transfer rate: 138.51 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 4 1146 314.1 1237 2124
Processing: 53 483 287.4 399 1442
Waiting: 1 343 217.7 264 1388
Total: 57 1629 171.7 1616 3210
Percentage of the requests served within a certain time (ms)
50% 1616
66% 1643
75% 1668
80% 1681
90% 1718
95% 1834
98% 1977
99% 2577
100% 3210 (longest request)
8cores , 8Gb 램 상황에서 위와 같은 처리결과: