From 609ae22bdabfb9a9cb99d1a4bfba62367f03a8d5 Mon Sep 17 00:00:00 2001 From: Stefano Ordine Date: Fri, 7 Oct 2016 19:16:41 +0200 Subject: [PATCH] less number of default workers. (#1206) --- caravel/bin/caravel | 2 +- caravel/config.py | 2 +- docs/installation.rst | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/caravel/bin/caravel b/caravel/bin/caravel index d7dbee746465f..11e899cf384f6 100755 --- a/caravel/bin/caravel +++ b/caravel/bin/caravel @@ -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"), diff --git a/caravel/config.py b/caravel/config.py index 267a7777333a9..89bcaa76f4cd0 100644 --- a/caravel/config.py +++ b/caravel/config.py @@ -30,7 +30,7 @@ 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 diff --git a/docs/installation.rst b/docs/installation.rst index fe410da2f9ee2..c39539da67853 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -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 -