You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John ORourke <jo...@o-rourke.org> on 2007/11/07 18:38:18 UTC
caching reverse proxy config+init scripts
Hi folks,
I'm about to write a generic set of init scripts and config files to
make setting up dual apache servers (one light proxy/cache/ssl, one
heavy mod_perl) easy.
Am I reinventing the wheel?
If not I'll post a link here when I'm done.
cheers
John
Re: caching reverse proxy config+init scripts
Posted by Octavian Rasnita <or...@gmail.com>.
From: "John ORourke" <jo...@o-rourke.org>
> Seriously though, it looks as though there are 5-10 good front end server
> options which support the following to various degrees:
>
> - reverse proxy
> - caching
> - load balancing
> - static file serving
>
> There is no clear choice since our setups range from single low spec boxes
> to multi-server solutions with load balancing and big fat caches.
>
> Does anyone fancy doing an unbiased comparison for perl.apache.org?
Something like that would be very helpful indeed, especially that those
servers evolve continuously, and an information which is a year old, is too
old to be considered.
Octavian
Re: caching reverse proxy config+init scripts
Posted by Jonathan Vanasco <jv...@2xlp.com>.
On Nov 8, 2007, at 1:40 PM, John ORourke wrote:
>>>> Pound (http://www.apsis.ch/pound/index_html) is light-weight,
>>>> easy to
>>> I can disagree -- nginx does everything that pound does, plus
>>> will handle your vanilla
>
> FLAME WAR!!!1!1!
well its not meant to flame... your options are this:
a)
pound
apache-vanilla
apache-mod_perl
or
b1)
apache-vanilla+proxy
apache-mod_perl
b2)
nginx
apache-mod_perl
b2 has the least preferences
if you're serving static content, go with nginx. if you're not, go
with pound. differnet tool for different jobs.
> Seriously though, it looks as though there are 5-10 good front end
> server options which support the following to various degrees:
>
> - reverse proxy
> - caching
> - load balancing
> - static file serving
>
> There is no clear choice since our setups range from single low
> spec boxes to multi-server solutions with load balancing and big
> fat caches.
>
> Does anyone fancy doing an unbiased comparison for perl.apache.org?
I'd suggest another approach:
lets all opt-in (offlist?) to state what our favorite front-end it,
and our experience on it in those 4 areas.
then we'll have the people of each app agree on their config and
description - then a central person will coordinate. maybe even do a
quick bench?
i *could* write something, but I'd spend 1/2 the paper shittalking
lighttpd for my own experience having memory leaks / process growth;
i'm decent with squid, but awful with pound. i'm pretty positive
everyone else here will be similar but to different apps.
Re: caching reverse proxy config+init scripts
Posted by John ORourke <jo...@o-rourke.org>.
Octavian Rasnita wrote:
> At the address
> http://www.guindilla.eu/blog/2006/12/31/deployement-nginx-reverse-proxy-my-network/
>
>
> I found the text below. Does anyone know if it is still true?
>>> Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to
>> I can disagree -- nginx does everything that pound does, plus will
>> handle your vanilla
FLAME WAR!!!1!1!
Seriously though, it looks as though there are 5-10 good front end
server options which support the following to various degrees:
- reverse proxy
- caching
- load balancing
- static file serving
There is no clear choice since our setups range from single low spec
boxes to multi-server solutions with load balancing and big fat caches.
Does anyone fancy doing an unbiased comparison for perl.apache.org?
John
Re: caching reverse proxy config+init scripts
Posted by Octavian Rasnita <or...@gmail.com>.
At the address
http://www.guindilla.eu/blog/2006/12/31/deployement-nginx-reverse-proxy-my-network/
I found the text below. Does anyone know if it is still true?
Squid and Apache were discarded because too heavy. I did not want another
performance hole in my already strained server.
Pound does not serve any content. Furthermore, it uses important quantities
of RAM and has limited documentation.
Perlbal does seem to lack documentation, as does Varnish, another otherwise
nice-looking piece of software. Maybe in the future...
Finally, Lighttpd is known for it's memory leaking, important number of bugs
and spotty documentation.
Update: I've discovered HAProxy, Pen and Balance so I've added them. Pen and
Balance seem to be simple TCP proxies, and thus not exactly what I'm looking
for. I added them for completeness. HAProxy looks nice though.
I've decided to use Nginx. It has all functionalities I was looking for, has
a very good reputation of stability, speed and scalability, relatively good
documentation and I was feeling adventurous. As I would see later, they also
have a very responsive mailing list.
Octavian
----- Original Message -----
From: "Jonathan Vanasco" <jv...@2xlp.com>
To: "Clinton Gormley" <cl...@traveljury.com>
Cc: "modperl list" <mo...@perl.apache.org>
Sent: Thursday, November 08, 2007 5:57 PM
Subject: Re: caching reverse proxy config+init scripts
>
> On Nov 8, 2007, at 5:50 AM, Clinton Gormley wrote:
>
>> Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to
>> configure, fast, stable, and makes the whole SSL and load balancing dead
>> easy.
>
> I can disagree -- nginx does everything that pound does, plus will handle
> your vanilla static files and even use fcgi to handle php and other stuff
>
> its heavenly
>
Re: caching reverse proxy config+init scripts
Posted by John ORourke <jo...@o-rourke.org>.
Jonathan Vanasco wrote:
>> Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to
> I can disagree -- nginx does everything that pound does, plus will
> handle your vanilla static files and even use fcgi to handle php and
> other stuff
Reading these responses I think a generic config is required that can
work with various front-end servers - pound, lighttpd, nginx and
apache. What I want to achieve is something that allows us all to avoid
having to write new config files to fit in with whatever the current
favourite distro uses.
The requirement really came out of moving a typical dual-apache setup
from RedHat-style to Debian-style, and finding the Debian-style apache
config setup completely different. It would also be nice to make use of
<IfDefine> sections in the Apache config to easily switch between
different types of setup - single server, dual-apache, apache+nginx etc.
cheers
John
Re: caching reverse proxy config+init scripts
Posted by Jonathan Vanasco <jv...@2xlp.com>.
On Nov 8, 2007, at 5:50 AM, Clinton Gormley wrote:
> Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to
> configure, fast, stable, and makes the whole SSL and load balancing
> dead
> easy.
I can disagree -- nginx does everything that pound does, plus will
handle your vanilla static files and even use fcgi to handle php and
other stuff
its heavenly
Re: caching reverse proxy config+init scripts
Posted by Clinton Gormley <cl...@traveljury.com>.
> Although, I would go for something like pound doing the proxying for
> me, instead of mod_proxy
I can't agree more!
Pound (http://www.apsis.ch/pound/index_html) is light-weight, easy to
configure, fast, stable, and makes the whole SSL and load balancing dead
easy.
Pound++
Clint
Re: caching reverse proxy config+init scripts
Posted by de...@gmail.com.
Randal is the master wizard, so you might wanna read that article in detail.
Although, I would go for something like pound doing the proxying for
me, instead of mod_proxy
I like to run apache on an unprivileged port, so that's an added
bonus, plus pound will take care of ssl too.
On 11/8/07, Randal L. Schwartz <me...@stonehenge.com> wrote:
> >>>>> "John" == John ORourke <jo...@o-rourke.org> writes:
>
> John> Hi folks,
> John> I'm about to write a generic set of init scripts and config files to
> make
> John> setting up dual apache servers (one light proxy/cache/ssl, one heavy
> mod_perl)
> John> easy.
>
> John> Am I reinventing the wheel?
>
> John> If not I'll post a link here when I'm done.
>
> You can start with what I did in
> http://www.stonehenge.com/merlyn/LinuxMag/col38.html
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
> training!
>
Re: caching reverse proxy config+init scripts
Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "John" == John ORourke <jo...@o-rourke.org> writes:
John> Hi folks,
John> I'm about to write a generic set of init scripts and config files to make
John> setting up dual apache servers (one light proxy/cache/ssl, one heavy mod_perl)
John> easy.
John> Am I reinventing the wheel?
John> If not I'll post a link here when I'm done.
You can start with what I did in http://www.stonehenge.com/merlyn/LinuxMag/col38.html
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!