Add support to configure Num of Storage sacks

Gnocchi 4 supports storage sacks during upgrade. lets make this
configurable if we want to use more metricd workers.

Change-Id: I27390b8babf8c4ef35f4c9b8a2e5be69fb9a54ee
This commit is contained in:
Pradeep Kilambi 2017-06-06 08:28:14 -04:00
parent 3c98a1bc3f
commit a915b15001
2 changed files with 12 additions and 1 deletions

View File

@ -34,6 +34,10 @@ parameters:
default: 30 default: 30
description: Delay between processing metrics. description: Delay between processing metrics.
type: number type: number
NumberOfStorageSacks:
default: '128'
description: Number of storage sacks to create.
type: string
GnocchiPassword: GnocchiPassword:
description: The password for the gnocchi service and db account. description: The password for the gnocchi service and db account.
type: string type: string
@ -87,7 +91,11 @@ outputs:
query: query:
read_default_file: /etc/my.cnf.d/tripleo.cnf read_default_file: /etc/my.cnf.d/tripleo.cnf
read_default_group: tripleo read_default_group: tripleo
gnocchi::db::sync::extra_opts: '' gnocchi::db::sync::extra_opts:
list_join:
- ' '
- - '--num-storage-sacks'
- {get_param: NumberOfStorageSacks}
gnocchi::storage::metric_processing_delay: {get_param: MetricProcessingDelay} gnocchi::storage::metric_processing_delay: {get_param: MetricProcessingDelay}
gnocchi::storage::swift::swift_user: 'service:gnocchi' gnocchi::storage::swift::swift_user: 'service:gnocchi'
gnocchi::storage::swift::swift_auth_version: 3 gnocchi::storage::swift::swift_auth_version: 3

View File

@ -0,0 +1,3 @@
---
features:
- Add support to configure number of sacks in gnocchi.