Enable multithreading for ec2api

ec2api service is initialized with no workers count which leads to only
one worker is run.

ec2api_workers configuration settings will be used to set workers
count.

Change-Id: I5cfc650a7f6b38ec7bdeb9d9c9ddb97d5f2a1106
This commit is contained in:
Feodor Tersin 2015-09-03 09:27:37 +03:00
parent 9ea493060f
commit 28291298ba

View File

@ -32,7 +32,7 @@ def main():
logging.setup(CONF, 'ec2api')
server = service.WSGIService('ec2api', max_url_len=16384)
service.serve(server)
service.serve(server, workers=server.workers)
service.wait()