Browse Source

Merge pull request #2335 from Eyepea/reduce_workers

Reduce the number of workers to avoid to open too much databases connections
A Shawn Bandy 8 years ago
parent
commit
7286fc6776

+ 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