Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-13 Thread lenin
On 9 ene, 19:18, Graham Dumpleton wrote: > You thus perhaps should not be doing video conversion within the same > process, but executing a separate application to perform the > conversion. Even then, you may need a queueing system or otherwise > some way of restricting how many conversions can o

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-13 Thread lenin
On 9 ene, 19:18, Graham Dumpleton wrote: > You thus perhaps should not be doing video conversion within the same > process, but executing a separate application to perform the > conversion. Even then, you may need a queueing system or otherwise > some way of restricting how many conversions can o

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-10 Thread Alan
Can't you use crontab to submit your conversion task? Cheers, Alan On Sat, Jan 10, 2009 at 09:19, Stefan Tunsch wrote: > > It looks like it's clear video conversion is your bottleneck. > > I would also suggest doing that on a different worker process. > > You will also want to avoid converting t

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-10 Thread Stefan Tunsch
It looks like it's clear video conversion is your bottleneck. I would also suggest doing that on a different worker process. You will also want to avoid converting the same file again if you've done it before... I was suggesting to give a shot of using ONLY nginx with Django. If you search in G

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Graham Dumpleton
On Jan 10, 11:05 am, lenin wrote: > The server MPM is prefork. > > I had mod_wsgi in daemon mode I think, with this lines: > > WSGIDaemonProcess user_name user=user_name group=user_name > WSGIProcessGroup user_name > WSGIScriptAlias / /path/to/django.wsgi Which is one process with 15 threads.

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread lenin
The server MPM is prefork. I had mod_wsgi in daemon mode I think, with this lines: WSGIDaemonProcess user_name user=user_name group=user_name WSGIProcessGroup user_name WSGIScriptAlias / /path/to/django.wsgi That was at the moment of the first message, but now I have commented out the WSGIDaemo

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Graham Dumpleton
On Jan 10, 4:21 am, lenin wrote: > Hello, > > I would like to know if you could help me solve an issue with my > server setup. I have a Django application running with mod_wsgi on > apache with nginx as frontend, and it got very popular so the server > gets more than 1 requests a day. The a

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread chiggsy
On Jan 9, 2:40 pm, "Stefan Tunsch" wrote: > What's the point of using Apache AND nginx? Nginx is far better and faster and leaner at serving static files than apache. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Stefan Tunsch
What's the point of using Apache AND nginx? The same server is also handling the database? What db server are you using? What about caching? Have you something up and running in that sense? And regarding video conversion, this can obviously be the root of your problems. Can you be more specifi

What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread lenin
Hello, I would like to know if you could help me solve an issue with my server setup. I have a Django application running with mod_wsgi on apache with nginx as frontend, and it got very popular so the server gets more than 1 requests a day. The app does some video conversion with ffmpeg and m