Skip to content

Commit

Permalink
Set default MaximumSignalsPerExecution to 10K (cadence-workflow#3776)
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng authored Nov 23, 2020
1 parent e41832d commit 0993f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/history/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ func New(dc *dynamicconfig.Collection, numberOfShards int, storeType string, isA
ExecutionMgrNumConns: dc.GetIntProperty(dynamicconfig.ExecutionMgrNumConns, 50),
HistoryMgrNumConns: dc.GetIntProperty(dynamicconfig.HistoryMgrNumConns, 50),
MaximumBufferedEventsBatch: dc.GetIntProperty(dynamicconfig.MaximumBufferedEventsBatch, 100),
MaximumSignalsPerExecution: dc.GetIntPropertyFilteredByDomain(dynamicconfig.MaximumSignalsPerExecution, 0),
// 10K signals should big enough given workflow execution has 200K history lengh limit. It needs to be non-zero to protect continueAsNew from infinit loop
MaximumSignalsPerExecution: dc.GetIntPropertyFilteredByDomain(dynamicconfig.MaximumSignalsPerExecution, 10000),
ShardUpdateMinInterval: dc.GetDurationProperty(dynamicconfig.ShardUpdateMinInterval, 5*time.Minute),
ShardSyncMinInterval: dc.GetDurationProperty(dynamicconfig.ShardSyncMinInterval, 5*time.Minute),
ShardSyncTimerJitterCoefficient: dc.GetFloat64Property(dynamicconfig.TransferProcessorMaxPollIntervalJitterCoefficient, 0.15),
Expand Down

0 comments on commit 0993f6e

Please sign in to comment.