Browse Source

Reduce the number of workers to avoid to open too much databases connections

Ludovic Gasc (GMLudo) 8 years ago
parent
commit
b3e9c34d77

+ 1 - 1
frameworks/Python/asyncio/aiohttp.web/etc/hello/api_hour/gunicorn_conf.py

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

+ 1 - 1
frameworks/Python/asyncio/yocto_http/etc/hello/api_hour/gunicorn_conf.py

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