Gunicorn 19.0 has regression. Tornado worker doesn't works with it. Tornado is best worker for PyPy (speed and keep-alive). Until Gunicorn 19.1 is released, downgrade to 18.0.
@@ -8,7 +8,7 @@ ujson==1.33
# uwsgi is released too often to stick on single version.
uwsgi
-gunicorn==19.0
+gunicorn==18.0
meinheld==0.5.6
# Tornado
@@ -9,7 +9,7 @@ PyMySQL==0.6.2
@@ -9,7 +9,7 @@ gevent==1.0.1
@@ -15,6 +15,7 @@ def start(args, logfile, errfile):
proc = subprocess.Popen([
bin_dir + "/gunicorn",
"app:app",
+ "-k", "tornado",
"-b", "0.0.0.0:8080",
'-w', str(NCPU*3),
"--log-level=critical"],