>> By default the library presence will be auto-detected but you can force
>> it editing buildconf/default.ini
>>
>> I have massively tested it using a big (more than 60 instances) couchdb
>> database for uWSGI config file store
>>
>> The Emperor has been extended to support .js files too
>
> What would be the way to make uwsgi reload the configuration when using
> http?
>
>

You could always use signals, uwsgi.reload() or --touch-reload. for each
instance.

In the Emperor world we currently rely on rabbitMQ for massive deploy
where we need real-time reload/reconfiguration taken via http.

I would like to add a simple auto-reloading system for http-only.

I have two approach to follow

1) Pass If-Modified-Since header in the http request. The webserver will
return a 304 if nothing has changed or 200 to reload the system.

The webserver or the app that generates the configuration must support the
If-Modified-Since header

2) Read the Last-Modified header in the response

Both requires a good-developed configuration generator system otherwise
apps could start reloading indefinetly.

Another area of interest is in returning the list of apps via http. I was
thinking about having a list for each configuration format.

If you hask for a json url in the emperor you will get

{
"vassals": ["app1", "app2", "http://app3";]
}

in ini

[vassals]
app1 = http://config....
app2 = /etc/vassals/foo.xml

and so on

Not a very hard work (we already have all the components in the uWSGI
core) but need to find a good and usable approach.

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to