Skip to content

Commit

Permalink
Merge pull request #628 from urso/enh/default-bulk-sizes
Browse files Browse the repository at this point in the history
default bulk sizes
  • Loading branch information
ruflin committed Jan 7, 2016
2 parents 8f15afd + cb6eea1 commit 9177c74
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ https://github.com/elastic/beats/compare/1.0.0...master[Check the HEAD diff]
- Fix logging issue with file based output where newlines could be misplaced
during concurrent logging {pull}650[650]
- Reduce memory usage by separate queue sizes for single events and bulk events. {pull}649[649] {issue}516[516]
- Set default default bulk_max_size value to 2048 {pull}628[628]

*Packetbeat*
- Fix setting direction to out and use its value to decide when dropping events if ignore_outgoing is enabled {pull}557[557]
Expand All @@ -37,6 +38,7 @@ https://github.com/elastic/beats/compare/1.0.0...master[Check the HEAD diff]

*Filebeat*
- Add exclude_files configuration option {pull}563[563]
- Set spool_size default value to 2048 {pull}628[628]

*Winlogbeat*

Expand Down
2 changes: 1 addition & 1 deletion filebeat/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
DefaultRegistryFile = ".filebeat"
DefaultIgnoreOlderDuration time.Duration = 24 * time.Hour
DefaultScanFrequency time.Duration = 10 * time.Second
DefaultSpoolSize uint64 = 1024
DefaultSpoolSize uint64 = 2048
DefaultIdleTimeout time.Duration = 5 * time.Second
DefaultHarvesterBufferSize int = 16 << 10 // 16384
DefaultInputType = "log"
Expand Down
2 changes: 1 addition & 1 deletion filebeat/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestReadConfig(t *testing.T) {

assert.Nil(t, err)

assert.Equal(t, uint64(1024), config.Filebeat.SpoolSize)
assert.Equal(t, uint64(DefaultSpoolSize), config.Filebeat.SpoolSize)
assert.Equal(t, "/prospectorConfigs/", config.Filebeat.ConfigDir)

prospectors := config.Filebeat.Prospectors
Expand Down
2 changes: 1 addition & 1 deletion filebeat/docs/configuration.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ value is exceeded.
[source,yaml]
-------------------------------------------------------------------------------------
filebeat:
spool_size: 1024
spool_size: 2048
-------------------------------------------------------------------------------------


Expand Down
2 changes: 1 addition & 1 deletion filebeat/etc/beat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ filebeat:
# General filebeat configuration options
#
# Event count spool threshold - forces network flush if exceeded
#spool_size: 1024
#spool_size: 2048

# Defines how often the spooler is flushed. After idle_timeout the spooler is
# Flush even though spool_size is not reached.
Expand Down
2 changes: 1 addition & 1 deletion filebeat/etc/filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ filebeat:
# General filebeat configuration options
#
# Event count spool threshold - forces network flush if exceeded
#spool_size: 1024
#spool_size: 2048

# Defines how often the spooler is flushed. After idle_timeout the spooler is
# Flush even though spool_size is not reached.
Expand Down
2 changes: 1 addition & 1 deletion filebeat/tests/files/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ filebeat:
fields:
input: stdin
# Paths is not required
spool_size: 1024
spool_size: 2048
idle_timeout: 5s
config_dir: "/prospectorConfigs/"

Expand Down
2 changes: 1 addition & 1 deletion libbeat/publisher/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type asyncPublisher struct {

const (
defaultFlushInterval = 1000 * time.Millisecond // 1s
defaultBulkSize = 200
defaultBulkSize = 2048
)

func newAsyncPublisher(pub *PublisherType, hwm, bulkHWM int) *asyncPublisher {
Expand Down

0 comments on commit 9177c74

Please sign in to comment.