Skip to content

Commit

Permalink
Changed maxProcessing defaults
Browse files Browse the repository at this point in the history
for both batcher and loader
as both operates on batches they have high processing time and are slow consumers
  • Loading branch information
alok87 committed Mar 4, 2021
1 parent 47489e2 commit 6ea5b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion redshiftsink/controllers/batcher_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewBatcher(
// defaults for the batcher
var sessionTimeoutSeconds int = 10
var hearbeatIntervalSeconds int = 2
var maxProcessingSeconds float32 = 0.5
var maxProcessingSeconds float32 = 180 // batcher can be slow based on batch size

var groupConfigs []kafka.ConsumerGroupConfig
for groupID, group := range consumerGroups {
Expand Down
2 changes: 1 addition & 1 deletion redshiftsink/controllers/loader_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func NewLoader(
// defaults for the loader
var sessionTimeoutSeconds int = 10
var hearbeatIntervalSeconds int = 2
var maxProcessingSeconds float32 = 0.5
var maxProcessingSeconds float32 = 600 // loader can be slow based on batch size

var groupConfigs []kafka.ConsumerGroupConfig
for groupID, group := range consumerGroups {
Expand Down

0 comments on commit 6ea5b68

Please sign in to comment.