MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Development => Topic started by: MRatWork on 2013-10-06, 11:56:26
-
This is information about benckmarking of Web/Webcache servers:
-------------------------------------------------
No. Web Server requests/second
-------------------------------------------------
1. Apache 8.04
2. Hiawatha 8.76
3. Lighttpd 8.74
4. Nginx 8.89
5. Nginx + microcache *) 514.75
4,089.80
11,213.65
6. Hiawatha-proxy 8.82
7. Lighttpd-proxy 8.65
8. Nginx-proxy 8.42
9. Nginx-proxy + microcache *) 278.59
3,066.68
10,992.15
10. Hiawatha + Trafficserver **) 7.84
11. Hiawatha + Varnish *) 307.93
10794.71
10897.40
-------------------------------------------------
Note:
1. System: (with little mod/fix)
A. Kloxo-MR: 6.5.1.a-2013100403
B. OS: CentOS release 6.4 (Final) x86_64
C. Apps:
1. MySQL: mysql-5.5.34-1.el6.x86_64
2. PHP: php53u-5.3.27-1.ius.el6.x86_64
3. Httpd: --uninstalled--
4. Lighttpd: --uninstalled--
5. Hiawatha: --uninstalled--
6. Nginx: --uninstalled--
7. Cache: --uninstalled--
8. Dns: nsd-3.2.15-5.el6.x86_64
9. Qmail: qmail-toaster-1.03-1.3.27.mr.el6.x86_64
- with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64
D. Php-type (for Httpd/proxy): php-fpm_event
E. Memory:
total used free shared buffers cached
Mem: 616 491 124 0 10 259
-/+ buffers/cache: 222 394
Swap: 0 0 0
2. All testing in local
3. Testing with step:
yum install httpd-tools -y
sh /script/clearcache3
sh /script/restart-all
ab -n 1000 -c 10 http://bugfix.potissima.com/
4. *) testing 3 x running 'ab -n 1000 -c 10 http://bugfix.potissima.com/'
with idle between testing less then 10 seconds (according to caching time for 'microcache')
**) look like still something trouble with Trafficserver where no cache effect; the same result for Squid Cache Proxy
5. Testing application: Wordpress 3.6.1 + Mesocolumn Theme
Summaries:
1. For websites with high-traffic (low websites amount) better use nginx or nginx-proxy with microcache (enable in incoming 6.5.1)
2. For websites in 'share-hosting' bussiness (high website amount) better nginx-proxy with microcache + web cache server (like varnish or trafficserver)
Additional Info:
- Hiawatha have 'microcache' effect with add:
<?php
header("X-Hiawatha-Cache: 10");
?>
in /index.php
-
looking forward to nginx-proxy with microcache
-
can you install wp supercache than try to run Benchmark .
-
I will not testing cache plugins because it's outside of my work.
The best choices:
1. Use nginx/nginx-proxy --> if possible, use nginx instead nginx-proxy
2. enable microcache in nginx/nginx-proxy
2. Install php xcache, and
3. Install application's cache plugin
-
how to enable microcache in nginx-proxy in 6.5.0
-
Remember, no significance effect for low-traffic website. Better if you have website with 100,000-1,000,000 hits/day.
For Kloxo-MR 6.5.0, follow this steps:
1. copy proxy.conf to custom.proxy.conf and php-fpm.conf to custom.php-fpm.conf inside /home/nginx/conf/globals
2. Modified custom.proxy.conf
from:
...
### MR -- just enough remove # below for enable nginx cache
#fastcgi_cache fcache;
fastcgi_cache_valid 200 1h;
fastcgi_cache_valid 301 1h;
fastcgi_cache_valid 302 1h;
fastcgi_cache_valid any 1m;
...
to:
...
### MR -- just enough remove # below for enable nginx cache
fastcgi_cache fcache;
#fastcgi_cache_valid 200 1h;
#fastcgi_cache_valid 301 1h;
#fastcgi_cache_valid 302 1h;
#fastcgi_cache_valid any 1m;
## for microcache for fastcgi
fastcgi_cache_valid 200 10s;
fastcgi_cache_use_stale updating;
fastcgi_max_temp_file_size 1M;
...
and custom.proxy.conf
from:
...
### MR -- just enough remove # below for enable cache
#proxy_cache pcache;
proxy_cache_valid 10m;
proxy_cache_valid 404 1m;
...
to:
...
### MR -- just enough remove # below for enable cache
proxy_cache pcache;
#proxy_cache_valid 10m;
#proxy_cache_valid 404 1m;
## for microcache for proxy
proxy_cache_valid 200 10s;
proxy_cache_use_stale updating;
proxy_max_temp_file_size 1M;
...
2. run 'sh /script/fixweb'
3. run 'sh /script/restart-web'
-
Please test Varnish/Apache Traffic Server + nginxproxy + microcache + Apache to see if there is any benefit of Varnish of ATS ;)
-
Please test Varnish/Apache Traffic Server + nginxproxy + microcache + Apache to see if there is any benefit of Varnish of ATS ;)
I am still have a problem with ATS.
But, Varnish+nginxproxy+microcache is near the same result compare to nginxproxy+microcache or varnish+nginxproxy.
So, in high-traffic website, using varnish is useless. Enough using nginxproxy+microcache.
-
In my latest test, only nginx and hiawatha are possible to implementing 'microcache' (with different way). Apache and lighttpd not work.
-
So I'm sticking with nginxproxy+microcache ;)
What about Apache 2.4. Is it ready ?
-
In my latest test, only nginx and hiawatha are possible to implementing 'microcache' (with different way). Apache and lighttpd not work.
Have you implemented Hiawatha for Kloxo-MR yet? I followed your post at https://hiawatha-webserver.org/forum/topic/1510
My vps is on Nginx but I had a ddos attack and the server admin is testing Hiawatha implementation instead. I'd like to keep my Kloxo-MR control panel.
-
VPS for this forum already using for hiawatha-proxy.