Deployment speed, FCGI or Reverse proxy?

View: New views
6 Messages — Rating Filter:   Alert me  

Deployment speed, FCGI or Reverse proxy?

by Voltron-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Is there any advantage in deploying CherryPY applications using FCGI
instead of using the reverse-proxy method (both load balanced)? Speed?
Stability? Performance?


Thanks for any answers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deployment speed, FCGI or Reverse proxy?

by Tim Roberts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Voltron wrote:
> Is there any advantage in deploying CherryPY applications using FCGI
> instead of using the reverse-proxy method (both load balanced)? Speed?
> Stability? Performance?
>  

For me, the big advantage is that DreamHost supports FCGI, but does not
allow mod_proxy for hosted accounts.  ;)

When I was running on my own server, I used proxy.  In my opinion, they
are both equally confusing to set up the first time, and equally easy
once you see the recipe work.  Intuitively, I would guess that the
performance difference is not measurable.

--
Tim Roberts, timr@...
Providenza & Boekelheide, Inc.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deployment speed, FCGI or Reverse proxy?

by vthakr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Tim,

Is mod_wsgi available on DreamHost? If so, why not use it instead? You
can run it in either embedded (default) or daemon mode. The former
gives you excellent performance since you do not have any of the
overhead associated with the interprocess communication that takes
place with FCGI/SCGI and proxy based setups. However, it has it's
issues as well. First, you need to be pretty Apache savvy since you'll
need to understand how to tune the Multi-processing Module to work
well with python as the default Apache MPM is tuned for static pages
and mod_php. Also, since the CherryPy application is embedded in
Apache, you'll need to restart Apache whenever you make changes to
your application. Finally, I ran into problems with running WSGI apps
with Apache/mod_wsgi in embedded mode when mod_python is also
installed, so if you have mod_python installed on your box you may
want to look into daemon mode as well. The second option (daemon mode)
gets rid of all of the downfalls I specified above and is most likely
the way to go for anyone that is not an Apache expert, though it is
slightly slower than a correctly tuned embedded version of the app.
Nevertheless, both setups are, I believe, faster than FCGI or proxying
to the CherryPy server.

Hope that helps out a bit.

Christopher
http://christopherroach.com

On Wed, Sep 23, 2009 at 2:12 PM, Tim Roberts <timr@...> wrote:

>
> Voltron wrote:
>> Is there any advantage in deploying CherryPY applications using FCGI
>> instead of using the reverse-proxy method (both load balanced)? Speed?
>> Stability? Performance?
>>
>
> For me, the big advantage is that DreamHost supports FCGI, but does not
> allow mod_proxy for hosted accounts.  ;)
>
> When I was running on my own server, I used proxy.  In my opinion, they
> are both equally confusing to set up the first time, and equally easy
> once you see the recipe work.  Intuitively, I would guess that the
> performance difference is not measurable.
>
> --
> Tim Roberts, timr@...
> Providenza & Boekelheide, Inc.
>
>
> >
>



--
Christopher Roach
http://christopherroach.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deployment speed, FCGI or Reverse proxy?

by Tim Roberts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Christopher Roach wrote:
> Is mod_wsgi available on DreamHost? If so, why not use it instead? You
> can run it in either embedded (default) or daemon mode.

Nope.  It's on their "customers have asked for this" list (along with
mod_python), but not turned on yet.  It's OK, though; FastCGI seems to
do pretty well.

They apparently support Passenger, which was originally for Ruby on
Rails but has some WSGI support.

--
Tim Roberts, timr@...
Providenza & Boekelheide, Inc.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deployment speed, FCGI or Reverse proxy?

by Graham Dumpleton-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




On Sep 24, 10:52 am, Christopher Roach <vth...@...> wrote:
> Finally, I ran into problems with running WSGI apps
> with Apache/mod_wsgi in embedded mode when mod_python is also
> installed, so if you have mod_python installed on your box you may
> want to look into daemon mode as well.

The problems with conflicts between mod_python and mod_wsgi will not
in general go away by using daemon mode of mod_wsgi. Most harmful
conflicts cause the Apache processes themselves to crash before
anything has happened.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Deployment speed, FCGI or Reverse proxy?

by Voltron-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for the answers. I will try CherryPY on Cherokee using FCGI
then.

On Sep 24, 9:23 am, Graham Dumpleton <graham.dumple...@...>
wrote:

> On Sep 24, 10:52 am, Christopher Roach <vth...@...> wrote:
>
> > Finally, I ran into problems with running WSGI apps
> > with Apache/mod_wsgi in embedded mode when mod_python is also
> > installed, so if you have mod_python installed on your box you may
> > want to look into daemon mode as well.
>
> The problems with conflicts between mod_python and mod_wsgi will not
> in general go away by using daemon mode of mod_wsgi. Most harmful
> conflicts cause the Apache processes themselves to crash before
> anything has happened.
>
> Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---