Browse Source

Downgrade gunicorn for tornado worker

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.
INADA Naoki 11 years ago
parent
commit
f7b3f2082c
4 changed files with 4 additions and 3 deletions
  1. 1 1
      config/requirements-py3.txt
  2. 1 1
      config/requirements-pypy.txt
  3. 1 1
      config/requirements.txt
  4. 1 0
      flask/setup_pypy.py

+ 1 - 1
config/requirements-py3.txt

@@ -8,7 +8,7 @@ ujson==1.33
 # uwsgi is released too often to stick on single version.
 # uwsgi is released too often to stick on single version.
 uwsgi
 uwsgi
 
 
-gunicorn==19.0
+gunicorn==18.0
 meinheld==0.5.6
 meinheld==0.5.6
 
 
 # Tornado
 # Tornado

+ 1 - 1
config/requirements-pypy.txt

@@ -9,7 +9,7 @@ PyMySQL==0.6.2
 # uwsgi is released too often to stick on single version.
 # uwsgi is released too often to stick on single version.
 uwsgi
 uwsgi
 
 
-gunicorn==19.0
+gunicorn==18.0
 meinheld==0.5.6
 meinheld==0.5.6
 
 
 # Tornado
 # Tornado

+ 1 - 1
config/requirements.txt

@@ -9,7 +9,7 @@ gevent==1.0.1
 # uwsgi is released too often to stick on single version.
 # uwsgi is released too often to stick on single version.
 uwsgi
 uwsgi
 
 
-gunicorn==19.0
+gunicorn==18.0
 meinheld==0.5.6
 meinheld==0.5.6
 
 
 # Tornado
 # Tornado

+ 1 - 0
flask/setup_pypy.py

@@ -15,6 +15,7 @@ def start(args, logfile, errfile):
     proc = subprocess.Popen([
     proc = subprocess.Popen([
         bin_dir + "/gunicorn",
         bin_dir + "/gunicorn",
         "app:app",
         "app:app",
+        "-k", "tornado",
         "-b", "0.0.0.0:8080",
         "-b", "0.0.0.0:8080",
         '-w', str(NCPU*3),
         '-w', str(NCPU*3),
         "--log-level=critical"],
         "--log-level=critical"],