Add CinderBackupWorkers and CinderBackupMaxOperations

New CinderBackupWorkers and CinderBackupMaxOperations support
configuring the concurrency of cinder backup and restore operations.
The default values match cinder's own default values.

Change-Id: I9b6387a00bb5f422a68e7a84a4da2be5907d30c1
This commit is contained in:
Alan Bishop 2021-04-14 12:39:49 -07:00
parent c6c513a96a
commit 4ca848fb01
2 changed files with 19 additions and 0 deletions

View File

@ -56,6 +56,15 @@ parameters:
type: string
constraints:
- allowed_values: ['swift', 'ceph', 'nfs', 'gcs', 's3']
CinderBackupWorkers:
type: number
default: 1
description: The number of cinder-backup processes to launch.
CinderBackupMaxOperations:
type: number
default: 15
description: The maximum number of concurrent cinder backup/restore
operations (0 means unlimited).
CinderBackupRbdClusterName:
type: string
default: ''
@ -143,6 +152,8 @@ outputs:
config_settings:
map_merge:
- get_attr: [CinderBase, role_data, config_settings]
- cinder::backup::backup_workers: {get_param: CinderBackupWorkers}
cinder::backup::backup_max_operations: {get_param: CinderBackupMaxOperations}
- if:
- {equals: [{get_param: CinderBackupBackend}, 'ceph']}
- cinder::backup::ceph::backup_ceph_user:

View File

@ -0,0 +1,8 @@
---
features:
- |
Two new parameters are added to control the concurrency of Cinder's
backup and restore operations:
* CinderBackupWorkers
* CinderBackupMaxOperations