webpy and fastcgi

30 views
Skip to first unread message

Dragan Espenschied

unread,
Dec 15, 2011, 7:34:53 AM12/15/11
to web.py
Hello,

I am running three different webpy scripts via apache's fastcgi. I followed the
instructions and it works great!

But I wonder why only three instances of python are running on my server, one
for each script. I thought, fastcgi would run multiple instaces of the scripts?

Is there something in webpy that prevents more instances from being run?

Do I need to configure fastcgi differently?


My server is totally bored, with a very low load, and still visitors have to
wait for answers from the three scripts. My server could easil run each script
ten times.

Thanks for any hints.

Best greetings,
Dragan

Dragan Espenschied

unread,
Dec 16, 2011, 3:26:42 AM12/16/11
to we...@googlegroups.com
Sorry people,
I figured it out. Using another task viewer I could see all the nice processes
that were in fact already running. So it works out of the box very nicely.
Till my next stupid question,
Dragan :)

--
http://noobz.cc/
http://digitalfolklore.org/
http://contemporary-home-computing.org/1tb/

Dragan Espenschied

unread,
Dec 16, 2011, 6:49:59 AM12/16/11
to we...@googlegroups.com
Okay, sorry, still another question.
Each code.py, when run as fastcgi, seems to start 5 threads.
I wonder where this number comes from, in the source of flup I have noticed that
5 threads is the default number.
Is it meaningful to increase this number?
If so, how to do it from my scripts?
Does flup handle the tearing down of threads by itself, or does it get signals
from the fastcgi mod?
Thanks for any answers,
greetings,
Dragan

Dragan Espenschied

unread,
Dec 18, 2011, 1:27:42 PM12/18/11
to we...@googlegroups.com
And, before everybody puts me in their filter list ...
I should have went with the Apache defaults. They work fantastically.
So, there is no problem with fastcgi on Apache2.
Dragan
Reply all
Reply to author
Forward
0 new messages