Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Add generous processing timeout for Sarama clients #210

Merged
merged 1 commit into from
May 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions services/outputhost/extcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ func (extCache *extentCache) loadKafkaStream(

// This is an ID that may appear in Kafka logs or metadata
cfg.Config.ClientID = `cherami_` + groupID

// Give a long max processing time, so that Sarama doesn't enter a reconfigure loop because of consumer backpressure
cfg.Config.Consumer.MaxProcessingTime = time.Hour

// Configure a metrics registry and start the exporter
extCache.exporter, cfg.Config.MetricRegistry = goMetricsExporter.NewGoMetricsExporter(
Expand Down