neutron/neutron/server
Bernard Cafarelli 66d45b8e91 Re-use existing ProcessLauncher from wsgi in RPC workers
If both are run under the same process, and api_workers >= 2, the server
process will instantiate two oslo_service.ProcessLauncher instances

This should be avoided [0], and indeed causes issues on subprocess and
signal handling: killed RPC workers not respawning, SIGHUP on master
process leading to unresponsive server, signal not properly sent to all
child processes, ...

To avoid this, use the wsgi ProcessLauncher instance if it exists

[0] https://docs.openstack.org/oslo.service/latest/user/usage.html#launchers

Conflicts:
	neutron/service.py

Depends-On: https://review.opendev.org/708825/
Change-Id: Ic821f8ca84add9c8137ef712031afb43e491591c
Closes-Bug: #1780139
(cherry picked from commit 13aa00026f)
2020-02-20 09:39:20 +00:00
..
__init__.py Expose neutron api application as a wsgi script 2017-04-17 02:07:27 +00:00
rpc_eventlet.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
wsgi_eventlet.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-20 09:39:20 +00:00