]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Set default of api_workers to number of CPUs
authorRussell Bryant <rbryant@redhat.com>
Tue, 9 Dec 2014 21:59:20 +0000 (14:59 -0700)
committerAssaf Muller <amuller@redhat.com>
Fri, 13 Mar 2015 03:17:04 +0000 (23:17 -0400)
commitc65175811baf29e75556045e3b44ab948e02a9c3
tree13597fe25de84f1c6ef6cabf898c28710afc24f4
parent5dbb34b56fc42d9c68bf6647910a437a2ad6b29e
Set default of api_workers to number of CPUs

The current default for api_workers is 0.  This patch changes it to
use the number of CPUs available, which is the default that will
provide best performance.  This is consistent with some other
OpenStack service (Nova and Swift, at least, perhaps others).

Note that devstack is updated in another patch to ensure multiple API
workers is being tested for Neutron the same way it's tested for
several other services:

    https://review.openstack.org/140482

Co-Authored-By: Eugene Nikanorov <enikanorov@mirantis.com>
DocImpact
UpgradeImpact
Change-Id: I4d76baf68b014fc80693f53874734783089abda2
etc/neutron.conf
neutron/service.py
neutron/tests/functional/test_service.py [new file with mode: 0644]