Welcome! Log In Create A New Profile

Advanced

Re: Best practices for running Perl?

Jonathan Vanasco
April 30, 2009 04:49PM
If you are truly committed to running Perl...

your best option would be this:

Port 80 : Nginx serves static and proxies to Perl system
Port 80xx : Perl system ; either apache+fcgi or apache+mod_perl ...
you might be able to run things under perlbal via plugins, but i dunno.

The ideal situation would be running fcgi under nginx, but I found it
a PITA to set up / maintain.

I caved in and ran some perl apps through apache+mod_fcgi , and its
pretty nice. Nginx handles most of the requests itself, so 2 apache
children are handling a decent amount of traffic.

I have a few production projects running nginx on 80 and proxying back
to mod_perl enabled apache. They work great, but they're apps
designed to utilize a bunch of MP + Apache2 features... nginx was
brought in a few years ago to increase improvement... and it was
miraculous: nginx does awesome queuing/handoff of the mp traffic, so
all apache does is process mod_perl fast and instantly. no lazy
client issues, no wasting resources on bloated servers.

in practice.. i haven't found /that/ much difference between a fine-
tuned Apache+ModPerl , PHP ( via apache+mod_php or fcgi ) , Python
( django / pylons ) setup. Sure you can have a system where php+fcgi
is taking up 50MB of ram while Apache+ModPerl is taking up 150... but
to tweak the performance to equal one another you'd use a PHP cache
that takes up 135MB of ram... making everything pretty darn negligble.
Subject Author Posted

Best practices for running Perl?

Mark Aiken April 30, 2009 02:46PM

Re: Best practices for running Perl?

Chris Cortese April 30, 2009 02:51PM

Re: Best practices for running Perl?

Chris Cortese April 30, 2009 02:54PM

Re: Best practices for running Perl?

Mark Aiken April 30, 2009 03:06PM

Re: Best practices for running Perl?

Gabriel Ramuglia April 30, 2009 03:08PM

Re: Best practices for running Perl?

Mark Aiken April 30, 2009 03:38PM

Re: Best practices for running Perl?

Jim Ohlstein April 30, 2009 04:15PM

Re: Best practices for running Perl?

Gabriel Ramuglia April 30, 2009 04:22PM

Re: Best practices for running Perl?

Jonathan Vanasco April 30, 2009 04:49PM

Re: Best practices for running Perl?

Chris Cortese April 30, 2009 05:01PM

Re: Best practices for running Perl?

luben karavelov May 01, 2009 08:25PM

Re: Best practices for running Perl?

Maxim Dounin April 30, 2009 04:09PM

Re: Best practices for running Perl?

Mark Aiken April 30, 2009 04:21PM

Re: Best practices for running Perl?

mike April 30, 2009 04:05PM

Re: Best practices for running Perl?

luben karavelov May 01, 2009 08:43PM

Re: Best practices for running Perl?

mike May 01, 2009 09:17PM

Re: Best practices for running Perl?

luben karavelov May 01, 2009 10:10PM

Re: Best practices for running Perl?

mike May 01, 2009 11:52PM

Re: Best practices for running Perl?

luben karavelov May 02, 2009 10:48AM

Re: Best practices for running Perl?

luben karavelov May 02, 2009 10:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready