Enable buffering for Nagios outputs
This should avoid message congestion in pipeline when Nagios is unavailable. A small buffer is used because it is useless to keep old AFD/GSE messages. Change-Id: Id9f266876cea0213845fa953732dbc0fa7584a8b
This commit is contained in:
parent
784cea5983
commit
a9fbd4af5e
@ -49,8 +49,9 @@ define lma_collector::afd_nagios(
|
||||
headers => {
|
||||
'Content-Type' => 'application/x-www-form-urlencoded'
|
||||
},
|
||||
# Buffering isn't needed for Nagios checks
|
||||
use_buffering => false,
|
||||
use_buffering => $lma_collector::params::buffering_enabled,
|
||||
max_buffer_size => $lma_collector::params::buffering_max_buffer_tiny_size,
|
||||
max_file_size => $lma_collector::params::buffering_max_file_tiny_size,
|
||||
require => Heka::Encoder::Sandbox["nagios_afd_${title}"],
|
||||
notify => Class['lma_collector::service'],
|
||||
}
|
||||
|
@ -60,8 +60,9 @@ define lma_collector::gse_nagios (
|
||||
headers => {
|
||||
'Content-Type' => 'application/x-www-form-urlencoded'
|
||||
},
|
||||
# Buffering isn't needed for Nagios checks
|
||||
use_buffering => false,
|
||||
use_buffering => $lma_collector::params::buffering_enabled,
|
||||
max_buffer_size => $lma_collector::params::buffering_max_buffer_tiny_size,
|
||||
max_file_size => $lma_collector::params::buffering_max_file_tiny_size,
|
||||
require => Heka::Encoder::Sandbox["nagios_gse_${title}"],
|
||||
notify => Class['lma_collector::service'],
|
||||
}
|
||||
|
@ -73,9 +73,8 @@ class lma_collector::params {
|
||||
$buffering_max_file_size = 128 * 1024 * 1024
|
||||
$buffering_max_buffer_size = 1024 * 1024 * 1024
|
||||
|
||||
if $buffering_max_file_size != 0 and $buffering_max_file_size < $hekad_max_message_size {
|
||||
fail('max_message_size setting must be greater than max_file_size')
|
||||
}
|
||||
$buffering_max_file_tiny_size = 1 * 1024 * 1024
|
||||
$buffering_max_buffer_tiny_size = 2 * 1024 * 1024
|
||||
|
||||
# Heka's default value is 1
|
||||
$hekad_max_process_inject = 1
|
||||
|
Loading…
Reference in New Issue
Block a user