diff --git a/caravel/bin/caravel b/caravel/bin/caravel index d7dbee7464..11e899cf38 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 267a777733..89bcaa76f4 100644 --- a/caravel/config.py +++ b/caravel/config.py @@ -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 diff --git a/docs/installation.rst b/docs/installation.rst index fe410da2f9..c39539da67 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 -