Add support for [DEFAULT] max_parallel_requests
Change-Id: I8fc892301c06d9ff0cb4a687c02c35fcb6942d11
This commit is contained in:
parent
d481b0cec1
commit
b1ebc891f1
@ -9,6 +9,11 @@
|
||||
# (Optional) Timeout seconds for HTTP requests.
|
||||
# Defaults to 600.
|
||||
#
|
||||
# [*max_parallel_requests*]
|
||||
# (Optional) Maximum number of parallel requests for services to handle at
|
||||
# the same time.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*telemetry_secret*]
|
||||
# (Required) Secret key for signing messages.
|
||||
#
|
||||
@ -264,6 +269,7 @@
|
||||
#
|
||||
class ceilometer(
|
||||
$http_timeout = '600',
|
||||
$max_parallel_requests = $::os_service_default,
|
||||
$telemetry_secret = false,
|
||||
$notification_topics = ['notifications'],
|
||||
$notification_driver = $::os_service_default,
|
||||
@ -392,6 +398,7 @@ will be removed in a future release.')
|
||||
# Once we got here, we can act as an honey badger on the rpc used.
|
||||
ceilometer_config {
|
||||
'DEFAULT/http_timeout' : value => $http_timeout;
|
||||
'DEFAULT/max_parallel_requests' : value => $max_parallel_requests;
|
||||
'DEFAULT/host' : value => $host;
|
||||
'publisher/telemetry_secret' : value => $telemetry_secret, secret => true;
|
||||
'hardware/readonly_user_name' : value => $snmpd_readonly_username;
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``ceilometer::max_parallel_requests`` parameter has been added.
|
@ -5,6 +5,7 @@ describe 'ceilometer' do
|
||||
let :params do
|
||||
{
|
||||
:http_timeout => '600',
|
||||
:max_parallel_requests => 64,
|
||||
:telemetry_secret => 'metering-s3cr3t',
|
||||
:package_ensure => 'present',
|
||||
:purge_config => false,
|
||||
@ -24,6 +25,10 @@ describe 'ceilometer' do
|
||||
is_expected.to contain_ceilometer_config('DEFAULT/http_timeout').with_value(params[:http_timeout])
|
||||
end
|
||||
|
||||
it 'configures max_parallel_requests' do
|
||||
is_expected.to contain_ceilometer_config('DEFAULT/max_parallel_requests').with_value(params[:max_parallel_requests])
|
||||
end
|
||||
|
||||
it 'configures host name' do
|
||||
is_expected.to contain_ceilometer_config('DEFAULT/host').with_value(params[:host])
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user