cfpb / grasshopper-parser

Address Parsing REST API
Creative Commons Zero v1.0 Universal
8 stars 8 forks source link

Adds Gunicorn #10

Closed hkeeler closed 9 years ago

hkeeler commented 9 years ago

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 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.