Skip to content

Commit

Permalink
Replacing sync in favor of gevent flask, closes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMcCauley committed Aug 6, 2018
1 parent 88ea92d commit 37a2bbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gunicorn_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
bind = "0.0.0.0:5000"
# Generally we recommend (2 x $num_cores) + 1 as the number of workers to start off with
workers = 2
workers = 4
worker_class = 'gevent'
worker_connections = 1000
timeout = 30
keepalive = 2
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ pyproj==1.9.5.1
scrapy==1.5.0
gunicorn==19.7.1
flask-cors==3.0.3
gevent==1.3.5
git+https://github.com/lechup/imposm-parser.git@python3

0 comments on commit 37a2bbf

Please sign in to comment.