One interesting bit is how to determine the appropriate number of workers and threads for Gunicorn. The general guideline is to use cpus * 2 + 1. The threads setting is pretty new, so there's not much out there on best practices. See How Many Workers? for details.
Note: This PR has all the changes from #7, so you'll want to review/merge that one first.
Closes #5.
This PR adds Gunicorn support for the API.
For details on the config settings, see Configuration Overview.
One interesting bit is how to determine the appropriate number of
workers
andthreads
for Gunicorn. The general guideline is to usecpus * 2 + 1
. Thethreads
setting is pretty new, so there's not much out there on best practices. See How Many Workers? for details.Note: This PR has all the changes from #7, so you'll want to review/merge that one first.