[openstack-dev] [oslo][oslo.config] Reloading configuration of service
Doug Hellmann
doug at doughellmann.com
Tue Sep 15 20:32:28 UTC 2015
Excerpts from mhorban's message of 2015-09-15 19:38:58 +0300:
> Hi guys,
>
> I would like to talk about reloading config during reloading service.
> Now we have ability to reload config of service with SIGHUP signal.
> Right now SIGHUP causes just calling conf.reload_config_files().
> As result configuration is updated, but services don't know about it,
> there is no way to notify them.
> I've created review https://review.openstack.org/#/c/213062/ to allow to
> execute service's code on reloading config event.
> Possible usage can be https://review.openstack.org/#/c/223668/.
>
> Any ideas or suggestions
>
Rather than building hooks into oslo.config, why don't we build them
into the thing that is catching the signal. That way the app can do lots
of things in response to a signal, and one of them might be reloading
the configuration.
Doug
More information about the OpenStack-dev
mailing list