diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-12-15 01:17:37 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-12-15 01:17:37 +0000 |
commit | 57582dc2aec28d26e98e5853ae2fe78670acde89 (patch) | |
tree | 636ca0d56769d59312216c64595447a459962103 /nova/wsgi.py | |
parent | 8bf3d00171ace0a0bc1e2bddeeb1747c9140fc38 (diff) | |
parent | 47599ea3586783b5a0c0ef977cd043d76bdce891 (diff) | |
download | nova-57582dc2aec28d26e98e5853ae2fe78670acde89.tar.gz |
Merge "Allow configuring the wsgi pool size"
Diffstat (limited to 'nova/wsgi.py')
-rw-r--r-- | nova/wsgi.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py index 9efb136fef..fa75f29309 100644 --- a/nova/wsgi.py +++ b/nova/wsgi.py @@ -64,7 +64,10 @@ wsgi_opts = [ cfg.IntOpt('tcp_keepidle', default=600, help="Sets the value of TCP_KEEPIDLE in seconds for each " - "server socket. Not supported on OS X.") + "server socket. Not supported on OS X."), + cfg.IntOpt('wsgi_default_pool_size', + default=1000, + help="Size of the pool of greenthreads used by wsgi"), ] CONF = cfg.CONF CONF.register_opts(wsgi_opts) @@ -75,7 +78,7 @@ LOG = logging.getLogger(__name__) class Server(object): """Server class to manage a WSGI server, serving a WSGI application.""" - default_pool_size = 1000 + default_pool_size = CONF.wsgi_default_pool_size def __init__(self, name, app, host='0.0.0.0', port=0, pool_size=None, protocol=eventlet.wsgi.HttpProtocol, backlog=128, |