The cinder.wsgi.eventlet_server
Module¶
Methods for working with eventlet WSGI servers.
-
class
Server
(name, app, host=None, port=None, pool_size=None, protocol=<class eventlet.wsgi.HttpProtocol>, backlog=128)¶ Bases:
oslo_service.service.ServiceBase
Server class to manage a WSGI server, serving a WSGI application.
-
default_pool_size
= 1000¶
-
host
¶
-
port
¶
-
reset
()¶ Reset server greenpool size to default.
Returns: None
-
start
()¶ Start serving a WSGI application.
Returns: None Raises: cinder.exception.InvalidInput
-
stop
()¶ Stop this server.
This is not a very nice action, as currently the method by which a server is stopped is by killing its eventlet.
Returns: None
-
wait
()¶ Block, until the server has stopped.
Waits on the server’s eventlet to finish, then returns.
Returns: None
-