Skip to content

Commit

Permalink
beater: set default flush timeout to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Oct 5, 2021
1 parent 79b2244 commit ccadbc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beater/beater.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ func (s *serverRunner) newFinalBatchProcessor(p *publish.Publisher) (model.Batch
FlushInterval time.Duration `config:"flush_interval"`
NumWorkers int `config:"num_workers"`
}
esConfig.FlushInterval = time.Second

if esOutputConfig != nil {
esConfig.Config = elasticsearch.DefaultConfig()
if err := esOutputConfig.Unpack(&esConfig); err != nil {
Expand Down

0 comments on commit ccadbc8

Please sign in to comment.