nlesc-ave / ave-rest-service

visualize (clustered) single-nucleotide variants across genomes
Apache License 2.0
1 stars 0 forks source link

Use more performing wsgi server in production #21

Closed sverhoeven closed 7 years ago

sverhoeven commented 7 years ago

Currently the flask development wsgi server is used. It can handle only one request at a time.

For production we should use a wsgi server which can handle multiple requests simultaneously. Use uwsgi as described at https://github.com/zalando/connexion#server-backend

sverhoeven commented 7 years ago

Fixed in 7c6380cb340b4cd289e16ed0aa7ea0be340d4488, using gunicorn with 4 workers with each 2 threads and a timeout of 1minute for each request.