MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Spacedust on 2013-01-05, 02:32:28
-
I got Varnish on port 80 and Apache on port 8080.
How configure mod_rpaf2 properly ?
This config doesn't work:
### MR -- read /usr/local/lxlabs/kloxo/file/apache/conf.d/rpaf.conf.original for full description ###
LoadModule rpaf_module modules/mod_rpaf-2.0.so
RPAFenable On
RPAFsethostname On
# RPAFproxy_ips 127.0.0.1:30080
RPAFproxy_ips 127.0.0.1:8080
RPAFheader X-Forwarded-For
# RPAFheader X-Real-IP
Probably because it's enabled twice in /etc/httpd/conf.d/rpaf.conf and /home/apache/etc/conf.d/rpaf.conf:
[Fri Jan 04 21:36:08 2013] [warn] module rpaf_module is already loaded, skipping
-
Got it - it should be external IP out there not just 127.0.0.1
-
Kloxo-MR still using *.conf from /etc/httpd/conf.d after copy from /home/apache/etc/httpd/conf.d if necessary.
-
Kloxo-MR still using *.conf from /etc/httpd/conf.d after copy from /home/apache/etc/httpd/conf.d if necessary.
I've disabled /etc/httpd/conf.d/rpaf.conf and it works ok ;)
-
Post your benchmark about Varnish
-
Post your benchmark about Varnish
Apache + php_fpm_event:
Server Software: Apache/2.2.23
Server Port: 8080
Document Path: /phpinfo.php
Document Length: 90765 bytes
Concurrency Level: 200
Time taken for tests: 52.707 seconds
Complete requests: 1000
Failed requests: 119
(Connect: 0, Receive: 0, Length: 119, Exceptions: 0)
Write errors: 0
Total transferred: 90911868 bytes
HTML transferred: 90764868 bytes
Requests per second: 18.97 [#/sec] (mean)
Time per request: 10541.482 [ms] (mean)
Time per request: 52.707 [ms] (mean, across all concurrent requests)
Transfer rate: 1684.41 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 496 1536.2 0 9027
Processing: 44 6042 7651.6 4841 52625
Waiting: 42 6037 7651.7 4836 52620
Total: 114 6538 7720.0 4855 52680
Percentage of the requests served within a certain time (ms)
50% 4855
66% 4892
75% 5193
80% 5611
90% 7878
95% 13810
98% 51921
99% 52295
100% 52680 (longest request)
Varnish + Apache + php_fpm_event:
Server Software: Apache/2.2.23
Server Port: 80
Document Path: /phpinfo.php
Document Length: 91008 bytes
Concurrency Level: 200
Time taken for tests: 53.204 seconds
Complete requests: 1000
Failed requests: 902
(Connect: 0, Receive: 0, Length: 902, Exceptions: 0)
Write errors: 0
Total transferred: 91155878 bytes
HTML transferred: 91008878 bytes
Requests per second: 18.80 [#/sec] (mean)
Time per request: 10640.745 [ms] (mean)
Time per request: 53.204 [ms] (mean, across all concurrent requests)
Transfer rate: 1673.18 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 8 16.1 0 42
Processing: 101 7565 8244.5 5126 47815
Waiting: 95 7559 8244.8 5120 47814
Total: 138 7574 8247.4 5126 47852
Percentage of the requests served within a certain time (ms)
50% 5126
66% 5532
75% 5741
80% 6780
90% 9593
95% 26089
98% 46372
99% 46713
100% 47852 (longest request)
-
Anything besides only apache config pass easily Loadimpact
Blitz.io its no more free but i have 10 credits if you want to try 250 users or more apache varnish vs nginx ( now i take over a site a rush on nginx only)
-
Something its not right up there seems not doing anything only passing to apache
-
Something its not right up there seems not doing anything only passing to apache
I only cache for 2 seconds to prevent overload. Caching isn't possible on production hosting.