Reduce metric_buffer_limit to 1000

closes #780
This commit is contained in:
Pierre Fersing 2016-03-02 15:38:08 +01:00 committed by Michele Fadda
parent 1673491996
commit 4b5dac0cba
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@
## Telegraf will cache metric_buffer_limit metrics for each output, and will ## Telegraf will cache metric_buffer_limit metrics for each output, and will
## flush this buffer on a successful write. ## flush this buffer on a successful write.
metric_buffer_limit = 10000 metric_buffer_limit = 1000
## Flush the buffer whenever full, regardless of flush_interval. ## Flush the buffer whenever full, regardless of flush_interval.
flush_buffer_when_full = true flush_buffer_when_full = true

View File

@ -24,7 +24,7 @@
## Telegraf will cache metric_buffer_limit metrics for each output, and will ## Telegraf will cache metric_buffer_limit metrics for each output, and will
## flush this buffer on a successful write. ## flush this buffer on a successful write.
metric_buffer_limit = 10000 metric_buffer_limit = 1000
## Flush the buffer whenever full, regardless of flush_interval. ## Flush the buffer whenever full, regardless of flush_interval.
flush_buffer_when_full = true flush_buffer_when_full = true

View File

@ -159,7 +159,7 @@ var header = `# Telegraf Configuration
## Telegraf will cache metric_buffer_limit metrics for each output, and will ## Telegraf will cache metric_buffer_limit metrics for each output, and will
## flush this buffer on a successful write. ## flush this buffer on a successful write.
metric_buffer_limit = 10000 metric_buffer_limit = 1000
## Flush the buffer whenever full, regardless of flush_interval. ## Flush the buffer whenever full, regardless of flush_interval.
flush_buffer_when_full = true flush_buffer_when_full = true

View File

@ -10,7 +10,7 @@ import (
const ( const (
// Default number of metrics kept between flushes. // Default number of metrics kept between flushes.
DEFAULT_METRIC_BUFFER_LIMIT = 10000 DEFAULT_METRIC_BUFFER_LIMIT = 1000
// Limit how many full metric buffers are kept due to failed writes. // Limit how many full metric buffers are kept due to failed writes.
FULL_METRIC_BUFFERS_LIMIT = 100 FULL_METRIC_BUFFERS_LIMIT = 100