Commit b8ff0a08 authored by Romain Loth's avatar Romain Loth

more workers by default

parent 8ea3b932
...@@ -19,7 +19,10 @@ fi ...@@ -19,7 +19,10 @@ fi
# anyway we always need a simple web server to run the services # anyway we always need a simple web server to run the services
echo "binding gunicorn to unix:/tmp/comex.sock" echo "binding gunicorn to unix:/tmp/comex.sock"
gunicorn -b unix:/tmp/comex.sock services.main:app --workers 2 gunicorn -b unix:/tmp/comex.sock services.main:app --workers 8
# TODO make n_workers a param in the ini file
# export COMEX_HOST=$(grep -oP '(?<=COMEX_HOST=).*' config/parametres_comex.ini) # export COMEX_HOST=$(grep -oP '(?<=COMEX_HOST=).*' config/parametres_comex.ini)
# export COMEX_PORT=$(grep -oP '(?<=COMEX_PORT=).*' config/parametres_comex.ini) # export COMEX_PORT=$(grep -oP '(?<=COMEX_PORT=).*' config/parametres_comex.ini)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment