Browse Source

API-Hour FrameworkBenchmark: Update config files

Ludovic Gasc (GMLudo) 10 years ago
parent
commit
483d332be0

+ 3 - 2
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'
 
-workers = multiprocessing.cpu_count() * 3
+workers = multiprocessing.cpu_count() * 1
 if _is_travis:
     workers = 2
 
@@ -11,4 +11,5 @@ bind = "0.0.0.0:8008"
 keepalive = 120
 errorlog = '-'
 pidfile = 'api_hour.pid'
-pythonpath = 'hello'
+pythonpath = 'hello'
+backlog = 10240000

+ 5 - 5
frameworks/Python/API-Hour/hello/etc/hello/api_hour/logging.ini

@@ -41,31 +41,31 @@ qualname=py.warnings
 propagate=0
 
 [logger_asyncio]
-level=INFO
+level=WARN
 handlers=console,syslog
 qualname=asyncio
 propagate=0
 
 [logger_gunicorn]
-level=INFO
+level=WARN
 handlers=console,syslog
 qualname=gunicorn
 propagate=0
 
 [logger_aiohttp]
-level=INFO
+level=WARN
 handlers=console,syslog
 qualname=aiohttp
 propagate=0
 
 [logger_api_hour]
-level=DEBUG
+level=WARN
 handlers=console,syslog
 qualname=api_hour
 propagate=0
 
 [logger_hello]
-level=DEBUG
+level=WARN
 handlers=console,syslog
 qualname=hello
 propagate=0

+ 2 - 2
frameworks/Python/API-Hour/hello/etc/hello/main/main.yaml

@@ -5,5 +5,5 @@ engines:
     dbname: hello_world
     user: benchmarkdbuser
     password: benchmarkdbpass
-    minsize: 20
-    maxsize: 20
+    minsize: 40
+    maxsize: 40