Which is efficient fastcgi or mingrel?

which is efficient,fastcgi or mingrel?

On Mon, 2007-08-13 at 19:46 +0200, Swaroop Kanth wrote:

which is efficient,fastcgi or mingrel?

Typo?

Definitely go with mongrel_rails. The servers have run so much faster,
and more reliably since converted most of the sites from fastcgi to
mongrel_rails with a proxy balancer. Nginx, and “apache mod_proxy” are
both good solutions for this. Nginx will put the least load on your
servers, and is about the most stable server application I have ever
seen. Apache has the advantage that it can serve up practically any
kind of content, so for people who have all kinds of stuff like rails,
php, and mod_perl stuff all on the same site it will usually be easier
to just use apache as the proxy balancer.

Cheers!

Daniel J.
Systems Administrator

PLANET ARGON, LLC
Ruby on Rails Development, Consulting & Hosting

http://teknot.us [blog]
teknotus [freenode IRC]
+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

On Tue, 2007-08-14 at 01:44 +0200, D. Krmpotic wrote:

thanx
david

Nginx was originally developed in Russia, and as such most of the
original documentation is only in Russian. There is an English wiki
however with very good documentation.

http://wiki.codemongers.com/Main?action=show&redirect=Nginx

Nginx config files seem to use whatever domain name is listed first as
the default domain, so if a page request doesn’t match the pattern for
any of the vhosts then it will serve that one by default. You also need
to be explicit with accepting subdomains, or wildcard subdomains or you
will end up having those all go to the default domain. It’s important
to check the nginx log files to see what is going on. If there is a
syntax error in the config it will revert to default behavior, and
ignore all of your configuration.

This example that we use with PLANET ARGON hosting might help you though
I’m sure you would have to modify it for your needs.

http://docs.planetargon.com/Nginx_Configuration


Daniel J.
Systems Administrator

PLANET ARGON, LLC
Ruby on Rails Development, Consulting & Hosting

http://teknot.us [blog]
teknotus [freenode IRC]
+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

Definitelly Nginx + Mongrel is a great combo…

Does anyone know how exactly Nginx configuration works? By default there
is no path under Location / {} and still “Welcome to Nginx” is
displayed… is Nginx actually serving some file or does it have set
internally IF no path then produce welcome message…?

Also curious about server_name… if I specify www.server.com there,
I can still access this vhost with some other uri, that also points to
the same ip (but is not listed in server_name line)… how come?

thanx
david

I know this is out of fashion, but isn’t Apache + mod_fcgid also
fast ?
mod_fcgid also manages the number of fast-cgi processes by itself so
you don’t have to decide in advance how many ‘server instances’ to
run. (It kills unnecessary instances ans spawns fresh ones on demand).
Is it that bad an option ?
Nadav

On Aug 13, 9:29 pm, Daniel Patrick Johnson

Nadav,

I wouldn't say there is a performance issue (not without a

benchmark in my hands) but FastCGI is a complex protocol, Apache’s
implementation can be quite difficult to manage and keep running
smoothly. Many people prefer to setup a Lighttpd or a Nginx to talk
proxy to Apache and let those do the FastCGI stuff.


Aníbal Rojas