Merge "enable a single worker by default"

This commit is contained in:
Jenkins 2014-03-27 02:08:59 +00:00 committed by Gerrit Code Review
commit 69a9bfa3a7
2 changed files with 12 additions and 10 deletions

View File

@ -42,11 +42,13 @@ OPTS = [
default=['database'], default=['database'],
help='Dispatcher to process data.'), help='Dispatcher to process data.'),
cfg.IntOpt('collector_workers', cfg.IntOpt('collector_workers',
help='Number of workers for collector service. The default ' default=1,
'will be equal to the number of CPUs available.'), help='Number of workers for collector service. A single '
'collector is enabled by default.'),
cfg.IntOpt('notification_workers', cfg.IntOpt('notification_workers',
help='Number of workers for notification service. The default ' default=1,
'will be equal to the number of CPUs available.'), help='Number of workers for notification service. A single '
'notification agent is enabled by default.'),
] ]
cfg.CONF.register_opts(OPTS) cfg.CONF.register_opts(OPTS)

View File

@ -40,13 +40,13 @@
# Dispatcher to process data. (multi valued) # Dispatcher to process data. (multi valued)
#dispatcher=database #dispatcher=database
# Number of workers for collector service. The default will be # Number of workers for collector service. A single
# equal to the number of CPUs available. (integer value) # collector is enabled by default. (integer value)
#collector_workers=<None> #collector_workers=1
# Number of workers for notification service. The default will # Number of workers for notification service. A single
# be equal to the number of CPUs available. (integer value) # notification agent is enabled by default. (integer value)
#notification_workers=<None> #notification_workers=1
# #