Limit number of default swift server workers

'auto' defaults to the number of effective cpu cores and we should
cap the default max number using os_workers fact, unless overridden.

Change-Id: I59393a8d2d6aa13c386aea56da72b096ca672d4a
This commit is contained in:
rabi 2018-10-09 10:17:48 +05:30
parent 0104069ab1
commit db15378216
2 changed files with 10 additions and 6 deletions

View File

@ -99,15 +99,15 @@
# #
# [*account_server_workers*] # [*account_server_workers*]
# (optional) Number of account server workers. # (optional) Number of account server workers.
# Defaults to undef. # Defaults to $::os_workers.
# #
# [*container_server_workers*] # [*container_server_workers*]
# (optional) Number of container server workers. # (optional) Number of container server workers.
# Defaults to undef. # Defaults to $::os_workers.
# #
# [*object_server_workers*] # [*object_server_workers*]
# (optional) Number of account server workers. # (optional) Number of account server workers.
# Defaults to undef. # Defaults to $::os_workers.
# #
# [*splice*] # [*splice*]
# (optional) Use splice for zero-copy object GETs. This requires Linux Kernel # (optional) Use splice for zero-copy object GETs. This requires Linux Kernel
@ -138,9 +138,9 @@ class swift::storage::all(
$log_statsd_default_sample_rate = '1.0', $log_statsd_default_sample_rate = '1.0',
$log_statsd_sample_rate_factor = '1.0', $log_statsd_sample_rate_factor = '1.0',
$log_statsd_metric_prefix = '', $log_statsd_metric_prefix = '',
$account_server_workers = undef, $account_server_workers = $::os_workers,
$container_server_workers = undef, $container_server_workers = $::os_workers,
$object_server_workers = undef, $object_server_workers = $::os_workers,
$splice = false, $splice = false,
) { ) {

View File

@ -0,0 +1,4 @@
---
features:
- Default number of account/container/object server workers
capped to os_workers fact unless overridden.