Skip to content

Commit

Permalink
feat: add require datastreams to bulk index requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall committed Jun 11, 2024
1 parent dbf7960 commit 272c014
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions internal/beater/beater.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,13 +691,14 @@ func (s *Runner) newFinalBatchProcessor(
scalingCfg.Disabled = !*enabled
}
opts := docappender.Config{
CompressionLevel: esConfig.CompressionLevel,
FlushBytes: flushBytes,
FlushInterval: esConfig.FlushInterval,
Tracer: tracer,
MaxRequests: esConfig.MaxRequests,
Scaling: scalingCfg,
Logger: zap.New(s.logger.Core(), zap.WithCaller(true)),
CompressionLevel: esConfig.CompressionLevel,
FlushBytes: flushBytes,
FlushInterval: esConfig.FlushInterval,
Tracer: tracer,
MaxRequests: esConfig.MaxRequests,
Scaling: scalingCfg,
Logger: zap.New(s.logger.Core(), zap.WithCaller(true)),
RequireDataStream: true,
}
opts = docappenderConfig(opts, memLimit, s.logger)
appender, err := docappender.New(client, opts)
Expand Down

0 comments on commit 272c014

Please sign in to comment.