Add max_workers for cloudkitty processor
Change-Id: I21f41d72fcd12339724a14c1eec178e60a7870b3
This commit is contained in:
@@ -52,6 +52,10 @@
|
|||||||
# (optional) Endpoint URL type
|
# (optional) Endpoint URL type
|
||||||
# Default to $::os_service_default
|
# Default to $::os_service_default
|
||||||
#
|
#
|
||||||
|
# [*max_workers*]
|
||||||
|
# (optional) Number of max workers for processor
|
||||||
|
# Default to $::os_service_default
|
||||||
|
#
|
||||||
class cloudkitty::processor (
|
class cloudkitty::processor (
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$manage_service = true,
|
$manage_service = true,
|
||||||
@@ -65,6 +69,7 @@ class cloudkitty::processor (
|
|||||||
$auth_section = 'keystone_authtoken',
|
$auth_section = 'keystone_authtoken',
|
||||||
$region_name = $::os_service_default,
|
$region_name = $::os_service_default,
|
||||||
$interface = $::os_service_default,
|
$interface = $::os_service_default,
|
||||||
|
$max_workers = $::os_service_default,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include cloudkitty::deps
|
include cloudkitty::deps
|
||||||
@@ -111,6 +116,7 @@ class cloudkitty::processor (
|
|||||||
'collector_gnocchi/auth_section': value => $auth_section;
|
'collector_gnocchi/auth_section': value => $auth_section;
|
||||||
'collector_gnocchi/region_name': value => $region_name;
|
'collector_gnocchi/region_name': value => $region_name;
|
||||||
'collector_gnocchi/interface': value => $interface;
|
'collector_gnocchi/interface': value => $interface;
|
||||||
|
'orchestrator/max_workers': value => $max_workers;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add max_workers parameter for orchestrator.
|
@@ -10,7 +10,8 @@ describe 'cloudkitty::processor' do
|
|||||||
:wait_periods => '1',
|
:wait_periods => '1',
|
||||||
:window => '3600',
|
:window => '3600',
|
||||||
:region_name => 'RegionOne',
|
:region_name => 'RegionOne',
|
||||||
:interface => 'publicURL',}
|
:interface => 'publicURL',
|
||||||
|
:max_workers => '6',}
|
||||||
end
|
end
|
||||||
|
|
||||||
shared_examples_for 'cloudkitty-processor' do
|
shared_examples_for 'cloudkitty-processor' do
|
||||||
@@ -27,6 +28,7 @@ describe 'cloudkitty::processor' do
|
|||||||
it { is_expected.to contain_cloudkitty_config('collector_gnocchi/auth_section').with_value('keystone_authtoken') }
|
it { is_expected.to contain_cloudkitty_config('collector_gnocchi/auth_section').with_value('keystone_authtoken') }
|
||||||
it { is_expected.to contain_cloudkitty_config('collector_gnocchi/region_name').with_value( params[:region_name] ) }
|
it { is_expected.to contain_cloudkitty_config('collector_gnocchi/region_name').with_value( params[:region_name] ) }
|
||||||
it { is_expected.to contain_cloudkitty_config('collector_gnocchi/interface').with_value( params[:interface] ) }
|
it { is_expected.to contain_cloudkitty_config('collector_gnocchi/interface').with_value( params[:interface] ) }
|
||||||
|
it { is_expected.to contain_cloudkitty_config('orchestrator/max_workers').with_value( params[:max_workers] ) }
|
||||||
|
|
||||||
it 'installs cloudkitty-processor package' do
|
it 'installs cloudkitty-processor package' do
|
||||||
is_expected.to contain_package('cloudkitty-processor').with(
|
is_expected.to contain_package('cloudkitty-processor').with(
|
||||||
|
Reference in New Issue
Block a user