]> 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)
committerMaru Newby <marun@redhat.com>
Tue, 21 Jan 2014 04:05:35 +0000 (04:05 +0000)
commited1071ec1981821275fedf35c5c90ab0a5080c58
tree537b172f7766a9d5306e8173f4a2a0dd483ca9c7
parent49efd608d395ecede1f8074d17c6a8230ffbb1c6
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