On Mon, Sep 24, 2012 at 5:11 PM, vishwajeet singh <[email protected]> wrote: > I am not sure configuring 1000 wsgi's is good idea even if it's possible, > though Graham would be the right person to comment on this, django allows > some settings to be changed at runtime check this bug > https://code.djangoproject.com/ticket/14628 > > Also if you can explain what exactly you are trying to do would help. >
These 1000 wsgi apps would be running on a largish server with 64+GB of RAM, etc. My understanding is that django's settings can't be changed at run time. [1] I would be mostly interested in settings.DATABASES, but that is tangential to what I was looking for here. [1] https://docs.djangoproject.com/en/dev/topics/settings/#altering-settings-at-runtime What I am trying to do, is to understand how mod_wsgi works. I still have some questions, although the documentation is quite fabulous, especially the page on ProcessesAndThreading [2]. Talking of DaemonMode, we have N processes, each with M threads configured. Without changing WSGIApplicationGroup from the default, my understanding is that with X wsgi-applications, each of those N processes will start X python sub-interpreters, N*X interpreters in all. These are always alive, except they may be reloaded. [2] https://code.google.com/p/modwsgi/wiki/ProcessesAndThreading There have been mentions in this group and other places that we can use WSGIApplicationGroup to map different virtual hosts to the same sub-interpreter if they are from the same django app, but not if they are different. I don't understand that part too well, and given that there were some issue with site contents' getting mixed up, etc. I would like to know what the issues are with running lots of django wsgi applications on one server, and why WSGIApplicationGroup can't be used to overcome those problems. My ideal setup would have interpreters spinning up inside threads, as required, and not consuming resources when they are not being used. Regards, rm -- http://about.me/rosh -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
