Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2020-12-04, 08:44:32

Author Topic: How to configure mod_rpaf2 when using Varnish on port 80  (Read 6294 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,042
  • Karma: +1/-0
    • View Profile
I got Varnish on port 80 and Apache on port 8080.

How configure mod_rpaf2 properly ?

This config doesn't work:

Quote
### 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:

Code: [Select]
[Fri Jan 04 21:36:08 2013] [warn] module rpaf_module is already loaded, skipping
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,042
  • Karma: +1/-0
    • View Profile
Re: How to configure mod_rpaf2 when using Varnish on port 80
« Reply #1 on: 2013-01-05, 02:37:58 »
Got it - it should be external IP out there not just 127.0.0.1
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to configure mod_rpaf2 when using Varnish on port 80
« Reply #2 on: 2013-01-05, 10:57:51 »
Kloxo-MR still using *.conf from /etc/httpd/conf.d after copy from /home/apache/etc/httpd/conf.d if necessary.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,042
  • Karma: +1/-0
    • View Profile
Re: How to configure mod_rpaf2 when using Varnish on port 80
« Reply #3 on: 2013-01-05, 19:53:59 »
Quote from: "MRatWork"
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 ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Tsanten

  • Global Moderator
  • Junior Member
  • *****
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: How to configure mod_rpaf2 when using Varnish on port 80
« Reply #4 on: 2013-01-05, 20:09:08 »
Post your benchmark about Varnish
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,042
  • Karma: +1/-0
    • View Profile
Re: How to configure mod_rpaf2 when using Varnish on port 80
« Reply #5 on: 2013-01-05, 20:35:08 »
Quote from: "tsanten"
Post your benchmark about Varnish

Quote
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:

Quote
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)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Tsanten

  • Global Moderator
  • Junior Member
  • *****
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: How to configure mod_rpaf2 when using Varnish on port 80
« Reply #6 on: 2013-01-05, 22:09:39 »
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)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Tsanten

  • Global Moderator
  • Junior Member
  • *****
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: How to configure mod_rpaf2 when using Varnish on port 80
« Reply #7 on: 2013-01-05, 22:41:22 »
Something its not right up there seems not doing anything only passing to apache
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,042
  • Karma: +1/-0
    • View Profile
Re: How to configure mod_rpaf2 when using Varnish on port 80
« Reply #8 on: 2013-01-05, 22:46:23 »
Quote from: "tsanten"
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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.038 seconds with 22 queries.

web stats analysis