On Tue, Oct 24, 2006, John Labovitz wrote:
> I've got a VPS over at Rimu with only 128MB.  This means I have to be  
> quite conscious of memory usage.  But at the moment it's serving  
> eight static sites and four Rails sites, with Postgres on the  
> backend.  Admittedly, they're all very low volume; in fact, I've  
> slimmed it down so there's only one dispatch.fcgi running for each  
> Rails app.  (The machine is also a full SMTP+IMAP mail server, which  
> actually uses more memory than I thought.)

>From my end, I'm running a similar environment, though I've got 6 rails
apps and no static sites (though very soon I'll be running a PHP app) as
well as mod_python for trac.  I'm also on a 128mb rimu vps (thanks for
the rec, John :))

> I like the fact that I can run one instance of lighttpd and serve up  
> the whole thing.  And that the configuration syntax and layout is  
> sane -- I've had way too many years of Apache (and NCSA httpd before  
> that) and am tired of its screaming hydra of XML-but-not-really  
> directives.

I'm running Apache, proxying to mongrel_cluster (but only one listener
per app) and it takes about the same about of RAM as lighty + fcgi did.

You're right, lighty's config file is *awesome*, but I wish it had just
a few more features.  I need mod_python and svn, otherwise I'd probably
still be running lighty.

The apache+mongrel setup is nice, but you have to/get to manage your
mongrels separately which is kind of a pain.  The "single server" model
of apache or lighty with fcgi is really nice in this regard.

For those on debian systems (and I highly recommend going with debian on
rimu, very nice), the debian package for mod_fcgid works really well.
You just need to change your .htaccess's AddType directive to:

AddHandler fcgid-script .fcgi

Ben
_______________________________________________
PDXRuby mailing list
[email protected]
IRC: #pdx.rb on irc.freenode.net
http://lists.pdxruby.org/mailman/listinfo/pdxruby

Reply via email to