Эх сурвалжийг харах

[core] Default gunicorn workers to one

This avoid lost query handles for now.
Romain Rigaux 4 жил өмнө
parent
commit
23efb9aa7f

+ 1 - 1
desktop/conf.dist/hue.ini

@@ -67,7 +67,7 @@
   ## gunicorn_work_class=eventlet
 
   # The number of Gunicorn worker processes. If not specified, it uses: (number of CPU * 2) + 1.
-  ## gunicorn_number_of_workers=None
+  ## gunicorn_number_of_workers=1
 
   # Webserver runs as this user
   ## server_user=hue

+ 1 - 1
desktop/conf/pseudo-distributed.ini.tmpl

@@ -71,7 +71,7 @@
   ## gunicorn_work_class=eventlet
 
   # The number of Gunicorn worker processes. If not specified, it uses: (number of CPU * 2) + 1.
-  ## gunicorn_number_of_workers=None
+  ## gunicorn_number_of_workers=1
 
   # Webserver runs as this user
   ## server_user=hue

+ 1 - 1
desktop/core/src/desktop/conf.py

@@ -163,7 +163,7 @@ GUNICORN_NUMBER_OF_WORKERS = Config(
   key="gunicorn_number_of_workers",
   help=_("The number of Gunicorn worker processes. If not specified, it uses: (number of CPU * 2) + 1."),
   type=int,
-  default=None)
+  default=1)
 
 HTTP_HOST = Config(
   key="http_host",