forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Matching simulation improvements (cadence-workflow#6224)
Fix sync matching by increasing the deadline for AddDecisionTask. Sync matching subtracts 1 second from the deadline to determine how long to spend sync matching, and with a deadline of 0.5 seconds it immediately times out. Add support for parameterizing the configuration file to use. This will allow us to have several scenarios that we evaluate any matching changes against. Rather than running for a fixed time, run until the expected number of tasks have been consumed. This allows for the benchmark to be used as a measure of throughput and also makes it run faster for short lived scenarios.
- Loading branch information
Showing
4 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
enablearchival: false | ||
clusterno: 1 | ||
messagingclientconfig: | ||
usemock: true | ||
historyconfig: | ||
numhistoryshards: 4 | ||
numhistoryhosts: 1 | ||
matchingconfig: | ||
nummatchinghosts: 4 | ||
simulationconfig: | ||
tasklistwritepartitions: 2 | ||
tasklistreadpartitions: 2 | ||
numpollers: 10 | ||
numtaskgenerators: 2 | ||
taskgeneratortickinterval: 10ms | ||
maxtasktogenerate: 1500 | ||
polltimeout: 5s | ||
forwardermaxoutstandingpolls: 20 | ||
forwardermaxoutstandingtasks: 1 | ||
forwardermaxratepersecond: 10 | ||
forwardermaxchildrenpernode: 20 | ||
workerconfig: | ||
enableasyncwfconsumer: false |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters