Merge "Fix sysinv-api crash with 250 parallel requests"

This commit is contained in:
Zuul 2022-07-08 18:23:48 +00:00 committed by Gerrit Code Review
commit 9c85f6536c
1 changed files with 6 additions and 1 deletions

View File

@ -53,11 +53,16 @@ class WSGIService(service.ServiceBase):
elif IPAddress(host).version == 6:
socket_family = socket.AF_INET6
# If not defined, pool_size will default to 100. In order
# to increase the amount of threads handling multiple parallel
# requests to the wsgi application this parameter should be
# increased.
self.server = wsgi.Server(CONF, name, self.app,
host=host,
port=port,
socket_family=socket_family,
use_ssl=use_ssl)
use_ssl=use_ssl,
pool_size=250)
def start(self):
"""Start serving this service using loaded configuration.