Thanks. So to summarize, No one knows of a way to change memcached settings without having to re-load the django settings
mod_wsgi can be used to avoid having to restart apache but the following statement applies: " Only the script file itself is reloaded, no other Python modules are reloaded. Thus if you are using Django and needed to change your 'settings.py' file, you would still need to restart Apache, or if using 'daemon' mode of mod_wsgi, force the specific daemon process to be restarted thereby avoiding the need to restart the whole Apache server. " So mod_wsgi would have to be run in 'daemon' mode and the daemon process has to be restarted. Any other solutions? On Mar 9, 9:50 pm, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > If considering mod_wsgi due to its reloading ability, ensure you read: > > http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode > > http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django... > http://blog.dscpl.com.au/2009/02/source-code-reloading-with-modwsgi-o... > > to understand what modes it works in and what it gives you. > > Graham > > On Mar 10, 12:45 pm, Dave Fowler <davefow...@gmail.com> wrote: > > > Thanks, I'm currently under mod_python... maybe I should switch. > > > On Mar 9, 8:33 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > > On Mon, Mar 9, 2009 at 8:31 PM, Dave Fowler <davefow...@gmail.com> wrote: > > > > > I'm running Django with memcached on EC2. We frequently turn on or > > > > off different servers with memcached running on each. > > > > > To configure your memcached the docs suggest you list them in your > > > > settings file: > > > > > CACHE_BACKEND = 'memcached://172.19.26.240:11211;172.19.26.242:11211/' > > > > > The only problem with this is that every time I add or remove a server > > > > I have to edit and restart all of my django instances. > > > > > Is there another way to control the memcached settings? > > > > > Do I even need to restart the apache instances if my memcached > > > > settings change? > > > > > Thanks! > > > > If you're deployed under mod_wsgi I believe touching the WSGI file will > > > cause it to reload the files. > > > > Alex > > > > -- > > > "I disapprove of what you say, but I will defend to the death your right > > > to > > > say it." --Voltaire > > > "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---