]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Eventlet monkey-patch heat-api
authorSteve Baker <sbaker@redhat.com>
Mon, 10 Dec 2012 02:07:40 +0000 (15:07 +1300)
committerSteve Baker <sbaker@redhat.com>
Mon, 10 Dec 2012 21:20:41 +0000 (10:20 +1300)
I have a stress test which uses python-heatclient to create
an empty template, list the stacks, and delete the created stack.

Running 100 of these jobs concurrently takes 64 seconds without this patch,
and 17 seconds with it.

Change-Id: I8963da477aa8fcec724e2e5afcd5ec92ff5b07d1

bin/heat-api

index 201abe95052e9598f449463c1b62e03630ef21d6..854626431e9862c0e0ce35ef450fbc5a8c870474 100755 (executable)
@@ -17,6 +17,9 @@
 Heat API Server. An OpenStack ReST API to Heat.
 """
 
+import eventlet
+eventlet.monkey_patch(os=False)
+
 import gettext
 import os
 import sys