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

Commit

Permalink
Add generous processing timeout for Sarama clients (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Bailey authored and Kiran RG committed May 30, 2017
1 parent 7a71413 commit ffa0947
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit ffa0947

Please sign in to comment.