enable a single worker by default
there are issues with postgresql and multiple connections. change default to a single worker to still allow multiple workers for backends which support it. Partial-Bug: #1298073 Change-Id: I1bf256f333ad8614bcae2c74dc0544553bffbbe7
This commit is contained in:
parent
7381b6355f
commit
965539ba40
@ -42,11 +42,13 @@ OPTS = [
|
||||
default=['database'],
|
||||
help='Dispatcher to process data.'),
|
||||
cfg.IntOpt('collector_workers',
|
||||
help='Number of workers for collector service. The default '
|
||||
'will be equal to the number of CPUs available.'),
|
||||
default=1,
|
||||
help='Number of workers for collector service. A single '
|
||||
'collector is enabled by default.'),
|
||||
cfg.IntOpt('notification_workers',
|
||||
help='Number of workers for notification service. The default '
|
||||
'will be equal to the number of CPUs available.'),
|
||||
default=1,
|
||||
help='Number of workers for notification service. A single '
|
||||
'notification agent is enabled by default.'),
|
||||
]
|
||||
cfg.CONF.register_opts(OPTS)
|
||||
|
||||
|
@ -40,13 +40,13 @@
|
||||
# Dispatcher to process data. (multi valued)
|
||||
#dispatcher=database
|
||||
|
||||
# Number of workers for collector service. The default will be
|
||||
# equal to the number of CPUs available. (integer value)
|
||||
#collector_workers=<None>
|
||||
# Number of workers for collector service. A single
|
||||
# collector is enabled by default. (integer value)
|
||||
#collector_workers=1
|
||||
|
||||
# Number of workers for notification service. The default will
|
||||
# be equal to the number of CPUs available. (integer value)
|
||||
#notification_workers=<None>
|
||||
# Number of workers for notification service. A single
|
||||
# notification agent is enabled by default. (integer value)
|
||||
#notification_workers=1
|
||||
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user