On Aug 29, 2006, at 2:23 PM, Martin wrote:

> Also have some questions?
>
> 1) Why did you use mod_python instead of SCGI? I thought SCGI was fast
> and easy to deploy (what I've heard... no experience to back that up)

mod_scgi and mod_fcgi don't get along. I'm using fcgi with Trac, as 
running Trac through mod_python doesn't work (subversion binding issue 
in 1.3.0 and Trac, which is still not fixed). Also, Apache can't check 
FCGI or SCGI processes very well to find out when the process has 
stopped responding (which has happened on occasion). Generally though, 
I've heard of SCGI setups working quite well, and I believe Ian Bicking 
uses that setup. I'd be interested in seeing his setup and 
configuration. :)

> 2) How come you chose apache? Most rails-people claim that Lighttpd
> serves scripts/apps faster than apache.

lighttpd is still rather immature for a project, and has some issues. I 
have no doubt it is faster, but since I have only one IP on my hosting 
machine, this means I'd need to proxy into the lighttpd app from Apache 
due to the other sites I'm serving up from Apache. This complicates the 
configuration and a marginal speedup is not worth the hassle. Lighttpd 
also doesn't have the caching abilities I noted.

Apache is an incredibly mature technology, and having the knowledge 
that when Apache is up, my site is up is quite nice. As ToddG notes, 
its a bit more reliable as well because the main Apache process watches 
its children and if one of them dies, starts up a new one. It's a setup 
that results in a shorter configuration, and less places for something 
to go wrong, which means should something go wrong, its typically 
faster to remedy.

There is the issue of Apache being a little heavier-weight as a result 
of mod_python, but in my experience its pretty minimal, especially for 
an easier setup. If you have to deal with sysadmin at a company, 
they'll definitely feel more comfortable with Apache + mod_python for 
similar reasons. Trying to deploy a multi-app setup (Apache + lighttpd 
+ SCGI/FCGI process), across a cluster of half a dozen machines is 
substantially more of a pain than just Apache.

Cheers,
Ben


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to