less number of default workers. (#1206)

This commit is contained in:
Stefano Ordine 2016-10-07 19:16:41 +02:00 committed by Maxime Beauchemin
parent 94578cb6a7
commit 609ae22bda
3 changed files with 3 additions and 4 deletions

View File

@ -32,7 +32,7 @@ manager.add_command('db', MigrateCommand)
'-p', '--port', default=config.get("CARAVEL_WEBSERVER_PORT"),
help="Specify the port on which to run the web server")
@manager.option(
'-w', '--workers', default=config.get("CARAVEL_WORKERS", 16),
'-w', '--workers', default=config.get("CARAVEL_WORKERS", 2),
help="Number of gunicorn web server workers to fire up")
@manager.option(
'-t', '--timeout', default=config.get("CARAVEL_WEBSERVER_TIMEOUT"),

View File

@ -30,7 +30,7 @@ with open(PACKAGE_FILE) as package_file:
VERSION_STRING = json.load(package_file)['version']
ROW_LIMIT = 50000
CARAVEL_WORKERS = 16
CARAVEL_WORKERS = 2
CARAVEL_WEBSERVER_ADDRESS = '0.0.0.0'
CARAVEL_WEBSERVER_PORT = 8088

View File

@ -136,7 +136,7 @@ of the parameters you can copy / paste in that configuration module: ::
# Caravel specific config
#---------------------------------------------------------
ROW_LIMIT = 5000
CARAVEL_WORKERS = 16
CARAVEL_WORKERS = 4
CARAVEL_WEBSERVER_PORT = 8088
#---------------------------------------------------------
@ -344,4 +344,3 @@ your environment.::
npm run prod
cd $CARAVEL_HOME
python setup.py install