Skip to content

Commit

Permalink
Support fluctuating task load in matching simulation (#6565)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir authored Dec 18, 2024
1 parent 1b1afb9 commit 614284c
Show file tree
Hide file tree
Showing 13 changed files with 1,725 additions and 1,324 deletions.
7 changes: 7 additions & 0 deletions common/dynamicconfig/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,7 @@ const (
MatchingPartitionUpscaleSustainedDuration
MatchingPartitionDownscaleSustainedDuration
MatchingAdaptiveScalerUpdateInterval
MatchingQPSTrackerInterval

// HistoryLongPollExpirationInterval is the long poll expiration interval in the history service
// KeyName: history.longPollExpirationInterval
Expand Down Expand Up @@ -4778,6 +4779,12 @@ var DurationKeys = map[DurationKey]DynamicDuration{
Description: "MatchingAdaptiveScalerUpdateInterval is the internal for adaptive scaler to update",
DefaultValue: time.Second * 15,
},
MatchingQPSTrackerInterval: {
KeyName: "matching.qpsTrackerInterval",
Filters: []Filter{DomainName, TaskListName, TaskType},
Description: "MatchingQPSTrackerInterval is the interval for qps tracker's loop. Changes are not reflected until service restart",
DefaultValue: time.Second * 10,
},
HistoryLongPollExpirationInterval: {
KeyName: "history.longPollExpirationInterval",
Filters: []Filter{DomainName},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ services:
- -c
- >
go test -timeout 180s
-run ^TestMatchingSimulationSuite$
-run ^TestMatchingSimulation.*$
-count 1
-v
-tags matchingsim
Expand Down
Loading

0 comments on commit 614284c

Please sign in to comment.