From 87b0455e23cc5ac90259606a33c0ff551744956a Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Sun, 25 Mar 2012 02:06:01 +0800 Subject: [PATCH] Add multi-process support for API services Implements blueprint multi-process-api-service This is based on Huang Zhiteng's patch. This patch adds support for running services as multiple processes. This is primarily intended to be used with the API service as a way to provide more concurrency than eventlet can sometimes provide. A SIGTERM or SIGINT signal will cause the parent process to gracefully terminate the child processes, allowing them to finish processing the requests currently being processed. The parent will wait for the children to finish before exiting. Change-Id: Ie6d6802626eb42d5e64c4167be363fbf6cea2a1b --- nova/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/tests/__init__.py b/nova/tests/__init__.py index dff2ad649..9ff38e3a9 100644 --- a/nova/tests/__init__.py +++ b/nova/tests/__init__.py @@ -44,7 +44,7 @@ from nova import log as logging import eventlet -eventlet.monkey_patch() +eventlet.monkey_patch(os=False) FLAGS = flags.FLAGS FLAGS.use_stderr = False