summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZhiteng Huang <zhiteng.huang@intel.com>2012-03-25 02:06:01 +0800
committerZhiteng Huang <zhiteng.huang@intel.com>2012-06-02 00:34:55 +0800
commite599636d09755f635604f64f17e9f56cac14575e (patch)
treedc729c51267d8ab976422463a3a95b070ddd6135 /bin
parent31108020fc237624e244f08658646e2f119506db (diff)
blueprint <multi-process-api-service>
Add multiprocess support for API serivces (EC2/OSAPI_Compute/OSAPI_Volume/Metadata). 2012-06-1 v7: * Add unittest to cover worker recovery, service termination functionality in wsgi.py, fix python 2.6 compatibility issue. * Modify generate_uid() to introduce per-process seeds in utils.py to avoid collisions. * Add worker session to nova.conf.sample. 2012-05-21 v6: * Fix 'test_wsgi' unittest error. 2012-04-28 v5: * Add SIGINT handler and fix child-parent race condition when Ctrl+C is pressed. 2012-03-31 v4: * Fixed typo, removed debug code. 2012-03-30 v3: * Fixed localization/pep8 error in unittest, add metadata test. * nova/wsgi.py:Server: use the greenthread pool created for each process. * nova/service.py: remove debug code 2012-03-27 v2: * Fixed unittest error. * nova/wsgi.py:Server: Use self._logger to do logging in multiprocess mode. * nova/wsgi.py:Server: Move self._pool creation into proper place. * code style fix. 2012-03-25 v1: * Modification to nova/service.py and nova/wsgi.py in order to support multiprocess (a.k.a. workers) for various API services. If multiprocess mode is enabled, (i.e. flags 'APINAME_workers' set to positive numbers), corresponding API service will run in target number of process(es). There is also a master_worker process spawned for managing all workers (handling signal/termination). * Add unittest for multiprocess API service, also alter testing/runner.py to adopt new unittest. Change-Id: Ia045e595543ddfd192894b2a05801cc4b7ca90cb
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-api2
-rwxr-xr-xbin/nova-api-ec22
-rwxr-xr-xbin/nova-api-metadata2
-rwxr-xr-xbin/nova-api-os-compute2
-rwxr-xr-xbin/nova-api-os-volume2
5 files changed, 5 insertions, 5 deletions
diff --git a/bin/nova-api b/bin/nova-api
index e6779df4f..5d15fc7c4 100755
--- a/bin/nova-api
+++ b/bin/nova-api
@@ -24,7 +24,7 @@ Starts both the EC2 and OpenStack APIs in separate greenthreads.
"""
import eventlet
-eventlet.monkey_patch()
+eventlet.monkey_patch(os=False)
import os
import sys
diff --git a/bin/nova-api-ec2 b/bin/nova-api-ec2
index b53c9158a..6d94466d6 100755
--- a/bin/nova-api-ec2
+++ b/bin/nova-api-ec2
@@ -20,7 +20,7 @@
"""Starter script for Nova EC2 API."""
import eventlet
-eventlet.monkey_patch()
+eventlet.monkey_patch(os=False)
import os
import sys
diff --git a/bin/nova-api-metadata b/bin/nova-api-metadata
index 2f2ef9454..3d78cfcee 100755
--- a/bin/nova-api-metadata
+++ b/bin/nova-api-metadata
@@ -20,7 +20,7 @@
"""Starter script for Nova Metadata API."""
import eventlet
-eventlet.monkey_patch()
+eventlet.monkey_patch(os=False)
import os
import sys
diff --git a/bin/nova-api-os-compute b/bin/nova-api-os-compute
index 75c921943..978a14868 100755
--- a/bin/nova-api-os-compute
+++ b/bin/nova-api-os-compute
@@ -20,7 +20,7 @@
"""Starter script for Nova OS API."""
import eventlet
-eventlet.monkey_patch()
+eventlet.monkey_patch(os=False)
import os
import sys
diff --git a/bin/nova-api-os-volume b/bin/nova-api-os-volume
index b93fd51ae..d891d0754 100755
--- a/bin/nova-api-os-volume
+++ b/bin/nova-api-os-volume
@@ -20,7 +20,7 @@
"""Starter script for Nova OS API."""
import eventlet
-eventlet.monkey_patch()
+eventlet.monkey_patch(os=False)
import os
import sys