File: mutable.rst

package info (click to toggle)
python-oslo.config 1%3A8.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,192 kB
  • sloc: python: 10,740; makefile: 30; sh: 10
file content (27 lines) | stat: -rw-r--r-- 939 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
==========================
Changing config at runtime
==========================

OpenStack Newton introduces the ability to reload (or 'mutate') certain
configuration options at runtime without a service restart. The following
projects support this:

* Compute (nova)

Check individual options to discover if they are mutable.


In practice
~~~~~~~~~~~

A common use case is to enable debug logging after a failure. Use the mutable
config option called 'debug' to do this (providing ``log_config_append``
has not been set). An admin user may perform the following steps:

#. Log onto the compute node.
#. Edit the config file (EG ``nova.conf``) and change 'debug' to ``True``.
#. Send a SIGHUP signal to the nova process (For example, ``pkill -HUP nova``).

A log message will be written out confirming that the option has been changed.
If you use a CMS like Ansible, Chef, or Puppet, we recommend scripting these
steps through your CMS.