[Tilecache] updating conf without restarting web server?

manel.clos at ajgirona.cat manel.clos at ajgirona.cat
Wed Nov 3 07:12:29 EDT 2010


Yes, that's true. I'm using multiple threads but not multiple processes due to better performance and the kind of errors you mention.

> -----Mensaje original-----
> De: Ivan Mincik [mailto:ivan.mincik at gista.sk]
> Enviado el: miércoles, 03 de noviembre de 2010 12:11
> Para: Clos Crespo, Manel; tilecache at lists.osgeo.org
> Asunto: Re: [Tilecache] updating conf without restarting web server?
>
> On 11/03/2010 11:45 AM, manel.clos at ajgirona.cat wrote:
> > Hi Sebastian,
> >
> > if you are running on wsgi, you can modify your script to
> intercept a special url like:
> >
> >      if environ['PATH_INFO'] == "/reload_config":
> >          theService = Service.load(cfgs)
> >          content = "Config reload OK"
> >          start_response('200 OK',[('Content-type','text/plain'),
> >                                   ('Pragma','no cache'),
> >
> ('Cache-Control','no-cache, must-revalidate')])
> >          return content
> > When in a normal request theService will be reused.
> >
> One note from my experience:
> in wsgi script, You should use 'processes=1' parameter in
> WSGIDaemonProcess otherwise it will not work correctly (at
> least in my
> case).
>
>
> --
> Ivan Mincik, Gista s.r.o.
>
>


More information about the Tilecache mailing list