Currently I'm sitting on top of an virtual machine (VPS) so any multi core
hardware is intransparent to me. One of the coming applications will be
CPU-intensive - I'll have an eye on the performance for sure. On the other
side: mod_python creates a certain set of overhead within Apache which can
also hurt the performance (as I understood it) if you try to serve lots of
connections. 
 
As always: performance depends on the application design ;-)
 
Regards,
Andrew
 


  _____  

Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Alec
Flett
Gesendet: Donnerstag, 23. August 2007 23:04
An: Andrew Smart
Cc: Steve Morin; [email protected]
Betreff: Re: [Paste] how to setup paste


We use mod_python with paste.modpython and it works reasonably well - but
it's an extra level of configuration (apache stuff) so I'd recommend against
it. Only thing about proxying is that if you're on a multi-core machine and
want to exploit all cores, Python threading kinda blows. So if you're using
the default multi-threaded paster and your app is in any way CPU intense,
you're going to see performance suffer. 

Alec


On 8/23/07, Andrew Smart <[EMAIL PROTECTED]> wrote: 

Hi Steve,

Not so easy. You have three options (my experience):
- cgi: very slow
- fastcgi / mod_python: apache module; possible but quite difficult to setup

  -> depends strongly on what your provider gives as options 
  -> depends also if you have python2.4 pre-installed on your environment
(if not, even more difficult)
- running the paste application as http server and use apache as proxy

After fiddling heavily with mod_python I finally gave up and did choose the 
proxy approach which was surprinsingly easy. But you'll need some priviliges
on the server (shell access, the right to start processes, access to apache,
mod_proxy etc).

I know that others did succeed with mod_python or fastcgi, so you may take 
this approach. You'll find docu about this also in the pylons documentation.

Just my 2cents,
Andrew


_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users



_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to