Add ngx_cache_purge module to Nginx
Posted: Sun Aug 09, 2015 6:57 pm
I wish the Nginx can add 3'rd module ngx_cache_purge (https://github.com/FRiCKLE/ngx_cache_purge/) in the Vesta. Because the Nginx proxy cache is beating Varnish. As the two testing result below shows the proxy cache performance was impressive.
So, if Vesta can add the ngx_cache_purge module to Nginx, it will bring more flexible for font-end application like WordPress. Now I'm changing the cache proxy from Varnish to Nginx proxy cache for RAM and CPU consume, and the SSL integrate was better than using Varnish.
Result of Varnish a/b testing
Result of Proxy cache a/b testing (cache path = tmpfs)
So, if Vesta can add the ngx_cache_purge module to Nginx, it will bring more flexible for font-end application like WordPress. Now I'm changing the cache proxy from Varnish to Nginx proxy cache for RAM and CPU consume, and the SSL integrate was better than using Varnish.
Result of Varnish a/b testing
Code: Select all
Server Software: nginx
Server Port: 80
Document Length: 6240 bytes
Concurrency Level: 500
Time taken for tests: 0.843 seconds
Complete requests: 5000
Failed requests: 24
(Connect: 0, Receive: 0, Length: 24, Exceptions: 0)
Write errors: 0
Non-2xx responses: 24
Total transferred: 33168248 bytes
HTML transferred: 31054704 bytes
Requests per second: 5932.19 [#/sec] (mean)
Time per request: 84.286 [ms] (mean)
Time per request: 0.169 [ms] (mean, across all concurrent requests)
Transfer rate: 38429.76 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 4.6 0 20
Processing: 2 30 27.7 18 235
Waiting: 2 30 27.7 18 235
Total: 6 31 31.4 18 235
Percentage of the requests served within a certain time (ms)
50% 18
66% 19
75% 23
80% 35
90% 86
95% 124
98% 129
99% 131
100% 235 (longest request)
Code: Select all
Server Software: nginx
Server Port: 80
Document Length: 7247 bytes
Concurrency Level: 500
Time taken for tests: 0.326 seconds
Complete requests: 5000
Failed requests: 0
Write errors: 0
Total transferred: 38060000 bytes
HTML transferred: 36235000 bytes
Requests per second: 15344.91 [#/sec] (mean)
Time per request: 32.584 [ms] (mean)
Time per request: 0.065 [ms] (mean, across all concurrent requests)
Transfer rate: 114067.81 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 5 5.2 3 25
Processing: 2 6 5.4 5 213
Waiting: 1 5 5.4 4 213
Total: 6 11 8.9 8 216
Percentage of the requests served within a certain time (ms)
50% 8
66% 8
75% 8
80% 12
90% 30
95% 34
98% 34
99% 35
100% 216 (longest request)