Skip to content

Commit

Permalink
Disable basic(db) visibility sampling by default (cadence-workflow#4407)
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng authored Aug 24, 2021
1 parent 76ec20a commit 6dec5aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions common/domain/failover_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/uber-go/tally"

"github.com/uber/cadence/common"
"github.com/uber/cadence/common/cache"
"github.com/uber/cadence/common/clock"
Expand Down
4 changes: 2 additions & 2 deletions common/dynamicconfig/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ const (
// Default value: FALSE
// Allowed filters: N/A
EnableGlobalDomain
// EnableVisibilitySampling is key for enable visibility sampling
// EnableVisibilitySampling is key for enable visibility sampling for basic(DB based) visibility
// KeyName: system.enableVisibilitySampling
// Value type: Bool
// Default value: TRUE
// Default value: FALSE
// Allowed filters: N/A
EnableVisibilitySampling
// EnableReadFromClosedExecutionV2 is key for enable read from cadence_visibility.closed_executions_v2
Expand Down
2 changes: 1 addition & 1 deletion service/history/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func New(dc *dynamicconfig.Collection, numberOfShards int, storeType string, isA
PersistenceMaxQPS: dc.GetIntProperty(dynamicconfig.HistoryPersistenceMaxQPS, 9000),
PersistenceGlobalMaxQPS: dc.GetIntProperty(dynamicconfig.HistoryPersistenceGlobalMaxQPS, 0),
ShutdownDrainDuration: dc.GetDurationProperty(dynamicconfig.HistoryShutdownDrainDuration, 0),
EnableVisibilitySampling: dc.GetBoolProperty(dynamicconfig.EnableVisibilitySampling, true),
EnableVisibilitySampling: dc.GetBoolProperty(dynamicconfig.EnableVisibilitySampling, false),
EnableReadFromClosedExecutionV2: dc.GetBoolProperty(dynamicconfig.EnableReadFromClosedExecutionV2, false),
VisibilityOpenMaxQPS: dc.GetIntPropertyFilteredByDomain(dynamicconfig.HistoryVisibilityOpenMaxQPS, 300),
VisibilityClosedMaxQPS: dc.GetIntPropertyFilteredByDomain(dynamicconfig.HistoryVisibilityClosedMaxQPS, 300),
Expand Down

0 comments on commit 6dec5aa

Please sign in to comment.