Merge "RPC worker support for pecan server"

This commit is contained in:
Jenkins 2016-02-04 18:49:12 +00:00 committed by Gerrit Code Review
commit 7fca441ce1
1 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ from six.moves import socketserver
from neutron._i18n import _LI, _LW
from neutron.common import rpc as n_rpc
from neutron.pecan_wsgi import app as pecan_app
from neutron import service
LOG = log.getLogger(__name__)
@ -32,9 +33,11 @@ class ThreadedSimpleServer(socketserver.ThreadingMixIn,
def pecan_wsgi_server():
LOG.info(_LI("Pecan WSGI server starting..."))
application = pecan_app.setup_app()
# this launches RPC workers in separate processes
service.serve_rpc()
# No AMQP connection should be created within this process
n_rpc.RPC_DISABLED = True
application = pecan_app.setup_app()
host = cfg.CONF.bind_host
port = cfg.CONF.bind_port