Browse Source

Reduce pgsql socket pool and number of workers to match 2000 maximum connections

Ludovic Gasc (GMLudo) 10 years ago
parent
commit
407d99a19c

+ 1 - 1
frameworks/Python/API-Hour/hello/etc/hello/api_hour/gunicorn_conf.py

@@ -3,7 +3,7 @@ import os
 
 
 _is_travis = os.environ.get('TRAVIS') == 'true'
 _is_travis = os.environ.get('TRAVIS') == 'true'
 
 
-workers = multiprocessing.cpu_count() * 3
+workers = multiprocessing.cpu_count() * 2
 if _is_travis:
 if _is_travis:
     workers = 2
     workers = 2