Remove wsgi eventlet monkey patch

We don't actually need to monkey patch the
api component.

Change-Id: Ib7e8bf2ad79ffe906698256664be680750f2e1e9
This commit is contained in:
Erik Olof Gunnar Andersson 2019-10-20 21:08:35 -07:00
parent 9e3c2bb65b
commit 68d8d8f4e5
1 changed files with 3 additions and 5 deletions

View File

@ -11,10 +11,6 @@
# under the License.
"""WSGI script for Designate API."""
import eventlet # noqa
eventlet.monkey_patch(os=False) # noqa
import os
from oslo_config import cfg
@ -52,7 +48,9 @@ def init_application():
if not rpc.initialized():
rpc.init(CONF)
heartbeat = service.Heartbeat('api', threadgroup.ThreadGroup())
heartbeat = service.Heartbeat(
'api', threadgroup.ThreadGroup(thread_pool_size=1)
)
heartbeat.start()
conf = conf_files[0]