Change-Id: I44f07afcdd5a723afda8a9fb2abd698508694278
# This is used only if manage_polling is true.
# Defaults to undef
#
+# [*batch_size*]
+# (Optional) Batch size of samples to send to notification agent.
+# Defaults to $::os_service_default
+#
# DEPRECATED PARAMETERS
#
# [*coordination_url*]
$polling_interval = 600,
$polling_meters = $::ceilometer::params::polling_meters,
$polling_config = undef,
+ $batch_size = $::os_service_default,
# DEPRECATED PARAMETERS
$coordination_url = undef,
) inherits ceilometer {
}
}
+ ceilometer_config {
+ 'polling/batch_size': value => $batch_size
+ }
+
if $manage_service {
if $enabled {
$service_ensure = 'running'
--- /dev/null
+---
+features:
+ - |
+ The ``ceilometer::agent::polling`` class now suppports the new
+ ``batch_size`` parameter.
:tag => 'ceilometer-service',
)}
+ it { should contain_ceilometer_config('polling/batch_size').with_value('<SERVICE DEFAULT>') }
it { should_not contain_file('polling') }
end
it { should contain_ceilometer_config('coordination/backend_url').with_value('redis://localhost:6379') }
end
+
+ context 'when batch_size is set' do
+ before do
+ params.merge!( :batch_size => 50 )
+ end
+
+ it { should contain_ceilometer_config('polling/batch_size').with_value(50) }
+ end
end
on_supported_os({