Debian Codegraph @

releasenotes/notes/setproctitle_for_workers-e8805fcaf34026ab.yaml

raw
1 features:
2 - |
3 ``neutron_lib.worker.BaseWorker`` will now set the process title
4 on process start, if it is a new process. By default, the name
5 will be "neutron-server", and the description will be the name
6 of the worker class, followed by the original process title.
7 Both fields are customizable via the ``name`` and ``desc``
8 arguments to ``BaseWorker.start()``, and the change
9 can be disabled via the ``set_proctitle`` argument to the
10 ``__init__`` function. ``neutron.conf`` will have a setting
11 for disabling this functionality for all in-tree workers, but
12 by default, all out of tree plugin workers will set their name
13 at fork time. Available settings are 'on' (described above, and
14 the default), 'off' (same as today), or 'brief', which settings
15 the process name to just name and description. 'brief' is probably
16 most useful/simple for deployers, but 'on' is the default in order
17 to prevent as many script related breakages as possible.
18 upgrade:
19 - Any plugin which forks worker processes from neutron-server will
20 have its proctitle set to "neutron-server" plus a classname in ps
21 output. Any tool used for monitoring/maintenance that watches
22 the process table should be modified to only look for the string
23 ``neutron-server``. On the plus side, it will now be possible
24 to distinguish which process belongs to which plugin, based on
25 the new naming. Note that the original process string is still
26 in the proctitle, so as long as the scripting is not looking for
27 a perfect string match, it should continue to work.