commit 3b22541a2aa9a5b06e2bff256701dbe24554c17c
Author: Daniel Alvarez <email address hidden>
Date: Thu Feb 9 18:30:23 2017 +0000
Switch ns-metadata-proxy to haproxy
Due to the high memory footprint of current Python ns-metadata-proxy,
it has to be replaced with a lighter process to avoid OOM conditions in
large environments.
This patch spawns haproxy through a process monitor using a pidfile.
This allows tracking the process and respawn it if necessary as it was
done before. Also, it implements an upgrade path which consists of
detecting any running Python instance of ns-metadata-proxy and
replacing them by haproxy. Therefore, upgrades will take place by
simply restarting neutron-l3-agent and neutron-dhcp-agent.
According to /proc/<pid>/smaps, memory footprint goes down from ~50MB
to ~1.5MB.
Also, haproxy is added to bindep in order to ensure that it's installed.
Reviewed: https:/ /review. openstack. org/431691 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3b22541a2aa 9a5b06e2bff2567 01dbe24554c17c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3b22541a2aa9a5b 06e2bff256701db e24554c17c
Author: Daniel Alvarez <email address hidden>
Date: Thu Feb 9 18:30:23 2017 +0000
Switch ns-metadata-proxy to haproxy
Due to the high memory footprint of current Python ns-metadata-proxy,
it has to be replaced with a lighter process to avoid OOM conditions in
large environments.
This patch spawns haproxy through a process monitor using a pidfile.
This allows tracking the process and respawn it if necessary as it was
done before. Also, it implements an upgrade path which consists of
detecting any running Python instance of ns-metadata-proxy and
replacing them by haproxy. Therefore, upgrades will take place by
simply restarting neutron-l3-agent and neutron-dhcp-agent.
According to /proc/<pid>/smaps, memory footprint goes down from ~50MB
to ~1.5MB.
Also, haproxy is added to bindep in order to ensure that it's installed.
UpgradeImpact
Depends-On: I36a5531cacc21c 0d4bb7f20d4bec6 da65d04c262 48c683a7bad76f8 7697e194b04
Depends-On: Ia37368a7ff38ea
Closes-Bug: #1524916 defafb440207d10 e2f7b4f218b
Change-Id: I5a75cc582dca48