]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Minimize the cost of checking for api worker exit
authorMaru Newby <marun@redhat.com>
Mon, 20 Jan 2014 19:28:03 +0000 (19:28 +0000)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:12 +0000 (15:20 +0800)
commitdfc4944f7159d0097f376fb3545aee342fa805ae
tree47f3f24ffae31e120fb6c85c95129433a41f1fef
parenteca6883587d42a81e71f3ddef5a719d1bb653535
Minimize the cost of checking for api worker exit

A recent change to oslo allows the configuration of the interval
that ProcessLauncher waits between checks of child exit.  The
default interval of 0.01s resulted in the neutron service consuming
unnecessary cpu cycles checking whether api workers had exited (5%
cpu on idle in a VM).  This patch extends the interval to 1s to
minimize the cost of the checks.

Change-Id: I0407ccb2db65cd3839586faff15e70dbc35f005e
Closes-bug: #1095346
neutron/wsgi.py