deployment, mod_python, painfully slow

5 views
Skip to first unread message

Daniel Haus

unread,
Mar 2, 2007, 1:54:40 PM3/2/07
to TurboGears
Hello,

I built a website based on TG and followed the instructions at
http://docs.turbogears.org/1.0/mod_python to deploy it through apache2
on a virtual host (ubuntu dapper).

Everything works and I don't see any error messages, but the whole
thing runs awfully slow, and obviously it's not a connection problem.
Response time is about 1-2 secs per page (requested from the same
host). If I run the app standalone (no mod_python, but start-*.py),
it's behaving as expected.

I double checked all configuration files and have no clue where to
look for the cause.

Did anyone experience this before? What could I've done wrong?

-- Daniel

Richard Clark

unread,
Mar 4, 2007, 11:15:13 AM3/4/07
to TurboGears
I highly recommend mod_rewrite/proxy and running turbogears as its own
cherrypy daemon. I can't speak for the mod_python model, I've never
used it, but if you're stuck, an alternate route is a good move.

Normally I wouldn't have said anything but nobody else who knew
something replied, so I figured this was better than nothing :)

On Mar 3, 1:54 am, "Daniel Haus" <daniel.h...@gmail.com> wrote:
> Hello,
>

> I built a website based on TG and followed the instructions athttp://docs.turbogears.org/1.0/mod_pythonto deploy it through apache2

Florent Aide

unread,
Mar 4, 2007, 2:23:46 PM3/4/07
to turbo...@googlegroups.com
Hello Daniel,

I am the author of this mod_python information page. I wrote this
because I was asked to do so by people on this list. I myself do not
use this deployment technique because of this performance issue you
have remarked.

So basically I now use apache's mod_proxy to forward queries to my
standalone tg app.

I don't have any idea about why this is behaving like this but I can
confirm that I had the exact same issues you encountered and thus
decided to switch to an mod_proxy deployment method.

Regards,

Florent AIDE.

Daniel Haus

unread,
Mar 4, 2007, 3:24:44 PM3/4/07
to TurboGears
Thank you, this is _really_ useful information.
I stop searching and directly choose mod_proxy.


On 4 Mrz., 14:23, "Florent Aide" <florent.a...@gmail.com> wrote:
> Hello Daniel,
>
> I am the author of this mod_python information page. I wrote this
> because I was asked to do so by people on this list. I myself do not
> use this deployment technique because of this performance issue you
> have remarked.
>
> So basically I now use apache's mod_proxy to forward queries to my
> standalone tg app.
>
> I don't have any idea about why this is behaving like this but I can
> confirm that I had the exact same issues you encountered and thus
> decided to switch to an mod_proxy deployment method.
>
> Regards,
>
> Florent AIDE.
>

> On 3/2/07, Daniel Haus <daniel.h...@gmail.com> wrote:
>
>
>
> > Hello,
>
> > I built a website based on TG and followed the instructions at

> >http://docs.turbogears.org/1.0/mod_pythonto deploy it through apache2

tml

unread,
Mar 4, 2007, 10:49:36 PM3/4/07
to TurboGears
Florent: It would be great to put this info about performance problems
on the page so people know what they are getting into!

thanks.
-Tml

On Mar 4, 6:24 am, "Daniel Haus" <daniel.h...@gmail.com> wrote:
> Thank you, this is _really_ useful information.
> I stop searching and directly choose mod_proxy.
>
> On 4 Mrz., 14:23, "Florent Aide" <florent.a...@gmail.com> wrote:
>
> > Hello Daniel,
>
> > I am the author of this mod_python information page. I wrote this
> > because I was asked to do so by people on this list. I myself do not
> > use this deployment technique because of this performance issue you
> > have remarked.
>
> > So basically I now use apache's mod_proxy to forward queries to my
> > standalone tg app.
>
> > I don't have any idea about why this is behaving like this but I can
> > confirm that I had the exact same issues you encountered and thus
> > decided to switch to an mod_proxy deployment method.
>
> > Regards,
>
> > Florent AIDE.
>
> > On 3/2/07, Daniel Haus <daniel.h...@gmail.com> wrote:
>
> > > Hello,
>
> > > I built a website based on TG and followed the instructions at

> > >http://docs.turbogears.org/1.0/mod_pythontodeploy it through apache2

Florent Aide

unread,
Mar 5, 2007, 12:58:53 AM3/5/07
to turbo...@googlegroups.com
Done.
Reply all
Reply to author
Forward
0 new messages