]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Creates multiple worker processes for API server
authorCarl Baldwin <carl.baldwin@hp.com>
Fri, 12 Jul 2013 20:45:38 +0000 (20:45 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Thu, 19 Sep 2013 18:52:13 +0000 (18:52 +0000)
commit3d669cbd0e650853caed7ddaf1b6a5e40dba2501
treec599c6e604f4a574dfb947cf5d2816665b7455e1
parent3468a03f42c05423b1aeb44cb09b9681f6a8b433
Creates multiple worker processes for API server

This change to the WSGI code uses openstack.common.service to create
multiple worker processes to handle API load.  The main process will
start up a configurable (workers=??) number of child processes which
will all listen on the bind port.  The main process becomes the parent
and manages the children.  The parent is not a worker.

Backwards compatibility is preserved by setting api_workers to 0, the
default.  In this case, no separate worker processes are spawned and
the worker threads run in the main process.

Implement blueprint multi-workers-for-api-server

Change-Id: Iffa76041d0055840ccca852814b0e71f17a950ac
etc/neutron.conf
neutron/service.py
neutron/tests/unit/test_wsgi.py
neutron/wsgi.py