The ProcessMonitor class will monitor spawned external processes.
This patch enhances the HaproxyNSDriver class (v2) to utilize the
external_process module in order to monitor and respawn the haproxy
processes if and when needed.
With this patch the LBaaS agent (v2) will load external_process related
options in order to take a configured action when haproxy process
dies unexpectedly.
This is the second attempt to introduce ProcessMonitor in the haproxy
driver. The first attempt I420ca20b2620487909885e0e9f08dae60ebec2bf
caused an issue where haproxy failed to acquire new configuration, due
to the lack of -sf flags which should be provided when haproxy.conf is
being updated. More information about the flags here[1]
Reviewed: https:/ /review. openstack. org/344658 /git.openstack. org/cgit/ openstack/ neutron- lbaas/commit/ ?id=8c01eff53b2 d399fe63d62a55b 13487877e8a0b7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8c01eff53b2d399 fe63d62a55b1348 7877e8a0b7
Author: Nir Magnezi <email address hidden>
Date: Wed Jul 20 10:31:28 2016 +0300
Implements ProcessMonitor in the haproxy driver
The ProcessMonitor class will monitor spawned external processes.
This patch enhances the HaproxyNSDriver class (v2) to utilize the process module in order to monitor and respawn the haproxy
external_
processes if and when needed.
With this patch the LBaaS agent (v2) will load external_process related
options in order to take a configured action when haproxy process
dies unexpectedly.
This is the second attempt to introduce ProcessMonitor in the haproxy 7909885e0e9f08d ae60ebec2bf
driver. The first attempt I420ca20b262048
caused an issue where haproxy failed to acquire new configuration, due
to the lack of -sf flags which should be provided when haproxy.conf is
being updated. More information about the flags here[1]
[1] http:// www.haproxy. org/download/ 1.2/doc/ haproxy- en.txt
Co-Authored-By: Thomas Herve <email address hidden>
Closes-Bug: #1565801
Related-Bug: #1603860
Change-Id: Ia47b1586be17be 421e01c131859dd 0d50b1d7db6