Merge "Lower down max_threads"
This commit is contained in:
@@ -64,18 +64,16 @@ orchestrator_opts = [
|
|||||||
cfg.IntOpt(
|
cfg.IntOpt(
|
||||||
'max_workers_reprocessing',
|
'max_workers_reprocessing',
|
||||||
default=multiprocessing.cpu_count(),
|
default=multiprocessing.cpu_count(),
|
||||||
|
sample_default=4,
|
||||||
min=0,
|
min=0,
|
||||||
help='Max number of workers to execute the reprocessing. Defaults to '
|
help='Max number of workers to execute the reprocessing. Defaults to '
|
||||||
'the number of available CPU cores.'),
|
'the number of available CPU cores.'),
|
||||||
cfg.IntOpt('max_threads',
|
cfg.IntOpt('max_threads',
|
||||||
# NOTE(peschk_l): This is the futurist default
|
default=16,
|
||||||
default=multiprocessing.cpu_count() * 5,
|
|
||||||
sample_default=20,
|
|
||||||
min=1,
|
min=1,
|
||||||
deprecated_name='max_greenthreads',
|
deprecated_name='max_greenthreads',
|
||||||
advanced=True,
|
advanced=True,
|
||||||
help='Maximal number of threads to use per worker. Defaults to '
|
help='Maximal number of threads to use per worker.')
|
||||||
'5 times the number of available CPUs'),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
CONF.register_opts(orchestrator_opts, group='orchestrator')
|
CONF.register_opts(orchestrator_opts, group='orchestrator')
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
The ``[orchestrator] max_threads`` parameter now defaults to 16, to avoid
|
||||||
|
too many threads in total in node with many CPU cores.
|
Reference in New Issue
Block a user