Skip to content

Commit

Permalink
less number of default workers. (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanoOrdine authored and mistercrunch committed Oct 7, 2016
1 parent 94578cb commit 609ae22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion caravel/bin/caravel
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion caravel/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
#---------------------------------------------------------
Expand Down Expand Up @@ -344,4 +344,3 @@ your environment.::
npm run prod
cd $CARAVEL_HOME
python setup.py install

0 comments on commit 609ae22

Please sign in to comment.