Documentation ¶
Overview ¶
Package dynamicconfig is a generated GoMock package.
Index ¶
- Constants
- Variables
- func AccessHistory(accessHistoryFraction FloatPropertyFn, metricsHandler metrics.Handler) bool
- func ConvertStructure[T any](def T) func(v any) (T, error)
- func NewFileBasedClient(config *FileBasedClientConfig, logger log.Logger, doneCh <-chan interface{}) (*fileBasedClient, error)
- func NewFileBasedClientWithReader(reader fileReader, config *FileBasedClientConfig, logger log.Logger, ...) (*fileBasedClient, error)
- type BoolPropertyFn
- type BoolPropertyFnWithDestinationFilter
- type BoolPropertyFnWithNamespaceFilter
- type BoolPropertyFnWithNamespaceIDFilter
- type BoolPropertyFnWithShardIDFilter
- type BoolPropertyFnWithTaskQueueFilter
- type BoolPropertyFnWithTaskTypeFilter
- type Client
- type Collection
- type ConstrainedValue
- type Constraints
- type DestinationBoolSetting
- type DestinationDurationSetting
- type DestinationFloatSetting
- type DestinationIntSetting
- type DestinationMapSetting
- type DestinationStringSetting
- type DestinationTypedSetting
- type DurationPropertyFn
- type DurationPropertyFnWithDestinationFilter
- type DurationPropertyFnWithNamespaceFilter
- type DurationPropertyFnWithNamespaceIDFilter
- type DurationPropertyFnWithShardIDFilter
- type DurationPropertyFnWithTaskQueueFilter
- type DurationPropertyFnWithTaskTypeFilter
- type FileBasedClientConfig
- type FloatPropertyFn
- type FloatPropertyFnWithDestinationFilter
- type FloatPropertyFnWithNamespaceFilter
- type FloatPropertyFnWithNamespaceIDFilter
- type FloatPropertyFnWithShardIDFilter
- type FloatPropertyFnWithTaskQueueFilter
- type FloatPropertyFnWithTaskTypeFilter
- type GenericSetting
- type GlobalBoolSetting
- type GlobalDurationSetting
- type GlobalFloatSetting
- type GlobalIntSetting
- type GlobalMapSetting
- type GlobalStringSetting
- type GlobalTypedSetting
- type IntPropertyFn
- type IntPropertyFnWithDestinationFilter
- type IntPropertyFnWithNamespaceFilter
- type IntPropertyFnWithNamespaceIDFilter
- type IntPropertyFnWithShardIDFilter
- type IntPropertyFnWithTaskQueueFilter
- type IntPropertyFnWithTaskTypeFilter
- type Key
- type MapPropertyFn
- type MapPropertyFnWithDestinationFilter
- type MapPropertyFnWithNamespaceFilter
- type MapPropertyFnWithNamespaceIDFilter
- type MapPropertyFnWithShardIDFilter
- type MapPropertyFnWithTaskQueueFilter
- type MapPropertyFnWithTaskTypeFilter
- type MockfileReader
- type MockfileReaderMockRecorder
- type NamespaceBoolSetting
- type NamespaceDurationSetting
- type NamespaceFloatSetting
- type NamespaceIDBoolSetting
- type NamespaceIDDurationSetting
- type NamespaceIDFloatSetting
- type NamespaceIDIntSetting
- type NamespaceIDMapSetting
- type NamespaceIDStringSetting
- type NamespaceIDTypedSetting
- type NamespaceIntSetting
- type NamespaceMapSetting
- type NamespaceStringSetting
- type NamespaceTypedSetting
- type Precedence
- type ShardIDBoolSetting
- type ShardIDDurationSetting
- type ShardIDFloatSetting
- type ShardIDIntSetting
- type ShardIDMapSetting
- type ShardIDStringSetting
- type ShardIDTypedSetting
- type StaticClient
- type StringPropertyFn
- type StringPropertyFnWithDestinationFilter
- type StringPropertyFnWithNamespaceFilter
- type StringPropertyFnWithNamespaceIDFilter
- type StringPropertyFnWithShardIDFilter
- type StringPropertyFnWithTaskQueueFilter
- type StringPropertyFnWithTaskTypeFilter
- type TaskQueueBoolSetting
- type TaskQueueDurationSetting
- type TaskQueueFloatSetting
- type TaskQueueIntSetting
- type TaskQueueMapSetting
- type TaskQueueStringSetting
- type TaskQueueTypedSetting
- type TaskTypeBoolSetting
- type TaskTypeDurationSetting
- type TaskTypeFloatSetting
- type TaskTypeIntSetting
- type TaskTypeMapSetting
- type TaskTypeStringSetting
- type TaskTypeTypedSetting
- type Type
- type TypedConstrainedValue
Constants ¶
const GlobalDefaultNumTaskQueuePartitions = 4
Variables ¶
var ( AdminEnableListHistoryTasks = NewGlobalBoolSetting( "admin.enableListHistoryTasks", true, `AdminEnableListHistoryTasks is the key for enabling listing history tasks`, ) AdminMatchingNamespaceToPartitionDispatchRate = NewNamespaceFloatSetting( "admin.matchingNamespaceToPartitionDispatchRate", 10000, `AdminMatchingNamespaceToPartitionDispatchRate is the max qps of any task queue partition for a given namespace`, ) AdminMatchingNamespaceTaskqueueToPartitionDispatchRate = NewTaskQueueFloatSetting( "admin.matchingNamespaceTaskqueueToPartitionDispatchRate", 1000, `AdminMatchingNamespaceTaskqueueToPartitionDispatchRate is the max qps of a task queue partition for a given namespace & task queue`, ) VisibilityPersistenceMaxReadQPS = NewGlobalIntSetting( "system.visibilityPersistenceMaxReadQPS", 9000, `VisibilityPersistenceMaxReadQPS is the max QPC system host can query visibility DB for read.`, ) VisibilityPersistenceMaxWriteQPS = NewGlobalIntSetting( "system.visibilityPersistenceMaxWriteQPS", 9000, `VisibilityPersistenceMaxWriteQPS is the max QPC system host can query visibility DB for write.`, ) EnableReadFromSecondaryVisibility = NewNamespaceBoolSetting( "system.enableReadFromSecondaryVisibility", false, `EnableReadFromSecondaryVisibility is the config to enable read from secondary visibility`, ) SecondaryVisibilityWritingMode = NewGlobalStringSetting( "system.secondaryVisibilityWritingMode", "off", `SecondaryVisibilityWritingMode is key for how to write to secondary visibility`, ) VisibilityDisableOrderByClause = NewNamespaceBoolSetting( "system.visibilityDisableOrderByClause", true, `VisibilityDisableOrderByClause is the config to disable ORDERY BY clause for Elasticsearch`, ) VisibilityEnableManualPagination = NewNamespaceBoolSetting( "system.visibilityEnableManualPagination", true, `VisibilityEnableManualPagination is the config to enable manual pagination for Elasticsearch`, ) VisibilityAllowList = NewNamespaceBoolSetting( "system.visibilityAllowList", true, `VisibilityAllowList is the config to allow list of values for regular types`, ) SuppressErrorSetSystemSearchAttribute = NewNamespaceBoolSetting( "system.suppressErrorSetSystemSearchAttribute", false, `SuppressErrorSetSystemSearchAttribute suppresses errors when trying to set values in system search attributes.`, ) HistoryArchivalState = NewGlobalStringSetting( "system.historyArchivalState", "", `HistoryArchivalState is key for the state of history archival`, ) EnableReadFromHistoryArchival = NewGlobalBoolSetting( "system.enableReadFromHistoryArchival", false, `EnableReadFromHistoryArchival is key for enabling reading history from archival store`, ) VisibilityArchivalState = NewGlobalStringSetting( "system.visibilityArchivalState", "", `VisibilityArchivalState is key for the state of visibility archival`, ) EnableReadFromVisibilityArchival = NewGlobalBoolSetting( "system.enableReadFromVisibilityArchival", false, `EnableReadFromVisibilityArchival is key for enabling reading visibility from archival store`, ) EnableNamespaceNotActiveAutoForwarding = NewNamespaceBoolSetting( "system.enableNamespaceNotActiveAutoForwarding", true, `EnableNamespaceNotActiveAutoForwarding whether enabling DC auto forwarding to active cluster for signal / start / signal with start API if namespace is not active`, ) TransactionSizeLimit = NewGlobalIntSetting( "system.transactionSizeLimit", primitives.DefaultTransactionSizeLimit, `TransactionSizeLimit is the largest allowed transaction size to persistence`, ) DisallowQuery = NewNamespaceBoolSetting( "system.disallowQuery", false, `DisallowQuery is the key to disallow query for a namespace`, ) EnableCrossNamespaceCommands = NewGlobalBoolSetting( "system.enableCrossNamespaceCommands", true, `EnableCrossNamespaceCommands is the key to enable commands for external namespaces`, ) ClusterMetadataRefreshInterval = NewGlobalDurationSetting( "system.clusterMetadataRefreshInterval", time.Minute, `ClusterMetadataRefreshInterval is config to manage cluster metadata table refresh interval`, ) ForceSearchAttributesCacheRefreshOnRead = NewGlobalBoolSetting( "system.forceSearchAttributesCacheRefreshOnRead", false, `ForceSearchAttributesCacheRefreshOnRead forces refreshing search attributes cache on a read operation, so we always get the latest data from DB. This effectively bypasses cache value and is used to facilitate testing of changes in search attributes. This should not be turned on in production.`, ) EnableRingpopTLS = NewGlobalBoolSetting( "system.enableRingpopTLS", false, `EnableRingpopTLS controls whether to use TLS for ringpop, using the same "internode" TLS config as the other services.`, ) RingpopApproximateMaxPropagationTime = NewGlobalDurationSetting( "system.ringpopApproximateMaxPropagationTime", 3*time.Second, `RingpopApproximateMaxPropagationTime is used for timing certain startup and shutdown processes. (It is not and doesn't have to be a guarantee.)`, ) EnableParentClosePolicyWorker = NewGlobalBoolSetting( "system.enableParentClosePolicyWorker", true, `EnableParentClosePolicyWorker decides whether or not enable system workers for processing parent close policy task`, ) EnableStickyQuery = NewNamespaceBoolSetting( "system.enableStickyQuery", true, `EnableStickyQuery indicates if sticky query should be enabled per namespace`, ) EnableActivityEagerExecution = NewNamespaceBoolSetting( "system.enableActivityEagerExecution", false, `EnableActivityEagerExecution indicates if activity eager execution is enabled per namespace`, ) EnableEagerWorkflowStart = NewNamespaceBoolSetting( "system.enableEagerWorkflowStart", false, `EnableEagerWorkflowStart toggles "eager workflow start" - returning the first workflow task inline in the response to a StartWorkflowExecution request and skipping the trip through matching.`, ) NamespaceCacheRefreshInterval = NewGlobalDurationSetting( "system.namespaceCacheRefreshInterval", 10*time.Second, `NamespaceCacheRefreshInterval is the key for namespace cache refresh interval dynamic config`, ) PersistenceHealthSignalMetricsEnabled = NewGlobalBoolSetting( "system.persistenceHealthSignalMetricsEnabled", true, `PersistenceHealthSignalMetricsEnabled determines whether persistence shard RPS metrics are emitted`, ) PersistenceHealthSignalAggregationEnabled = NewGlobalBoolSetting( "system.persistenceHealthSignalAggregationEnabled", true, `PersistenceHealthSignalAggregationEnabled determines whether persistence latency and error averages are tracked`, ) PersistenceHealthSignalWindowSize = NewGlobalDurationSetting( "system.persistenceHealthSignalWindowSize", 10*time.Second, `PersistenceHealthSignalWindowSize is the time window size in seconds for aggregating persistence signals`, ) PersistenceHealthSignalBufferSize = NewGlobalIntSetting( "system.persistenceHealthSignalBufferSize", 5000, `PersistenceHealthSignalBufferSize is the maximum number of persistence signals to buffer in memory per signal key`, ) ShardRPSWarnLimit = NewGlobalIntSetting( "system.shardRPSWarnLimit", 50, `ShardRPSWarnLimit is the per-shard RPS limit for warning`, ) ShardPerNsRPSWarnPercent = NewGlobalFloatSetting( "system.shardPerNsRPSWarnPercent", 0.8, `ShardPerNsRPSWarnPercent is the per-shard per-namespace RPS limit for warning as a percentage of ShardRPSWarnLimit these warning are not emitted if the value is set to 0 or less`, ) OperatorRPSRatio = NewGlobalFloatSetting( "system.operatorRPSRatio", 0.2, `OperatorRPSRatio is the percentage of the rate limit provided to priority rate limiters that should be used for operator API calls (highest priority). Should be >0.0 and <= 1.0 (defaults to 20% if not specified)`, ) PersistenceQPSBurstRatio = NewGlobalFloatSetting( "system.persistenceQPSBurstRatio", 1.0, `PersistenceQPSBurstRatio is the burst ratio for persistence QPS. This flag controls the burst ratio for all services.`, ) DeadlockDumpGoroutines = NewGlobalBoolSetting( "system.deadlock.DumpGoroutines", true, `Whether the deadlock detector should dump goroutines`, ) DeadlockFailHealthCheck = NewGlobalBoolSetting( "system.deadlock.FailHealthCheck", false, `Whether the deadlock detector should cause the grpc server to fail health checks`, ) DeadlockAbortProcess = NewGlobalBoolSetting( "system.deadlock.AbortProcess", false, `Whether the deadlock detector should abort the process`, ) DeadlockInterval = NewGlobalDurationSetting( "system.deadlock.Interval", 30*time.Second, `How often the detector checks each root.`, ) DeadlockMaxWorkersPerRoot = NewGlobalIntSetting( "system.deadlock.MaxWorkersPerRoot", 10, `How many extra goroutines can be created per root.`, ) ValidateUTF8SampleRPCRequest = NewGlobalFloatSetting( "system.validateUTF8.sample.rpcRequest", 0.0, `Sample rate of utf-8 string validation for rpc requests`, ) ValidateUTF8SampleRPCResponse = NewGlobalFloatSetting( "system.validateUTF8.sample.rpcResponse", 0.0, `Sample rate of utf-8 string validation for rpc responses`, ) ValidateUTF8SamplePersistence = NewGlobalFloatSetting( "system.validateUTF8.sample.persistence", 0.0, `Sample rate of utf-8 string validation for persistence [de]serialization`, ) ValidateUTF8FailRPCRequest = NewGlobalBoolSetting( "system.validateUTF8.fail.rpcRequest", false, `Whether to fail rpcs on utf-8 string validation errors`, ) ValidateUTF8FailRPCResponse = NewGlobalBoolSetting( "system.validateUTF8.fail.rpcResponse", false, `Whether to fail rpcs on utf-8 string validation errors`, ) ValidateUTF8FailPersistence = NewGlobalBoolSetting( "system.validateUTF8.fail.persistence", false, `Whether to fail persistence [de]serialization on utf-8 string validation errors`, ) BlobSizeLimitError = NewNamespaceIntSetting( "limit.blobSize.error", 2*1024*1024, `BlobSizeLimitError is the per event blob size limit`, ) BlobSizeLimitWarn = NewNamespaceIntSetting( "limit.blobSize.warn", 512*1024, `BlobSizeLimitWarn is the per event blob size limit for warning`, ) MemoSizeLimitError = NewNamespaceIntSetting( "limit.memoSize.error", 2*1024*1024, `MemoSizeLimitError is the per event memo size limit`, ) MemoSizeLimitWarn = NewNamespaceIntSetting( "limit.memoSize.warn", 2*1024, `MemoSizeLimitWarn is the per event memo size limit for warning`, ) NumPendingChildExecutionsLimitError = NewNamespaceIntSetting( "limit.numPendingChildExecutions.error", 2000, `NumPendingChildExecutionsLimitError is the maximum number of pending child workflows a workflow can have before StartChildWorkflowExecution commands will fail.`, ) NumPendingActivitiesLimitError = NewNamespaceIntSetting( "limit.numPendingActivities.error", 2000, `NumPendingActivitiesLimitError is the maximum number of pending activities a workflow can have before ScheduleActivityTask will fail.`, ) NumPendingSignalsLimitError = NewNamespaceIntSetting( "limit.numPendingSignals.error", 2000, `NumPendingSignalsLimitError is the maximum number of pending signals a workflow can have before SignalExternalWorkflowExecution commands from this workflow will fail.`, ) NumPendingCancelRequestsLimitError = NewNamespaceIntSetting( "limit.numPendingCancelRequests.error", 2000, `NumPendingCancelRequestsLimitError is the maximum number of pending requests to cancel other workflows a workflow can have before RequestCancelExternalWorkflowExecution commands will fail.`, ) HistorySizeLimitError = NewNamespaceIntSetting( "limit.historySize.error", 50*1024*1024, `HistorySizeLimitError is the per workflow execution history size limit`, ) HistorySizeLimitWarn = NewNamespaceIntSetting( "limit.historySize.warn", 10*1024*1024, `HistorySizeLimitWarn is the per workflow execution history size limit for warning`, ) HistorySizeSuggestContinueAsNew = NewNamespaceIntSetting( "limit.historySize.suggestContinueAsNew", 4*1024*1024, `HistorySizeSuggestContinueAsNew is the workflow execution history size limit to suggest continue-as-new (in workflow task started event)`, ) HistoryCountLimitError = NewNamespaceIntSetting( "limit.historyCount.error", 50*1024, `HistoryCountLimitError is the per workflow execution history event count limit`, ) HistoryCountLimitWarn = NewNamespaceIntSetting( "limit.historyCount.warn", 10*1024, `HistoryCountLimitWarn is the per workflow execution history event count limit for warning`, ) MutableStateActivityFailureSizeLimitError = NewNamespaceIntSetting( "limit.mutableStateActivityFailureSize.error", 4*1024, `MutableStateActivityFailureSizeLimitError is the per activity failure size limit for workflow mutable state. If exceeded, failure will be truncated before being stored in mutable state.`, ) MutableStateActivityFailureSizeLimitWarn = NewNamespaceIntSetting( "limit.mutableStateActivityFailureSize.warn", 2*1024, `MutableStateActivityFailureSizeLimitWarn is the per activity failure size warning limit for workflow mutable state`, ) MutableStateSizeLimitError = NewGlobalIntSetting( "limit.mutableStateSize.error", 8*1024*1024, `MutableStateSizeLimitError is the per workflow execution mutable state size limit in bytes`, ) MutableStateSizeLimitWarn = NewGlobalIntSetting( "limit.mutableStateSize.warn", 1*1024*1024, `MutableStateSizeLimitWarn is the per workflow execution mutable state size limit in bytes for warning`, ) HistoryCountSuggestContinueAsNew = NewNamespaceIntSetting( "limit.historyCount.suggestContinueAsNew", 4*1024, `HistoryCountSuggestContinueAsNew is the workflow execution history event count limit to suggest continue-as-new (in workflow task started event)`, ) HistoryMaxPageSize = NewNamespaceIntSetting( "limit.historyMaxPageSize", primitives.GetHistoryMaxPageSize, `HistoryMaxPageSize is default max size for GetWorkflowExecutionHistory in one page`, ) MaxIDLengthLimit = NewGlobalIntSetting( "limit.maxIDLength", 1000, `MaxIDLengthLimit is the length limit for various IDs, including: Namespace, TaskQueue, WorkflowID, ActivityID, TimerID, WorkflowType, ActivityType, SignalName, MarkerName, ErrorReason/FailureReason/CancelCause, Identity, RequestID`, ) WorkerBuildIdSizeLimit = NewGlobalIntSetting( "limit.workerBuildIdSize", 255, `WorkerBuildIdSizeLimit is the byte length limit for a worker build id as used in the rpc methods for updating the version sets for a task queue. Do not set this to a value higher than 255 for clusters using SQL based persistence due to predefined VARCHAR column width.`, ) VersionCompatibleSetLimitPerQueue = NewNamespaceIntSetting( "limit.versionCompatibleSetLimitPerQueue", 10, `VersionCompatibleSetLimitPerQueue is the max number of compatible sets allowed in the versioning data for a task queue. Update requests which would cause the versioning data to exceed this number will fail with a FailedPrecondition error.`, ) VersionBuildIdLimitPerQueue = NewNamespaceIntSetting( "limit.versionBuildIdLimitPerQueue", 100, `VersionBuildIdLimitPerQueue is the max number of build IDs allowed to be defined in the versioning data for a task queue. Update requests which would cause the versioning data to exceed this number will fail with a FailedPrecondition error.`, ) AssignmentRuleLimitPerQueue = NewNamespaceIntSetting( "limit.wv.AssignmentRuleLimitPerQueue", 100, `AssignmentRuleLimitPerQueue is the max number of Build ID assignment rules allowed to be defined in the versioning data for a task queue. Update requests which would cause the versioning data to exceed this number will fail with a FailedPrecondition error.`, ) RedirectRuleLimitPerQueue = NewNamespaceIntSetting( "limit.wv.RedirectRuleLimitPerQueue", 500, `RedirectRuleLimitPerQueue is the max number of compatible redirect rules allowed to be defined in the versioning data for a task queue. Update requests which would cause the versioning data to exceed this number will fail with a FailedPrecondition error.`, ) RedirectRuleMaxUpstreamBuildIDsPerQueue = NewNamespaceIntSetting( "limit.wv.RedirectRuleMaxUpstreamBuildIDsPerQueue", 50, `RedirectRuleMaxUpstreamBuildIDsPerQueue is the max number of compatible redirect rules allowed to be connected in one chain in the versioning data for a task queue. Update requests which would cause the versioning data to exceed this number will fail with a FailedPrecondition error.`, ) MatchingDeletedRuleRetentionTime = NewNamespaceDurationSetting( "matching.wv.DeletedRuleRetentionTime", 14*24*time.Hour, `MatchingDeletedRuleRetentionTime is the length of time that deleted Version Assignment Rules and Deleted Redirect Rules will be kept in the DB (with DeleteTimestamp). After this time, the tombstones are deleted at the next time update of versioning data for the task queue.`, ) ReachabilityBuildIdVisibilityGracePeriod = NewNamespaceDurationSetting( "matching.wv.ReachabilityBuildIdVisibilityGracePeriod", 3*time.Minute, `ReachabilityBuildIdVisibilityGracePeriod is the time period for which deleted versioning rules are still considered active to account for the delay in updating the build id field in visibility.`, ) ReachabilityTaskQueueScanLimit = NewGlobalIntSetting( "limit.reachabilityTaskQueueScan", 20, `ReachabilityTaskQueueScanLimit limits the number of task queues to scan when responding to a GetWorkerTaskReachability query.`, ) ReachabilityQueryBuildIdLimit = NewGlobalIntSetting( "limit.reachabilityQueryBuildIds", 5, `ReachabilityQueryBuildIdLimit limits the number of build ids that can be requested in a single call to the DescribeTaskQueue API with ReportTaskQueueReachability==true, or to the GetWorkerTaskReachability API.`, ) ReachabilityCacheOpenWFsTTL = NewGlobalDurationSetting( "matching.wv.reachabilityCacheOpenWFsTTL", time.Minute, `ReachabilityCacheOpenWFsTTL is the TTL for the reachability open workflows cache.`, ) ReachabilityCacheClosedWFsTTL = NewGlobalDurationSetting( "matching.wv.reachabilityCacheClosedWFsTTL", 10*time.Minute, `ReachabilityCacheClosedWFsTTL is the TTL for the reachability closed workflows cache.`, ) ReachabilityQuerySetDurationSinceDefault = NewGlobalDurationSetting( "frontend.reachabilityQuerySetDurationSinceDefault", 5*time.Minute, `ReachabilityQuerySetDurationSinceDefault is the minimum period since a version set was demoted from being the queue default before it is considered unreachable by new workflows. This setting allows some propagation delay of versioning data for the reachability queries, which may happen for the following reasons: 1. There are no workflows currently marked as open in the visibility store but a worker for the demoted version is currently processing a task. 2. There are delays in the visibility task processor (which is asynchronous). 3. There's propagation delay of the versioning data between matching nodes.`, ) TaskQueuesPerBuildIdLimit = NewNamespaceIntSetting( "limit.taskQueuesPerBuildId", 20, `TaskQueuesPerBuildIdLimit limits the number of task queue names that can be mapped to a single build id.`, ) NexusEndpointNameMaxLength = NewGlobalIntSetting( "limit.endpointNameMaxLength", 200, `NexusEndpointNameMaxLength is the maximum length of a Nexus endpoint name.`, ) NexusEndpointDescriptionMaxSize = NewGlobalIntSetting( "limit.endpointDescriptionMaxSize", 4*1024, `NexusEndpointDescriptionMaxSize is the maximum size of a Nexus endpoint description in bytes.`, ) NexusEndpointExternalURLMaxLength = NewGlobalIntSetting( "limit.endpointExternalURLMaxLength", 4*1024, `NexusEndpointExternalURLMaxLength is the maximum length of a Nexus endpoint external target URL.`, ) NexusEndpointListDefaultPageSize = NewGlobalIntSetting( "limit.endpointListDefaultPageSize", 100, `NexusEndpointListDefaultPageSize is the default page size for listing Nexus endpoints.`, ) NexusEndpointListMaxPageSize = NewGlobalIntSetting( "limit.endpointListMaxPageSize", 1000, `NexusEndpointListMaxPageSize is the maximum page size for listing Nexus endpoints.`, ) RemovableBuildIdDurationSinceDefault = NewGlobalDurationSetting( "worker.removableBuildIdDurationSinceDefault", time.Hour, `RemovableBuildIdDurationSinceDefault is the minimum duration since a build id was last default in its containing set for it to be considered for removal, used by the build id scavenger. This setting allows some propagation delay of versioning data, which may happen for the following reasons: 1. There are no workflows currently marked as open in the visibility store but a worker for the demoted version is currently processing a task. 2. There are delays in the visibility task processor (which is asynchronous). 3. There's propagation delay of the versioning data between matching nodes.`, ) BuildIdScavengerVisibilityRPS = NewGlobalFloatSetting( "worker.buildIdScavengerVisibilityRPS", 1.0, `BuildIdScavengerVisibilityRPS is the rate limit for visibility calls from the build id scavenger`, ) FrontendPersistenceMaxQPS = NewGlobalIntSetting( "frontend.persistenceMaxQPS", 2000, `FrontendPersistenceMaxQPS is the max qps frontend host can query DB`, ) FrontendPersistenceGlobalMaxQPS = NewGlobalIntSetting( "frontend.persistenceGlobalMaxQPS", 0, `FrontendPersistenceGlobalMaxQPS is the max qps frontend cluster can query DB`, ) FrontendPersistenceNamespaceMaxQPS = NewNamespaceIntSetting( "frontend.persistenceNamespaceMaxQPS", 0, `FrontendPersistenceNamespaceMaxQPS is the max qps each namespace on frontend host can query DB`, ) FrontendPersistenceGlobalNamespaceMaxQPS = NewNamespaceIntSetting( "frontend.persistenceGlobalNamespaceMaxQPS", 0, `FrontendPersistenceGlobalNamespaceMaxQPS is the max qps each namespace in frontend cluster can query DB`, ) FrontendPersistenceDynamicRateLimitingParams = NewGlobalMapSetting( "frontend.persistenceDynamicRateLimitingParams", DefaultDynamicRateLimitingParams, `FrontendPersistenceDynamicRateLimitingParams is a map that contains all adjustable dynamic rate limiting params see DefaultDynamicRateLimitingParams for available options and defaults`, ) FrontendVisibilityMaxPageSize = NewNamespaceIntSetting( "frontend.visibilityMaxPageSize", 1000, `FrontendVisibilityMaxPageSize is default max size for ListWorkflowExecutions in one page`, ) FrontendHistoryMaxPageSize = NewNamespaceIntSetting( "frontend.historyMaxPageSize", primitives.GetHistoryMaxPageSize, `FrontendHistoryMaxPageSize is default max size for GetWorkflowExecutionHistory in one page`, ) FrontendRPS = NewGlobalIntSetting( "frontend.rps", 2400, `FrontendRPS is workflow rate limit per second per-instance`, ) FrontendGlobalRPS = NewGlobalIntSetting( "frontend.globalRPS", 0, `FrontendGlobalRPS is workflow rate limit per second for the whole cluster`, ) FrontendNamespaceReplicationInducingAPIsRPS = NewGlobalIntSetting( "frontend.rps.namespaceReplicationInducingAPIs", 20, `FrontendNamespaceReplicationInducingAPIsRPS limits the per second request rate for namespace replication inducing APIs (e.g. RegisterNamespace, UpdateNamespace, UpdateWorkerBuildIdCompatibility). This config is EXPERIMENTAL and may be changed or removed in a later release.`, ) FrontendMaxNamespaceRPSPerInstance = NewNamespaceIntSetting( "frontend.namespaceRPS", 2400, `FrontendMaxNamespaceRPSPerInstance is workflow namespace rate limit per second`, ) FrontendMaxNamespaceBurstRatioPerInstance = NewNamespaceFloatSetting( "frontend.namespaceBurstRatio", 2, `FrontendMaxNamespaceBurstRatioPerInstance is workflow namespace burst limit as a ratio of namespace RPS. The RPS used here will be the effective RPS from global and per-instance limits. The value must be 1 or higher.`, ) FrontendMaxConcurrentLongRunningRequestsPerInstance = NewNamespaceIntSetting( "frontend.namespaceCount", 1200, `FrontendMaxConcurrentLongRunningRequestsPerInstance limits concurrent long-running requests per-instance, per-API. Example requests include long-poll requests, and 'Query' requests (which need to wait for WFTs). The limit is applied individually to each API method. This value is ignored if FrontendGlobalMaxConcurrentLongRunningRequests is greater than zero. Warning: setting this to zero will cause all long-running requests to fail. The name 'frontend.namespaceCount' is kept for backwards compatibility with existing deployments even though it is a bit of a misnomer. This does not limit the number of namespaces; it is a per-_namespace_ limit on the _count_ of long-running requests. Requests are only throttled when the limit is exceeded, not when it is only reached.`, ) FrontendGlobalMaxConcurrentLongRunningRequests = NewNamespaceIntSetting( "frontend.globalNamespaceCount", 0, `FrontendGlobalMaxConcurrentLongRunningRequests limits concurrent long-running requests across all frontend instances in the cluster, for a given namespace, per-API method. If this is set to 0 (the default), then it is ignored. The name 'frontend.globalNamespaceCount' is kept for consistency with the per-instance limit name, 'frontend.namespaceCount'.`, ) FrontendMaxNamespaceVisibilityRPSPerInstance = NewNamespaceIntSetting( "frontend.namespaceRPS.visibility", 10, `FrontendMaxNamespaceVisibilityRPSPerInstance is namespace rate limit per second for visibility APIs. This config is EXPERIMENTAL and may be changed or removed in a later release.`, ) FrontendMaxNamespaceNamespaceReplicationInducingAPIsRPSPerInstance = NewNamespaceIntSetting( "frontend.namespaceRPS.namespaceReplicationInducingAPIs", 1, `FrontendMaxNamespaceNamespaceReplicationInducingAPIsRPSPerInstance is a per host/per namespace RPS limit for namespace replication inducing APIs (e.g. RegisterNamespace, UpdateNamespace, UpdateWorkerBuildIdCompatibility). This config is EXPERIMENTAL and may be changed or removed in a later release.`, ) FrontendMaxNamespaceVisibilityBurstRatioPerInstance = NewNamespaceFloatSetting( "frontend.namespaceBurstRatio.visibility", 1, `FrontendMaxNamespaceVisibilityBurstRatioPerInstance is namespace burst limit for visibility APIs as a ratio of namespace visibility RPS. The RPS used here will be the effective RPS from global and per-instance limits. This config is EXPERIMENTAL and may be changed or removed in a later release. The value must be 1 or higher.`, ) FrontendMaxNamespaceNamespaceReplicationInducingAPIsBurstRatioPerInstance = NewNamespaceFloatSetting( "frontend.namespaceBurstRatio.namespaceReplicationInducingAPIs", 10, `FrontendMaxNamespaceNamespaceReplicationInducingAPIsBurstRatioPerInstance is a per host/per namespace burst limit for namespace replication inducing APIs (e.g. RegisterNamespace, UpdateNamespace, UpdateWorkerBuildIdCompatibility) as a ratio of namespace ReplicationInducingAPIs RPS. The RPS used here will be the effective RPS from global and per-instance limits. This config is EXPERIMENTAL and may be changed or removed in a later release. The value must be 1 or higher.`, ) FrontendGlobalNamespaceRPS = NewNamespaceIntSetting( "frontend.globalNamespaceRPS", 0, `FrontendGlobalNamespaceRPS is workflow namespace rate limit per second for the whole cluster. The limit is evenly distributed among available frontend service instances. If this is set, it overwrites per instance limit "frontend.namespaceRPS".`, ) InternalFrontendGlobalNamespaceRPS = NewNamespaceIntSetting( "internal-frontend.globalNamespaceRPS", 0, `InternalFrontendGlobalNamespaceRPS is workflow namespace rate limit per second across all internal-frontends.`, ) FrontendGlobalNamespaceVisibilityRPS = NewNamespaceIntSetting( "frontend.globalNamespaceRPS.visibility", 0, `FrontendGlobalNamespaceVisibilityRPS is workflow namespace rate limit per second for the whole cluster for visibility API. The limit is evenly distributed among available frontend service instances. If this is set, it overwrites per instance limit "frontend.namespaceRPS.visibility". This config is EXPERIMENTAL and may be changed or removed in a later release.`, ) FrontendGlobalNamespaceNamespaceReplicationInducingAPIsRPS = NewNamespaceIntSetting( "frontend.globalNamespaceRPS.namespaceReplicationInducingAPIs", 10, `FrontendGlobalNamespaceNamespaceReplicationInducingAPIsRPS is a cluster global, per namespace RPS limit for namespace replication inducing APIs (e.g. RegisterNamespace, UpdateNamespace, UpdateWorkerBuildIdCompatibility). The limit is evenly distributed among available frontend service instances. If this is set, it overwrites the per instance limit configured with "frontend.namespaceRPS.namespaceReplicationInducingAPIs". This config is EXPERIMENTAL and may be changed or removed in a later release.`, ) InternalFrontendGlobalNamespaceVisibilityRPS = NewNamespaceIntSetting( "internal-frontend.globalNamespaceRPS.visibility", 0, `InternalFrontendGlobalNamespaceVisibilityRPS is workflow namespace rate limit per second across all internal-frontends. This config is EXPERIMENTAL and may be changed or removed in a later release.`, ) FrontendThrottledLogRPS = NewGlobalIntSetting( "frontend.throttledLogRPS", 20, `FrontendThrottledLogRPS is the rate limit on number of log messages emitted per second for throttled logger`, ) FrontendShutdownDrainDuration = NewGlobalDurationSetting( "frontend.shutdownDrainDuration", 0*time.Second, `FrontendShutdownDrainDuration is the duration of traffic drain during shutdown`, ) FrontendShutdownFailHealthCheckDuration = NewGlobalDurationSetting( "frontend.shutdownFailHealthCheckDuration", 0*time.Second, `FrontendShutdownFailHealthCheckDuration is the duration of shutdown failure detection`, ) FrontendMaxBadBinaries = NewNamespaceIntSetting( "frontend.maxBadBinaries", 10, `FrontendMaxBadBinaries is the max number of bad binaries in namespace config`, ) SendRawWorkflowHistory = NewNamespaceBoolSetting( "frontend.sendRawWorkflowHistory", false, `SendRawWorkflowHistory is whether to enable raw history retrieving`, ) SearchAttributesNumberOfKeysLimit = NewNamespaceIntSetting( "frontend.searchAttributesNumberOfKeysLimit", 100, `SearchAttributesNumberOfKeysLimit is the limit of number of keys`, ) SearchAttributesSizeOfValueLimit = NewNamespaceIntSetting( "frontend.searchAttributesSizeOfValueLimit", 2*1024, `SearchAttributesSizeOfValueLimit is the size limit of each value`, ) SearchAttributesTotalSizeLimit = NewNamespaceIntSetting( "frontend.searchAttributesTotalSizeLimit", 40*1024, `SearchAttributesTotalSizeLimit is the size limit of the whole map`, ) VisibilityArchivalQueryMaxPageSize = NewGlobalIntSetting( "frontend.visibilityArchivalQueryMaxPageSize", 10000, `VisibilityArchivalQueryMaxPageSize is the maximum page size for a visibility archival query`, ) EnableServerVersionCheck = NewGlobalBoolSetting( "frontend.enableServerVersionCheck", os.Getenv("TEMPORAL_VERSION_CHECK_DISABLED") == "", `EnableServerVersionCheck is a flag that controls whether or not periodic version checking is enabled`, ) EnableTokenNamespaceEnforcement = NewGlobalBoolSetting( "frontend.enableTokenNamespaceEnforcement", true, `EnableTokenNamespaceEnforcement enables enforcement that namespace in completion token matches namespace of the request`, ) DisableListVisibilityByFilter = NewNamespaceBoolSetting( "frontend.disableListVisibilityByFilter", false, `DisableListVisibilityByFilter is config to disable list open/close workflow using filter`, ) KeepAliveMinTime = NewGlobalDurationSetting( "frontend.keepAliveMinTime", 10*time.Second, `KeepAliveMinTime is the minimum amount of time a client should wait before sending a keepalive ping.`, ) KeepAlivePermitWithoutStream = NewGlobalBoolSetting( "frontend.keepAlivePermitWithoutStream", true, `KeepAlivePermitWithoutStream If true, server allows keepalive pings even when there are no active streams(RPCs). If false, and client sends ping when there are no active streams, server will send GOAWAY and close the connection.`, ) KeepAliveMaxConnectionIdle = NewGlobalDurationSetting( "frontend.keepAliveMaxConnectionIdle", 2*time.Minute, `KeepAliveMaxConnectionIdle is a duration for the amount of time after which an idle connection would be closed by sending a GoAway. Idleness duration is defined since the most recent time the number of outstanding RPCs became zero or the connection establishment.`, ) KeepAliveMaxConnectionAge = NewGlobalDurationSetting( "frontend.keepAliveMaxConnectionAge", 5*time.Minute, `KeepAliveMaxConnectionAge is a duration for the maximum amount of time a connection may exist before it will be closed by sending a GoAway. A random jitter of +/-10% will be added to MaxConnectionAge to spread out connection storms.`, ) KeepAliveMaxConnectionAgeGrace = NewGlobalDurationSetting( "frontend.keepAliveMaxConnectionAgeGrace", 70*time.Second, `KeepAliveMaxConnectionAgeGrace is an additive period after MaxConnectionAge after which the connection will be forcibly closed.`, ) KeepAliveTime = NewGlobalDurationSetting( "frontend.keepAliveTime", 1*time.Minute, `KeepAliveTime After a duration of this time if the server doesn't see any activity it pings the client to see if the transport is still alive. If set below 1s, a minimum value of 1s will be used instead.`, ) KeepAliveTimeout = NewGlobalDurationSetting( "frontend.keepAliveTimeout", 10*time.Second, `KeepAliveTimeout After having pinged for keepalive check, the server waits for a duration of Timeout and if no activity is seen even after that the connection is closed.`, ) FrontendEnableSchedules = NewNamespaceBoolSetting( "frontend.enableSchedules", true, `FrontendEnableSchedules enables schedule-related RPCs in the frontend`, ) FrontendEnableNexusAPIs = NewGlobalBoolSetting( "frontend.enableNexusAPIs", false, `FrontendEnableNexusAPIs enables serving Nexus HTTP requests in the frontend.`, ) EnableNexusEndpointRegistryBackgroundRefresh = NewGlobalBoolSetting( "system.enableNexusEndpointRegistryBackgroundRefresh", false, `EnableNexusEndpointRegistryBackgroundRefresh toggles the background refresh job of the Nexus endpoint registry on frontend and history hosts.`, ) RefreshNexusEndpointsLongPollTimeout = NewGlobalDurationSetting( "system.refreshNexusEndpointsLongPollTimeout", 5*time.Minute, `RefreshNexusEndpointsLongPollTimeout is the maximum duration of background long poll requests to update Nexus endpoints.`, ) RefreshNexusEndpointsMinWait = NewGlobalDurationSetting( "system.refreshNexusEndpointsMinWait", 1*time.Second, `RefreshNexusEndpointsMinWait is the minimum wait time between background long poll requests to update Nexus endpoints.`, ) FrontendEnableCallbackAttachment = NewNamespaceBoolSetting( "frontend.enableCallbackAttachment", false, `FrontendEnableCallbackAttachment enables attaching callbacks to workflows.`, ) FrontendCallbackURLMaxLength = NewNamespaceIntSetting( "frontend.callbackURLMaxLength", 1000, `FrontendCallbackURLMaxLength is the maximum length of callback URL`, ) FrontendMaxCallbacksPerWorkflow = NewNamespaceIntSetting( "frontend.maxCallbacksPerWorkflow", 32, `FrontendMaxCallbacksPerWorkflow is the maximum number of callbacks that can be attached to a workflow.`, ) FrontendMaxConcurrentBatchOperationPerNamespace = NewNamespaceIntSetting( "frontend.MaxConcurrentBatchOperationPerNamespace", 1, `FrontendMaxConcurrentBatchOperationPerNamespace is the max concurrent batch operation job count per namespace`, ) FrontendMaxExecutionCountBatchOperationPerNamespace = NewNamespaceIntSetting( "frontend.MaxExecutionCountBatchOperationPerNamespace", 1000, `FrontendMaxExecutionCountBatchOperationPerNamespace is the max execution count batch operation supports per namespace`, ) FrontendEnableBatcher = NewNamespaceBoolSetting( "frontend.enableBatcher", true, `FrontendEnableBatcher enables batcher-related RPCs in the frontend`, ) FrontendAccessHistoryFraction = NewGlobalFloatSetting( "frontend.accessHistoryFraction", 1.0, `FrontendAccessHistoryFraction (0.0~1.0) is the fraction of history operations that are sent to the history service using the new RPCs. The remaining access history via the existing implementation. TODO: remove once migration completes.`, ) FrontendAdminDeleteAccessHistoryFraction = NewGlobalFloatSetting( "frontend.adminDeleteAccessHistoryFraction", 1.0, `FrontendAdminDeleteAccessHistoryFraction (0.0~1.0) is the fraction of admin DeleteWorkflowExecution requests that are sent to the history service using the new RPCs. The remaining access history via the existing implementation. TODO: remove once migration completes.`, ) FrontendEnableUpdateWorkflowExecution = NewNamespaceBoolSetting( "frontend.enableUpdateWorkflowExecution", false, `FrontendEnableUpdateWorkflowExecution enables UpdateWorkflowExecution API in the frontend. The UpdateWorkflowExecution API has gone through rigorous testing efforts but this config's default is 'false' until the feature gets more time in production.`, ) FrontendEnableExecuteMultiOperation = NewNamespaceBoolSetting( "frontend.enableExecuteMultiOperation", false, `FrontendEnableExecuteMultiOperation enables the ExecuteMultiOperation API in the frontend. The API is under active development.`, ) FrontendEnableUpdateWorkflowExecutionAsyncAccepted = NewNamespaceBoolSetting( "frontend.enableUpdateWorkflowExecutionAsyncAccepted", false, `FrontendEnableUpdateWorkflowExecutionAsyncAccepted enables the form of asynchronous workflow execution update that waits on the "Accepted" lifecycle stage. Default value is 'false'.`, ) FrontendEnableWorkerVersioningDataAPIs = NewNamespaceBoolSetting( "frontend.workerVersioningDataAPIs", false, `FrontendEnableWorkerVersioningDataAPIs enables worker versioning data read / write APIs.`, ) FrontendEnableWorkerVersioningWorkflowAPIs = NewNamespaceBoolSetting( "frontend.workerVersioningWorkflowAPIs", false, `FrontendEnableWorkerVersioningWorkflowAPIs enables worker versioning in workflow progress APIs.`, ) FrontendEnableWorkerVersioningRuleAPIs = NewNamespaceBoolSetting( "frontend.workerVersioningRuleAPIs", false, `FrontendEnableWorkerVersioningRuleAPIs enables worker versioning in workflow progress APIs.`, ) DeleteNamespaceDeleteActivityRPS = NewGlobalIntSetting( "frontend.deleteNamespaceDeleteActivityRPS", 100, `DeleteNamespaceDeleteActivityRPS is an RPS per every parallel delete executions activity. Total RPS is equal to DeleteNamespaceDeleteActivityRPS * DeleteNamespaceConcurrentDeleteExecutionsActivities. Default value is 100.`, ) DeleteNamespacePageSize = NewGlobalIntSetting( "frontend.deleteNamespaceDeletePageSize", 1000, `DeleteNamespacePageSize is a page size to read executions from visibility for delete executions activity. Default value is 1000.`, ) DeleteNamespacePagesPerExecution = NewGlobalIntSetting( "frontend.deleteNamespacePagesPerExecution", 256, `DeleteNamespacePagesPerExecution is a number of pages before returning ContinueAsNew from delete executions activity. Default value is 256.`, ) DeleteNamespaceConcurrentDeleteExecutionsActivities = NewGlobalIntSetting( "frontend.deleteNamespaceConcurrentDeleteExecutionsActivities", 4, `DeleteNamespaceConcurrentDeleteExecutionsActivities is a number of concurrent delete executions activities. Must be not greater than 256 and number of worker cores in the cluster. Default is 4.`, ) DeleteNamespaceNamespaceDeleteDelay = NewGlobalDurationSetting( "frontend.deleteNamespaceNamespaceDeleteDelay", 0*time.Hour, `DeleteNamespaceNamespaceDeleteDelay is a duration for how long namespace stays in database after all namespace resources (i.e. workflow executions) are deleted. Default is 0, means, namespace will be deleted immediately.`, ) MatchingRPS = NewGlobalIntSetting( "matching.rps", 1200, `MatchingRPS is request rate per second for each matching host`, ) MatchingPersistenceMaxQPS = NewGlobalIntSetting( "matching.persistenceMaxQPS", 3000, `MatchingPersistenceMaxQPS is the max qps matching host can query DB`, ) MatchingPersistenceGlobalMaxQPS = NewGlobalIntSetting( "matching.persistenceGlobalMaxQPS", 0, `MatchingPersistenceGlobalMaxQPS is the max qps matching cluster can query DB`, ) MatchingPersistenceNamespaceMaxQPS = NewNamespaceIntSetting( "matching.persistenceNamespaceMaxQPS", 0, `MatchingPersistenceNamespaceMaxQPS is the max qps each namespace on matching host can query DB`, ) MatchingPersistenceGlobalNamespaceMaxQPS = NewNamespaceIntSetting( "matching.persistenceGlobalNamespaceMaxQPS", 0, `MatchingPersistenceNamespaceMaxQPS is the max qps each namespace in matching cluster can query DB`, ) MatchingPersistenceDynamicRateLimitingParams = NewGlobalMapSetting( "matching.persistenceDynamicRateLimitingParams", DefaultDynamicRateLimitingParams, `MatchingPersistenceDynamicRateLimitingParams is a map that contains all adjustable dynamic rate limiting params see DefaultDynamicRateLimitingParams for available options and defaults`, ) MatchingMinTaskThrottlingBurstSize = NewTaskQueueIntSetting( "matching.minTaskThrottlingBurstSize", 1, `MatchingMinTaskThrottlingBurstSize is the minimum burst size for task queue throttling`, ) MatchingGetTasksBatchSize = NewTaskQueueIntSetting( "matching.getTasksBatchSize", 1000, `MatchingGetTasksBatchSize is the maximum batch size to fetch from the task buffer`, ) MatchingLongPollExpirationInterval = NewTaskQueueDurationSetting( "matching.longPollExpirationInterval", time.Minute, `MatchingLongPollExpirationInterval is the long poll expiration interval in the matching service`, ) MatchingSyncMatchWaitDuration = NewTaskQueueDurationSetting( "matching.syncMatchWaitDuration", 200*time.Millisecond, `MatchingSyncMatchWaitDuration is to wait time for sync match`, ) MatchingHistoryMaxPageSize = NewNamespaceIntSetting( "matching.historyMaxPageSize", primitives.GetHistoryMaxPageSize, `MatchingHistoryMaxPageSize is the maximum page size of history events returned on PollWorkflowTaskQueue requests`, ) MatchingLoadUserData = NewTaskQueueBoolSetting( "matching.loadUserData", true, `MatchingLoadUserData can be used to entirely disable loading user data from persistence (and the inter node RPCs that propoagate it). When turned off, features that rely on user data (e.g. worker versioning) will essentially be disabled. When disabled, matching will drop tasks for versioned workflows and activities to avoid breaking versioning semantics. Operator intervention will be required to reschedule the dropped tasks.`, ) MatchingUpdateAckInterval = NewTaskQueueDurationSettingWithConstrainedDefault( "matching.updateAckInterval", []TypedConstrainedValue[time.Duration]{ { Constraints: Constraints{ TaskQueueName: primitives.PerNSWorkerTaskQueue, }, Value: 5 * time.Minute, }, { Value: 1 * time.Minute, }, }, `MatchingUpdateAckInterval is the interval for update ack`, ) MatchingMaxTaskQueueIdleTime = NewTaskQueueDurationSetting( "matching.maxTaskQueueIdleTime", 5*time.Minute, `MatchingMaxTaskQueueIdleTime is the time after which an idle task queue will be unloaded. Note: this should be greater than matching.longPollExpirationInterval and matching.getUserDataLongPollTimeout.`, ) MatchingOutstandingTaskAppendsThreshold = NewTaskQueueIntSetting( "matching.outstandingTaskAppendsThreshold", 250, `MatchingOutstandingTaskAppendsThreshold is the threshold for outstanding task appends`, ) MatchingMaxTaskBatchSize = NewTaskQueueIntSetting( "matching.maxTaskBatchSize", 100, `MatchingMaxTaskBatchSize is max batch size for task writer`, ) MatchingMaxTaskDeleteBatchSize = NewTaskQueueIntSetting( "matching.maxTaskDeleteBatchSize", 100, `MatchingMaxTaskDeleteBatchSize is the max batch size for range deletion of tasks`, ) MatchingThrottledLogRPS = NewGlobalIntSetting( "matching.throttledLogRPS", 20, `MatchingThrottledLogRPS is the rate limit on number of log messages emitted per second for throttled logger`, ) MatchingNumTaskqueueWritePartitions = NewTaskQueueIntSettingWithConstrainedDefault( "matching.numTaskqueueWritePartitions", defaultNumTaskQueuePartitions, `MatchingNumTaskqueueWritePartitions is the number of write partitions for a task queue`, ) MatchingNumTaskqueueReadPartitions = NewTaskQueueIntSettingWithConstrainedDefault( "matching.numTaskqueueReadPartitions", defaultNumTaskQueuePartitions, `MatchingNumTaskqueueReadPartitions is the number of read partitions for a task queue`, ) MatchingForwarderMaxOutstandingPolls = NewTaskQueueIntSetting( "matching.forwarderMaxOutstandingPolls", 1, `MatchingForwarderMaxOutstandingPolls is the max number of inflight polls from the forwarder`, ) MatchingForwarderMaxOutstandingTasks = NewTaskQueueIntSetting( "matching.forwarderMaxOutstandingTasks", 1, `MatchingForwarderMaxOutstandingTasks is the max number of inflight addTask/queryTask from the forwarder`, ) MatchingForwarderMaxRatePerSecond = NewTaskQueueIntSetting( "matching.forwarderMaxRatePerSecond", 10, `MatchingForwarderMaxRatePerSecond is the max rate at which add/query can be forwarded`, ) MatchingForwarderMaxChildrenPerNode = NewTaskQueueIntSetting( "matching.forwarderMaxChildrenPerNode", 20, `MatchingForwarderMaxChildrenPerNode is the max number of children per node in the task queue partition tree`, ) MatchingAlignMembershipChange = NewGlobalDurationSetting( "matching.alignMembershipChange", 0*time.Second, `MatchingAlignMembershipChange is a duration to align matching's membership changes to. This can help reduce effects of task queue movement.`, ) MatchingShutdownDrainDuration = NewGlobalDurationSetting( "matching.shutdownDrainDuration", 0*time.Second, `MatchingShutdownDrainDuration is the duration of traffic drain during shutdown`, ) MatchingGetUserDataLongPollTimeout = NewGlobalDurationSetting( "matching.getUserDataLongPollTimeout", 5*time.Minute-10*time.Second, `MatchingGetUserDataLongPollTimeout is the max length of long polls for GetUserData calls between partitions.`, ) MatchingBacklogNegligibleAge = NewTaskQueueDurationSetting( "matching.backlogNegligibleAge", 24*365*10*time.Hour, `MatchingBacklogNegligibleAge if the head of backlog gets older than this we stop sync match and forwarding to ensure more equal dispatch order among partitions.`, ) MatchingMaxWaitForPollerBeforeFwd = NewTaskQueueDurationSetting( "matching.maxWaitForPollerBeforeFwd", 200*time.Millisecond, `MatchingMaxWaitForPollerBeforeFwd in presence of a non-negligible backlog, we resume forwarding tasks if the duration since last poll exceeds this threshold.`, ) "matching.queryPollerUnavailableWindow", 20*time.Second, `QueryPollerUnavailableWindow WF Queries are rejected after a while if no poller has been seen within the window`, ) MatchingListNexusEndpointsLongPollTimeout = NewGlobalDurationSetting( "matching.listNexusEndpointsLongPollTimeout", 5*time.Minute-10*time.Second, `MatchingListNexusEndpointsLongPollTimeout is the max length of long polls for ListNexusEndpoints calls.`, ) MatchingMembershipUnloadDelay = NewGlobalDurationSetting( "matching.membershipUnloadDelay", 500*time.Millisecond, `MatchingMembershipUnloadDelay is how long to wait to re-confirm loss of ownership before unloading a task queue. Set to zero to disable proactive unload.`, ) MatchingQueryWorkflowTaskTimeoutLogRate = NewTaskQueueFloatSetting( "matching.queryWorkflowTaskTimeoutLogRate", 0.0, `MatchingQueryWorkflowTaskTimeoutLogRate defines the sampling rate for logs when a query workflow task times out. Since these log lines can be noisy, we want to be able to turn on and sample selectively for each affected namespace.`, ) TestMatchingDisableSyncMatch = NewGlobalBoolSetting( "test.matching.disableSyncMatch", false, `TestMatchingDisableSyncMatch forces tasks to go through the db once`, ) TestMatchingLBForceReadPartition = NewGlobalIntSetting( "test.matching.lbForceReadPartition", -1, `TestMatchingLBForceReadPartition forces polls to go to a specific partition`, ) TestMatchingLBForceWritePartition = NewGlobalIntSetting( "test.matching.lbForceWritePartition", -1, `TestMatchingLBForceWritePartition forces adds to go to a specific partition`, ) EnableReplicationStream = NewGlobalBoolSetting( "history.enableReplicationStream", true, `EnableReplicationStream turn on replication stream`, ) EnableHistoryReplicationDLQV2 = NewGlobalBoolSetting( "history.enableHistoryReplicationDLQV2", false, `EnableHistoryReplicationDLQV2 switches to the DLQ v2 implementation for history replication. See details in [go.temporal.io/server/common/persistence.QueueV2]. This feature is currently in development. Do NOT use it in production.`, ) HistoryRPS = NewGlobalIntSetting( "history.rps", 3000, `HistoryRPS is request rate per second for each history host`, ) HistoryPersistenceMaxQPS = NewGlobalIntSetting( "history.persistenceMaxQPS", 9000, `HistoryPersistenceMaxQPS is the max qps history host can query DB`, ) HistoryPersistenceGlobalMaxQPS = NewGlobalIntSetting( "history.persistenceGlobalMaxQPS", 0, `HistoryPersistenceGlobalMaxQPS is the max qps history cluster can query DB`, ) HistoryPersistenceNamespaceMaxQPS = NewNamespaceIntSetting( "history.persistenceNamespaceMaxQPS", 0, `HistoryPersistenceNamespaceMaxQPS is the max qps each namespace on history host can query DB If value less or equal to 0, will fall back to HistoryPersistenceMaxQPS`, ) HistoryPersistenceGlobalNamespaceMaxQPS = NewNamespaceIntSetting( "history.persistenceGlobalNamespaceMaxQPS", 0, `HistoryPersistenceNamespaceMaxQPS is the max qps each namespace in history cluster can query DB`, ) HistoryPersistencePerShardNamespaceMaxQPS = NewNamespaceIntSetting( "history.persistencePerShardNamespaceMaxQPS", 0, `HistoryPersistencePerShardNamespaceMaxQPS is the max qps each namespace on a shard can query DB`, ) HistoryPersistenceDynamicRateLimitingParams = NewGlobalMapSetting( "history.persistenceDynamicRateLimitingParams", DefaultDynamicRateLimitingParams, `HistoryPersistenceDynamicRateLimitingParams is a map that contains all adjustable dynamic rate limiting params see DefaultDynamicRateLimitingParams for available options and defaults`, ) HistoryLongPollExpirationInterval = NewNamespaceDurationSetting( "history.longPollExpirationInterval", time.Second*20, `HistoryLongPollExpirationInterval is the long poll expiration interval in the history service`, ) HistoryCacheSizeBasedLimit = NewGlobalBoolSetting( "history.cacheSizeBasedLimit", false, `HistoryCacheSizeBasedLimit if true, size of the history cache will be limited by HistoryCacheMaxSizeBytes and HistoryCacheHostLevelMaxSizeBytes. Otherwise, entry count in the history cache will be limited by HistoryCacheMaxSize and HistoryCacheHostLevelMaxSize.`, ) HistoryCacheInitialSize = NewGlobalIntSetting( "history.cacheInitialSize", 128, `HistoryCacheInitialSize is initial size of history cache`, ) HistoryCacheMaxSize = NewGlobalIntSetting( "history.cacheMaxSize", 512, `HistoryCacheMaxSize is the maximum number of entries in the shard level history cache`, ) HistoryCacheMaxSizeBytes = NewGlobalIntSetting( "history.cacheMaxSizeBytes", 512*4*1024, `HistoryCacheMaxSizeBytes is the maximum size of the shard level history cache in bytes. This is only used if HistoryCacheSizeBasedLimit is set to true.`, ) HistoryCacheTTL = NewGlobalDurationSetting( "history.cacheTTL", time.Hour, `HistoryCacheTTL is TTL of history cache`, ) HistoryCacheNonUserContextLockTimeout = NewGlobalDurationSetting( "history.cacheNonUserContextLockTimeout", 500*time.Millisecond, `HistoryCacheNonUserContextLockTimeout controls how long non-user call (callerType != API or Operator) will wait on workflow lock acquisition. Requires service restart to take effect.`, ) EnableHostHistoryCache = NewGlobalBoolSetting( "history.enableHostHistoryCache", false, `EnableHostHistoryCache controls if the history cache is host level`, ) HistoryCacheHostLevelMaxSize = NewGlobalIntSetting( "history.hostLevelCacheMaxSize", 256000, `HistoryCacheHostLevelMaxSize is the maximum number of entries in the host level history cache`, ) HistoryCacheHostLevelMaxSizeBytes = NewGlobalIntSetting( "history.hostLevelCacheMaxSizeBytes", 256000*4*1024, `HistoryCacheHostLevelMaxSizeBytes is the maximum size of the host level history cache. This is only used if HistoryCacheSizeBasedLimit is set to true.`, ) EnableMutableStateTransitionHistory = NewGlobalBoolSetting( "history.enableMutableStateTransitionHistory", false, `EnableMutableStateTransitionHistory controls whether to record state transition history in mutable state records. The feature is used in the hierarchical state machine framework and is considered unstable as the structure may change with the pending replication design.`, ) EnableWorkflowExecutionTimeoutTimer = NewGlobalBoolSetting( "history.enableWorkflowExecutionTimeoutTimer", false, `EnableWorkflowExecutionTimeoutTimer controls whether to enable the new logic for generating a workflow execution timeout timer when execution timeout is specified when starting a workflow. For backward compatibility, this feature is disabled by default and should only be enabled after server version containing this flag is deployed to all history service nodes in the cluster.`, ) HistoryStartupMembershipJoinDelay = NewGlobalDurationSetting( "history.startupMembershipJoinDelay", 0*time.Second, `HistoryStartupMembershipJoinDelay is the duration a history instance waits before joining membership after starting.`, ) HistoryShutdownDrainDuration = NewGlobalDurationSetting( "history.shutdownDrainDuration", 0*time.Second, `HistoryShutdownDrainDuration is the duration of traffic drain during shutdown`, ) XDCCacheMaxSizeBytes = NewGlobalIntSetting( "history.xdcCacheMaxSizeBytes", 8*1024*1024, `XDCCacheMaxSizeBytes is max size of events cache in bytes`, ) EventsCacheMaxSizeBytes = NewGlobalIntSetting( "history.eventsCacheMaxSizeBytes", 512*1024, `EventsCacheMaxSizeBytes is max size of the shard level events cache in bytes`, ) EventsHostLevelCacheMaxSizeBytes = NewGlobalIntSetting( "history.eventsHostLevelCacheMaxSizeBytes", 512*512*1024, `EventsHostLevelCacheMaxSizeBytes is max size of the host level events cache in bytes`, ) EventsCacheTTL = NewGlobalDurationSetting( "history.eventsCacheTTL", time.Hour, `EventsCacheTTL is TTL of events cache`, ) EnableHostLevelEventsCache = NewGlobalBoolSetting( "history.enableHostLevelEventsCache", false, `EnableHostLevelEventsCache controls if the events cache is host level`, ) AcquireShardInterval = NewGlobalDurationSetting( "history.acquireShardInterval", time.Minute, `AcquireShardInterval is interval that timer used to acquire shard`, ) AcquireShardConcurrency = NewGlobalIntSetting( "history.acquireShardConcurrency", 10, `AcquireShardConcurrency is number of goroutines that can be used to acquire shards in the shard controller.`, ) ShardLingerOwnershipCheckQPS = NewGlobalIntSetting( "history.shardLingerOwnershipCheckQPS", 4, `ShardLingerOwnershipCheckQPS is the frequency to perform shard ownership checks while a shard is lingering.`, ) ShardLingerTimeLimit = NewGlobalDurationSetting( "history.shardLingerTimeLimit", 0, `ShardLingerTimeLimit configures if and for how long the shard controller will temporarily delay closing shards after a membership update, awaiting a shard ownership lost error from persistence. Not recommended with persistence layers that are missing AssertShardOwnership support. If set to zero, shards will not delay closing.`, ) ShardOwnershipAssertionEnabled = NewGlobalBoolSetting( "history.shardOwnershipAssertionEnabled", false, `ShardOwnershipAssertionEnabled configures if the shard ownership is asserted for API requests when a NotFound or NamespaceNotFound error is returned from persistence. NOTE: Shard ownership assertion is not implemented by any persistence implementation in this codebase, because assertion is not needed for persistence implementation that guarantees read after write consistency. As a result, even if this config is enabled, it's a no-op.`, ) HistoryClientOwnershipCachingEnabled = NewGlobalBoolSetting( "history.clientOwnershipCachingEnabled", false, `HistoryClientOwnershipCachingEnabled configures if history clients try to cache shard ownership information, instead of checking membership for each request. Only inspected when an instance first creates a history client, so changes to this require a restart to take effect.`, ) ShardIOConcurrency = NewGlobalIntSetting( "history.shardIOConcurrency", 1, `ShardIOConcurrency controls the concurrency of persistence operations in shard context`, ) StandbyClusterDelay = NewGlobalDurationSetting( "history.standbyClusterDelay", 5*time.Minute, `StandbyClusterDelay is the artificial delay added to standby cluster's view of active cluster's time`, ) StandbyTaskMissingEventsResendDelay = NewTaskTypeDurationSetting( "history.standbyTaskMissingEventsResendDelay", 10*time.Minute, `StandbyTaskMissingEventsResendDelay is the amount of time standby cluster's will wait (if events are missing) before calling remote for missing events`, ) StandbyTaskMissingEventsDiscardDelay = NewTaskTypeDurationSetting( "history.standbyTaskMissingEventsDiscardDelay", 15*time.Minute, `StandbyTaskMissingEventsDiscardDelay is the amount of time standby cluster's will wait (if events are missing) before discarding the task`, ) QueuePendingTaskCriticalCount = NewGlobalIntSetting( "history.queuePendingTaskCriticalCount", 9000, `QueuePendingTaskCriticalCount is the max number of pending task in one queue before triggering queue slice splitting and unloading`, ) QueueReaderStuckCriticalAttempts = NewGlobalIntSetting( "history.queueReaderStuckCriticalAttempts", 3, `QueueReaderStuckCriticalAttempts is the max number of task loading attempts for a certain task range before that task range is split into a separate slice to unblock loading for later range. currently only work for scheduled queues and the task range is 1s.`, ) QueueCriticalSlicesCount = NewGlobalIntSetting( "history.queueCriticalSlicesCount", 50, `QueueCriticalSlicesCount is the max number of slices in one queue before force compacting slices`, ) QueuePendingTaskMaxCount = NewGlobalIntSetting( "history.queuePendingTasksMaxCount", 10000, `QueuePendingTaskMaxCount is the max number of task pending tasks in one queue before stop loading new tasks into memory. While QueuePendingTaskCriticalCount won't stop task loading for the entire queue but only trigger a queue action to unload tasks. Ideally this max count limit should not be hit and task unloading should happen once critical count is exceeded. But since queue action is async, we need this hard limit.`, ) ContinueAsNewMinInterval = NewNamespaceDurationSetting( "history.continueAsNewMinInterval", time.Second, `ContinueAsNewMinInterval is the minimal interval between continue_as_new executions. This is needed to prevent tight loop continue_as_new spin. Default is 1s.`, ) TaskSchedulerEnableRateLimiter = NewGlobalBoolSetting( "history.taskSchedulerEnableRateLimiter", false, `TaskSchedulerEnableRateLimiter indicates if task scheduler rate limiter should be enabled`, ) TaskSchedulerEnableRateLimiterShadowMode = NewGlobalBoolSetting( "history.taskSchedulerEnableRateLimiterShadowMode", true, `TaskSchedulerEnableRateLimiterShadowMode indicates if task scheduler rate limiter should run in shadow mode i.e. through rate limiter and emit metrics but do not actually block/throttle task scheduling`, ) TaskSchedulerRateLimiterStartupDelay = NewGlobalDurationSetting( "history.taskSchedulerRateLimiterStartupDelay", 5*time.Second, `TaskSchedulerRateLimiterStartupDelay is the duration to wait after startup before enforcing task scheduler rate limiting`, ) TaskSchedulerGlobalMaxQPS = NewGlobalIntSetting( "history.taskSchedulerGlobalMaxQPS", 0, `TaskSchedulerGlobalMaxQPS is the max qps all task schedulers in the cluster can schedule tasks If value less or equal to 0, will fall back to TaskSchedulerMaxQPS`, ) TaskSchedulerMaxQPS = NewGlobalIntSetting( "history.taskSchedulerMaxQPS", 0, `TaskSchedulerMaxQPS is the max qps task schedulers on a host can schedule tasks If value less or equal to 0, will fall back to HistoryPersistenceMaxQPS`, ) TaskSchedulerGlobalNamespaceMaxQPS = NewNamespaceIntSetting( "history.taskSchedulerGlobalNamespaceMaxQPS", 0, `TaskSchedulerGlobalNamespaceMaxQPS is the max qps all task schedulers in the cluster can schedule tasks for a certain namespace If value less or equal to 0, will fall back to TaskSchedulerNamespaceMaxQPS`, ) TaskSchedulerNamespaceMaxQPS = NewNamespaceIntSetting( "history.taskSchedulerNamespaceMaxQPS", 0, `TaskSchedulerNamespaceMaxQPS is the max qps task schedulers on a host can schedule tasks for a certain namespace If value less or equal to 0, will fall back to HistoryPersistenceNamespaceMaxQPS`, ) TimerTaskBatchSize = NewGlobalIntSetting( "history.timerTaskBatchSize", 100, `TimerTaskBatchSize is batch size for timer processor to process tasks`, ) TimerProcessorSchedulerWorkerCount = NewGlobalIntSetting( "history.timerProcessorSchedulerWorkerCount", 512, `TimerProcessorSchedulerWorkerCount is the number of workers in the host level task scheduler for timer processor`, ) TimerProcessorSchedulerActiveRoundRobinWeights = NewNamespaceMapSetting( "history.timerProcessorSchedulerActiveRoundRobinWeights", nil, `TimerProcessorSchedulerActiveRoundRobinWeights is the priority round robin weights used by timer task scheduler for active namespaces`, ) TimerProcessorSchedulerStandbyRoundRobinWeights = NewNamespaceMapSetting( "history.timerProcessorSchedulerStandbyRoundRobinWeights", nil, `TimerProcessorSchedulerStandbyRoundRobinWeights is the priority round robin weights used by timer task scheduler for standby namespaces`, ) TimerProcessorUpdateAckInterval = NewGlobalDurationSetting( "history.timerProcessorUpdateAckInterval", 30*time.Second, `TimerProcessorUpdateAckInterval is update interval for timer processor`, ) TimerProcessorUpdateAckIntervalJitterCoefficient = NewGlobalFloatSetting( "history.timerProcessorUpdateAckIntervalJitterCoefficient", 0.15, `TimerProcessorUpdateAckIntervalJitterCoefficient is the update interval jitter coefficient`, ) TimerProcessorMaxPollRPS = NewGlobalIntSetting( "history.timerProcessorMaxPollRPS", 20, `TimerProcessorMaxPollRPS is max poll rate per second for timer processor`, ) TimerProcessorMaxPollHostRPS = NewGlobalIntSetting( "history.timerProcessorMaxPollHostRPS", 0, `TimerProcessorMaxPollHostRPS is max poll rate per second for all timer processor on a host`, ) TimerProcessorMaxPollInterval = NewGlobalDurationSetting( "history.timerProcessorMaxPollInterval", 5*time.Minute, `TimerProcessorMaxPollInterval is max poll interval for timer processor`, ) TimerProcessorMaxPollIntervalJitterCoefficient = NewGlobalFloatSetting( "history.timerProcessorMaxPollIntervalJitterCoefficient", 0.15, `TimerProcessorMaxPollIntervalJitterCoefficient is the max poll interval jitter coefficient`, ) TimerProcessorPollBackoffInterval = NewGlobalDurationSetting( "history.timerProcessorPollBackoffInterval", 5*time.Second, `TimerProcessorPollBackoffInterval is the poll backoff interval if task redispatcher's size exceeds limit for timer processor`, ) TimerProcessorMaxTimeShift = NewGlobalDurationSetting( "history.timerProcessorMaxTimeShift", 1*time.Second, `TimerProcessorMaxTimeShift is the max shift timer processor can have`, ) TimerQueueMaxReaderCount = NewGlobalIntSetting( "history.timerQueueMaxReaderCount", 2, `TimerQueueMaxReaderCount is the max number of readers in one multi-cursor timer queue`, ) RetentionTimerJitterDuration = NewGlobalDurationSetting( "history.retentionTimerJitterDuration", 30*time.Minute, `RetentionTimerJitterDuration is a time duration jitter to distribute timer from T0 to T0 + jitter duration`, ) MemoryTimerProcessorSchedulerWorkerCount = NewGlobalIntSetting( "history.memoryTimerProcessorSchedulerWorkerCount", 64, `MemoryTimerProcessorSchedulerWorkerCount is the number of workers in the task scheduler for in memory timer processor.`, ) TransferTaskBatchSize = NewGlobalIntSetting( "history.transferTaskBatchSize", 100, `TransferTaskBatchSize is batch size for transferQueueProcessor`, ) TransferProcessorMaxPollRPS = NewGlobalIntSetting( "history.transferProcessorMaxPollRPS", 20, `TransferProcessorMaxPollRPS is max poll rate per second for transferQueueProcessor`, ) TransferProcessorMaxPollHostRPS = NewGlobalIntSetting( "history.transferProcessorMaxPollHostRPS", 0, `TransferProcessorMaxPollHostRPS is max poll rate per second for all transferQueueProcessor on a host`, ) TransferProcessorSchedulerWorkerCount = NewGlobalIntSetting( "history.transferProcessorSchedulerWorkerCount", 512, `TransferProcessorSchedulerWorkerCount is the number of workers in the host level task scheduler for transferQueueProcessor`, ) TransferProcessorSchedulerActiveRoundRobinWeights = NewNamespaceMapSetting( "history.transferProcessorSchedulerActiveRoundRobinWeights", nil, `TransferProcessorSchedulerActiveRoundRobinWeights is the priority round robin weights used by transfer task scheduler for active namespaces`, ) TransferProcessorSchedulerStandbyRoundRobinWeights = NewNamespaceMapSetting( "history.transferProcessorSchedulerStandbyRoundRobinWeights", nil, `TransferProcessorSchedulerStandbyRoundRobinWeights is the priority round robin weights used by transfer task scheduler for standby namespaces`, ) TransferProcessorMaxPollInterval = NewGlobalDurationSetting( "history.transferProcessorMaxPollInterval", 1*time.Minute, `TransferProcessorMaxPollInterval max poll interval for transferQueueProcessor`, ) TransferProcessorMaxPollIntervalJitterCoefficient = NewGlobalFloatSetting( "history.transferProcessorMaxPollIntervalJitterCoefficient", 0.15, `TransferProcessorMaxPollIntervalJitterCoefficient is the max poll interval jitter coefficient`, ) TransferProcessorUpdateAckInterval = NewGlobalDurationSetting( "history.transferProcessorUpdateAckInterval", 30*time.Second, `TransferProcessorUpdateAckInterval is update interval for transferQueueProcessor`, ) TransferProcessorUpdateAckIntervalJitterCoefficient = NewGlobalFloatSetting( "history.transferProcessorUpdateAckIntervalJitterCoefficient", 0.15, `TransferProcessorUpdateAckIntervalJitterCoefficient is the update interval jitter coefficient`, ) TransferProcessorPollBackoffInterval = NewGlobalDurationSetting( "history.transferProcessorPollBackoffInterval", 5*time.Second, `TransferProcessorPollBackoffInterval is the poll backoff interval if task redispatcher's size exceeds limit for transferQueueProcessor`, ) TransferProcessorEnsureCloseBeforeDelete = NewGlobalBoolSetting( "history.transferProcessorEnsureCloseBeforeDelete", true, `TransferProcessorEnsureCloseBeforeDelete means we ensure the execution is closed before we delete it`, ) TransferQueueMaxReaderCount = NewGlobalIntSetting( "history.transferQueueMaxReaderCount", 2, `TransferQueueMaxReaderCount is the max number of readers in one multi-cursor transfer queue`, ) OutboundProcessorEnabled = NewGlobalBoolSetting( "history.outboundProcessorEnabled", false, `OutboundProcessorEnabled enables starting the outbound queue processor.`, ) OutboundTaskBatchSize = NewGlobalIntSetting( "history.outboundTaskBatchSize", 100, `OutboundTaskBatchSize is batch size for outboundQueueFactory`, ) OutboundProcessorMaxPollRPS = NewGlobalIntSetting( "history.outboundProcessorMaxPollRPS", 20, `OutboundProcessorMaxPollRPS is max poll rate per second for outboundQueueFactory`, ) OutboundProcessorMaxPollHostRPS = NewGlobalIntSetting( "history.outboundProcessorMaxPollHostRPS", 0, `OutboundProcessorMaxPollHostRPS is max poll rate per second for all outboundQueueFactory on a host`, ) OutboundProcessorMaxPollInterval = NewGlobalDurationSetting( "history.outboundProcessorMaxPollInterval", 1*time.Minute, `OutboundProcessorMaxPollInterval max poll interval for outboundQueueFactory`, ) OutboundProcessorMaxPollIntervalJitterCoefficient = NewGlobalFloatSetting( "history.outboundProcessorMaxPollIntervalJitterCoefficient", 0.15, `OutboundProcessorMaxPollIntervalJitterCoefficient is the max poll interval jitter coefficient`, ) OutboundProcessorUpdateAckInterval = NewGlobalDurationSetting( "history.outboundProcessorUpdateAckInterval", 30*time.Second, `OutboundProcessorUpdateAckInterval is update interval for outboundQueueFactory`, ) OutboundProcessorUpdateAckIntervalJitterCoefficient = NewGlobalFloatSetting( "history.outboundProcessorUpdateAckIntervalJitterCoefficient", 0.15, `OutboundProcessorUpdateAckIntervalJitterCoefficient is the update interval jitter coefficient`, ) OutboundProcessorPollBackoffInterval = NewGlobalDurationSetting( "history.outboundProcessorPollBackoffInterval", 5*time.Second, `OutboundProcessorPollBackoffInterval is the poll backoff interval if task redispatcher's size exceeds limit for outboundQueueFactory`, ) OutboundQueueMaxReaderCount = NewGlobalIntSetting( "history.outboundQueueMaxReaderCount", 4, `OutboundQueueMaxReaderCount is the max number of readers in one multi-cursor outbound queue`, ) OutboundQueueGroupLimiterBufferSize = NewDestinationIntSetting( "history.outboundQueue.groupLimiter.bufferSize", 100, `OutboundQueueGroupLimiterBufferSize is the max buffer size of the group limiter`, ) OutboundQueueGroupLimiterConcurrency = NewDestinationIntSetting( "history.outboundQueue.groupLimiter.concurrency", 100, `OutboundQueueGroupLimiterConcurrency is the concurrency of the group limiter`, ) OutboundQueueHostSchedulerMaxTaskRPS = NewDestinationFloatSetting( "history.outboundQueue.hostScheduler.maxTaskRPS", 100.0, `OutboundQueueHostSchedulerMaxTaskRPS is the host scheduler max task RPS`, ) OutboundQueueCircuitBreakerSettings = NewDestinationMapSetting( "history.outboundQueue.circuitBreakerSettings", map[string]any{}, `OutboundQueueCircuitBreakerSettings are circuit breaker settings. Accepted config keys (see gobreaker reference for more details): - maxRequests: maximum number of requests allowed to pass through when it is half-open (default 1). - interval (seconds): cyclic period in closed state to clear the internal counts; if interval is 0, then it never clears the internal counts (default 0). - timeout (seconds): period of open state before changing to half-open state (default 60).`, ) VisibilityTaskBatchSize = NewGlobalIntSetting( "history.visibilityTaskBatchSize", 100, `VisibilityTaskBatchSize is batch size for visibilityQueueProcessor`, ) VisibilityProcessorMaxPollRPS = NewGlobalIntSetting( "history.visibilityProcessorMaxPollRPS", 20, `VisibilityProcessorMaxPollRPS is max poll rate per second for visibilityQueueProcessor`, ) VisibilityProcessorMaxPollHostRPS = NewGlobalIntSetting( "history.visibilityProcessorMaxPollHostRPS", 0, `VisibilityProcessorMaxPollHostRPS is max poll rate per second for all visibilityQueueProcessor on a host`, ) VisibilityProcessorSchedulerWorkerCount = NewGlobalIntSetting( "history.visibilityProcessorSchedulerWorkerCount", 512, `VisibilityProcessorSchedulerWorkerCount is the number of workers in the host level task scheduler for visibilityQueueProcessor`, ) VisibilityProcessorSchedulerActiveRoundRobinWeights = NewNamespaceMapSetting( "history.visibilityProcessorSchedulerActiveRoundRobinWeights", nil, `VisibilityProcessorSchedulerActiveRoundRobinWeights is the priority round robin weights by visibility task scheduler for active namespaces`, ) VisibilityProcessorSchedulerStandbyRoundRobinWeights = NewNamespaceMapSetting( "history.visibilityProcessorSchedulerStandbyRoundRobinWeights", nil, `VisibilityProcessorSchedulerStandbyRoundRobinWeights is the priority round robin weights by visibility task scheduler for standby namespaces`, ) VisibilityProcessorMaxPollInterval = NewGlobalDurationSetting( "history.visibilityProcessorMaxPollInterval", 1*time.Minute, `VisibilityProcessorMaxPollInterval max poll interval for visibilityQueueProcessor`, ) VisibilityProcessorMaxPollIntervalJitterCoefficient = NewGlobalFloatSetting( "history.visibilityProcessorMaxPollIntervalJitterCoefficient", 0.15, `VisibilityProcessorMaxPollIntervalJitterCoefficient is the max poll interval jitter coefficient`, ) VisibilityProcessorUpdateAckInterval = NewGlobalDurationSetting( "history.visibilityProcessorUpdateAckInterval", 30*time.Second, `VisibilityProcessorUpdateAckInterval is update interval for visibilityQueueProcessor`, ) VisibilityProcessorUpdateAckIntervalJitterCoefficient = NewGlobalFloatSetting( "history.visibilityProcessorUpdateAckIntervalJitterCoefficient", 0.15, `VisibilityProcessorUpdateAckIntervalJitterCoefficient is the update interval jitter coefficient`, ) VisibilityProcessorPollBackoffInterval = NewGlobalDurationSetting( "history.visibilityProcessorPollBackoffInterval", 5*time.Second, `VisibilityProcessorPollBackoffInterval is the poll backoff interval if task redispatcher's size exceeds limit for visibilityQueueProcessor`, ) VisibilityProcessorEnsureCloseBeforeDelete = NewGlobalBoolSetting( "history.visibilityProcessorEnsureCloseBeforeDelete", false, `VisibilityProcessorEnsureCloseBeforeDelete means we ensure the visibility of an execution is closed before we delete its visibility records`, ) VisibilityProcessorEnableCloseWorkflowCleanup = NewNamespaceBoolSetting( "history.visibilityProcessorEnableCloseWorkflowCleanup", false, `VisibilityProcessorEnableCloseWorkflowCleanup to clean up the mutable state after visibility close task has been processed. Must use Elasticsearch as visibility store, otherwise workflow data (eg: search attributes) will be lost after workflow is closed.`, ) VisibilityQueueMaxReaderCount = NewGlobalIntSetting( "history.visibilityQueueMaxReaderCount", 2, `VisibilityQueueMaxReaderCount is the max number of readers in one multi-cursor visibility queue`, ) ArchivalTaskBatchSize = NewGlobalIntSetting( "history.archivalTaskBatchSize", 100, `ArchivalTaskBatchSize is batch size for archivalQueueProcessor`, ) ArchivalProcessorMaxPollRPS = NewGlobalIntSetting( "history.archivalProcessorMaxPollRPS", 20, `ArchivalProcessorMaxPollRPS is max poll rate per second for archivalQueueProcessor`, ) ArchivalProcessorMaxPollHostRPS = NewGlobalIntSetting( "history.archivalProcessorMaxPollHostRPS", 0, `ArchivalProcessorMaxPollHostRPS is max poll rate per second for all archivalQueueProcessor on a host`, ) ArchivalProcessorSchedulerWorkerCount = NewGlobalIntSetting( "history.archivalProcessorSchedulerWorkerCount", 512, `ArchivalProcessorSchedulerWorkerCount is the number of workers in the host level task scheduler for archivalQueueProcessor`, ) ArchivalProcessorMaxPollInterval = NewGlobalDurationSetting( "history.archivalProcessorMaxPollInterval", 5*time.Minute, `ArchivalProcessorMaxPollInterval max poll interval for archivalQueueProcessor`, ) ArchivalProcessorMaxPollIntervalJitterCoefficient = NewGlobalFloatSetting( "history.archivalProcessorMaxPollIntervalJitterCoefficient", 0.15, `ArchivalProcessorMaxPollIntervalJitterCoefficient is the max poll interval jitter coefficient`, ) ArchivalProcessorUpdateAckInterval = NewGlobalDurationSetting( "history.archivalProcessorUpdateAckInterval", 30*time.Second, `ArchivalProcessorUpdateAckInterval is update interval for archivalQueueProcessor`, ) ArchivalProcessorUpdateAckIntervalJitterCoefficient = NewGlobalFloatSetting( "history.archivalProcessorUpdateAckIntervalJitterCoefficient", 0.15, `ArchivalProcessorUpdateAckIntervalJitterCoefficient is the update interval jitter coefficient`, ) ArchivalProcessorPollBackoffInterval = NewGlobalDurationSetting( "history.archivalProcessorPollBackoffInterval", 5*time.Second, `ArchivalProcessorPollBackoffInterval is the poll backoff interval if task redispatcher's size exceeds limit for archivalQueueProcessor`, ) ArchivalProcessorArchiveDelay = NewGlobalDurationSetting( "history.archivalProcessorArchiveDelay", 5*time.Minute, `ArchivalProcessorArchiveDelay is the delay before archivalQueueProcessor starts to process archival tasks`, ) ArchivalBackendMaxRPS = NewGlobalFloatSetting( "history.archivalBackendMaxRPS", 10000.0, `ArchivalBackendMaxRPS is the maximum rate of requests per second to the archival backend`, ) ArchivalQueueMaxReaderCount = NewGlobalIntSetting( "history.archivalQueueMaxReaderCount", 2, `ArchivalQueueMaxReaderCount is the max number of readers in one multi-cursor archival queue`, ) WorkflowExecutionMaxInFlightUpdates = NewNamespaceIntSetting( "history.maxInFlightUpdates", 10, `WorkflowExecutionMaxInFlightUpdates is the max number of updates that can be in-flight (admitted but not yet completed) for any given workflow execution.`, ) WorkflowExecutionMaxTotalUpdates = NewNamespaceIntSetting( "history.maxTotalUpdates", 2000, `WorkflowExecutionMaxTotalUpdates is the max number of updates that any given workflow execution can receive.`, ) ReplicatorTaskBatchSize = NewGlobalIntSetting( "history.replicatorTaskBatchSize", 25, `ReplicatorTaskBatchSize is batch size for ReplicatorProcessor`, ) ReplicatorMaxSkipTaskCount = NewGlobalIntSetting( "history.replicatorMaxSkipTaskCount", 250, `ReplicatorMaxSkipTaskCount is maximum number of tasks that can be skipped during tasks pagination due to not meeting filtering conditions (e.g. missed namespace).`, ) ReplicatorProcessorMaxPollInterval = NewGlobalDurationSetting( "history.replicatorProcessorMaxPollInterval", 1*time.Minute, `ReplicatorProcessorMaxPollInterval is max poll interval for ReplicatorProcessor`, ) ReplicatorProcessorMaxPollIntervalJitterCoefficient = NewGlobalFloatSetting( "history.replicatorProcessorMaxPollIntervalJitterCoefficient", 0.15, `ReplicatorProcessorMaxPollIntervalJitterCoefficient is the max poll interval jitter coefficient`, ) MaximumBufferedEventsBatch = NewGlobalIntSetting( "history.maximumBufferedEventsBatch", 100, `MaximumBufferedEventsBatch is the maximum permissible number of buffered events for any given mutable state.`, ) MaximumBufferedEventsSizeInBytes = NewGlobalIntSetting( "history.maximumBufferedEventsSizeInBytes", 2*1024*1024, `MaximumBufferedEventsSizeInBytes is the maximum permissible size of all buffered events for any given mutable state. The total size is determined by the sum of the size, in bytes, of each HistoryEvent proto.`, ) MaximumSignalsPerExecution = NewNamespaceIntSetting( "history.maximumSignalsPerExecution", 10000, `MaximumSignalsPerExecution is max number of signals supported by single execution`, ) ShardUpdateMinInterval = NewGlobalDurationSetting( "history.shardUpdateMinInterval", 5*time.Minute, `ShardUpdateMinInterval is the minimal time interval which the shard info can be updated`, ) ShardUpdateMinTasksCompleted = NewGlobalIntSetting( "history.shardUpdateMinTasksCompleted", 1000, `ShardUpdateMinTasksCompleted is the minimum number of tasks which must be completed (across all queues) before the shard info can be updated. Note that once history.shardUpdateMinInterval amount of time has passed we'll update the shard info regardless of the number of tasks completed. When the this config is zero or lower we will only update shard info at most once every history.shardUpdateMinInterval.`, ) ShardSyncMinInterval = NewGlobalDurationSetting( "history.shardSyncMinInterval", 5*time.Minute, `ShardSyncMinInterval is the minimal time interval which the shard info should be sync to remote`, ) EmitShardLagLog = NewGlobalBoolSetting( "history.emitShardLagLog", false, `EmitShardLagLog whether emit the shard lag log`, ) DefaultEventEncoding = NewNamespaceStringSetting( "history.defaultEventEncoding", enumspb.ENCODING_TYPE_PROTO3.String(), `DefaultEventEncoding is the encoding type for history events`, ) DefaultActivityRetryPolicy = NewNamespaceMapSetting( "history.defaultActivityRetryPolicy", retrypolicy.GetDefault(), `DefaultActivityRetryPolicy represents the out-of-box retry policy for activities where the user has not specified an explicit RetryPolicy`, ) DefaultWorkflowRetryPolicy = NewNamespaceMapSetting( "history.defaultWorkflowRetryPolicy", retrypolicy.GetDefault(), `DefaultWorkflowRetryPolicy represents the out-of-box retry policy for unset fields where the user has set an explicit RetryPolicy, but not specified all the fields`, ) HistoryMaxAutoResetPoints = NewNamespaceIntSetting( "history.historyMaxAutoResetPoints", primitives.DefaultHistoryMaxAutoResetPoints, `HistoryMaxAutoResetPoints is the key for max number of auto reset points stored in mutableState`, ) EnableParentClosePolicy = NewNamespaceBoolSetting( "history.enableParentClosePolicy", true, `EnableParentClosePolicy whether to ParentClosePolicy`, ) ParentClosePolicyThreshold = NewNamespaceIntSetting( "history.parentClosePolicyThreshold", 10, `ParentClosePolicyThreshold decides that parent close policy will be processed by sys workers(if enabled) if the number of children greater than or equal to this threshold`, ) NumParentClosePolicySystemWorkflows = NewGlobalIntSetting( "history.numParentClosePolicySystemWorkflows", 10, `NumParentClosePolicySystemWorkflows is key for number of parentClosePolicy system workflows running in total`, ) HistoryThrottledLogRPS = NewGlobalIntSetting( "history.throttledLogRPS", 4, `HistoryThrottledLogRPS is the rate limit on number of log messages emitted per second for throttled logger`, ) WorkflowTaskHeartbeatTimeout = NewNamespaceDurationSetting( "history.workflowTaskHeartbeatTimeout", time.Minute*30, `WorkflowTaskHeartbeatTimeout for workflow task heartbeat`, ) WorkflowTaskCriticalAttempts = NewGlobalIntSetting( "history.workflowTaskCriticalAttempt", 10, `WorkflowTaskCriticalAttempts is the number of attempts for a workflow task that's regarded as critical`, ) WorkflowTaskRetryMaxInterval = NewGlobalDurationSetting( "history.workflowTaskRetryMaxInterval", time.Minute*10, `WorkflowTaskRetryMaxInterval is the maximum interval added to a workflow task's startToClose timeout for slowing down retry`, ) DefaultWorkflowTaskTimeout = NewNamespaceDurationSetting( "history.defaultWorkflowTaskTimeout", primitives.DefaultWorkflowTaskTimeout, `DefaultWorkflowTaskTimeout for a workflow task`, ) SkipReapplicationByNamespaceID = NewNamespaceIDBoolSetting( "history.SkipReapplicationByNamespaceID", false, `SkipReapplicationByNamespaceID is whether skipping a event re-application for a namespace`, ) StandbyTaskReReplicationContextTimeout = NewNamespaceIDDurationSetting( "history.standbyTaskReReplicationContextTimeout", 30*time.Second, `StandbyTaskReReplicationContextTimeout is the context timeout for standby task re-replication`, ) MaxBufferedQueryCount = NewGlobalIntSetting( "history.MaxBufferedQueryCount", 1, `MaxBufferedQueryCount indicates max buffer query count`, ) MutableStateChecksumGenProbability = NewNamespaceIntSetting( "history.mutableStateChecksumGenProbability", 0, `MutableStateChecksumGenProbability is the probability [0-100] that checksum will be generated for mutable state`, ) MutableStateChecksumVerifyProbability = NewNamespaceIntSetting( "history.mutableStateChecksumVerifyProbability", 0, `MutableStateChecksumVerifyProbability is the probability [0-100] that checksum will be verified for mutable state`, ) MutableStateChecksumInvalidateBefore = NewGlobalFloatSetting( "history.mutableStateChecksumInvalidateBefore", 0, `MutableStateChecksumInvalidateBefore is the epoch timestamp before which all checksums are to be discarded`, ) ReplicationTaskApplyTimeout = NewGlobalDurationSetting( "history.ReplicationTaskApplyTimeout", 20*time.Second, `ReplicationTaskApplyTimeout is the context timeout for replication task apply`, ) ReplicationTaskFetcherParallelism = NewGlobalIntSetting( "history.ReplicationTaskFetcherParallelism", 4, `ReplicationTaskFetcherParallelism determines how many go routines we spin up for fetching tasks`, ) ReplicationTaskFetcherAggregationInterval = NewGlobalDurationSetting( "history.ReplicationTaskFetcherAggregationInterval", 2*time.Second, `ReplicationTaskFetcherAggregationInterval determines how frequently the fetch requests are sent`, ) ReplicationTaskFetcherTimerJitterCoefficient = NewGlobalFloatSetting( "history.ReplicationTaskFetcherTimerJitterCoefficient", 0.15, `ReplicationTaskFetcherTimerJitterCoefficient is the jitter for fetcher timer`, ) ReplicationTaskFetcherErrorRetryWait = NewGlobalDurationSetting( "history.ReplicationTaskFetcherErrorRetryWait", time.Second, `ReplicationTaskFetcherErrorRetryWait is the wait time when fetcher encounters error`, ) ReplicationTaskProcessorErrorRetryWait = NewShardIDDurationSetting( "history.ReplicationTaskProcessorErrorRetryWait", 1*time.Second, `ReplicationTaskProcessorErrorRetryWait is the initial retry wait when we see errors in applying replication tasks`, ) ReplicationTaskProcessorErrorRetryBackoffCoefficient = NewShardIDFloatSetting( "history.ReplicationTaskProcessorErrorRetryBackoffCoefficient", 1.2, `ReplicationTaskProcessorErrorRetryBackoffCoefficient is the retry wait backoff time coefficient`, ) ReplicationTaskProcessorErrorRetryMaxInterval = NewShardIDDurationSetting( "history.ReplicationTaskProcessorErrorRetryMaxInterval", 5*time.Second, `ReplicationTaskProcessorErrorRetryMaxInterval is the retry wait backoff max duration`, ) ReplicationTaskProcessorErrorRetryMaxAttempts = NewShardIDIntSetting( "history.ReplicationTaskProcessorErrorRetryMaxAttempts", 80, `ReplicationTaskProcessorErrorRetryMaxAttempts is the max retry attempts for applying replication tasks`, ) ReplicationTaskProcessorErrorRetryExpiration = NewShardIDDurationSetting( "history.ReplicationTaskProcessorErrorRetryExpiration", 5*time.Minute, `ReplicationTaskProcessorErrorRetryExpiration is the max retry duration for applying replication tasks`, ) ReplicationTaskProcessorNoTaskInitialWait = NewShardIDDurationSetting( "history.ReplicationTaskProcessorNoTaskInitialWait", 2*time.Second, `ReplicationTaskProcessorNoTaskInitialWait is the wait time when not ask is returned`, ) ReplicationTaskProcessorCleanupInterval = NewShardIDDurationSetting( "history.ReplicationTaskProcessorCleanupInterval", 1*time.Minute, `ReplicationTaskProcessorCleanupInterval determines how frequently the cleanup replication queue`, ) ReplicationTaskProcessorCleanupJitterCoefficient = NewShardIDFloatSetting( "history.ReplicationTaskProcessorCleanupJitterCoefficient", 0.15, `ReplicationTaskProcessorCleanupJitterCoefficient is the jitter for cleanup timer`, ) ReplicationTaskProcessorHostQPS = NewGlobalFloatSetting( "history.ReplicationTaskProcessorHostQPS", 1500, `ReplicationTaskProcessorHostQPS is the qps of task processing rate limiter on host level`, ) ReplicationTaskProcessorShardQPS = NewGlobalFloatSetting( "history.ReplicationTaskProcessorShardQPS", 30, `ReplicationTaskProcessorShardQPS is the qps of task processing rate limiter on shard level`, ) ReplicationEnableDLQMetrics = NewGlobalBoolSetting( "history.ReplicationEnableDLQMetrics", true, `ReplicationEnableDLQMetrics is the flag to emit DLQ metrics`, ) ReplicationEnableUpdateWithNewTaskMerge = NewGlobalBoolSetting( "history.ReplicationEnableUpdateWithNewTaskMerge", false, `ReplicationEnableUpdateWithNewTaskMerge is the flag controlling whether replication task merging logic should be enabled for non continuedAsNew workflow UpdateWithNew case.`, ) HistoryTaskDLQEnabled = NewGlobalBoolSetting( "history.TaskDLQEnabled", true, `HistoryTaskDLQEnabled enables the history task DLQ. This applies to internal tasks like transfer and timer tasks. Do not turn this on if you aren't using Cassandra as the history task DLQ is not implemented for other databases.`, ) HistoryTaskDLQUnexpectedErrorAttempts = NewGlobalIntSetting( "history.TaskDLQUnexpectedErrorAttempts", 70, `HistoryTaskDLQUnexpectedErrorAttempts is the number of task execution attempts before sending the task to DLQ.`, ) HistoryTaskDLQInternalErrors = NewGlobalBoolSetting( "history.TaskDLQInternalErrors", false, `HistoryTaskDLQInternalErrors causes history task processing to send tasks failing with serviceerror.Internal to the dlq (or will drop them if not enabled)`, ) HistoryTaskDLQErrorPattern = NewGlobalStringSetting( "history.TaskDLQErrorPattern", "", `HistoryTaskDLQErrorPattern specifies a regular expression. If a task processing error matches with this regex, that task will be sent to DLQ.`, ) ReplicationStreamSyncStatusDuration = NewGlobalDurationSetting( "history.ReplicationStreamSyncStatusDuration", 1*time.Second, `ReplicationStreamSyncStatusDuration sync replication status duration`, ) ReplicationProcessorSchedulerQueueSize = NewGlobalIntSetting( "history.ReplicationProcessorSchedulerQueueSize", 128, `ReplicationProcessorSchedulerQueueSize is the replication task executor queue size`, ) ReplicationProcessorSchedulerWorkerCount = NewGlobalIntSetting( "history.ReplicationProcessorSchedulerWorkerCount", 512, `ReplicationProcessorSchedulerWorkerCount is the replication task executor worker count`, ) ReplicationLowPriorityProcessorSchedulerWorkerCount = NewGlobalIntSetting( "history.ReplicationLowPriorityProcessorSchedulerWorkerCount", 128, `ReplicationLowPriorityProcessorSchedulerWorkerCount is the low priority replication task executor worker count`, ) ReplicationLowPriorityTaskParallelism = NewGlobalIntSetting( "history.ReplicationLowPriorityTaskParallelism", 4, `ReplicationLowPriorityTaskParallelism is the number of executions' low priority replication tasks that can be processed in parallel`, ) EnableEagerNamespaceRefresher = NewGlobalBoolSetting( "history.EnableEagerNamespaceRefresher", false, `EnableEagerNamespaceRefresher is a feature flag for eagerly refresh namespace during processing replication task`, ) EnableReplicationTaskBatching = NewGlobalBoolSetting( "history.EnableReplicationTaskBatching", false, `EnableReplicationTaskBatching is a feature flag for batching replicate history event task`, ) EnableReplicateLocalGeneratedEvents = NewGlobalBoolSetting( "history.EnableReplicateLocalGeneratedEvents", false, `EnableReplicateLocalGeneratedEvents is a feature flag for replicating locally generated events`, ) EnableReplicationTaskTieredProcessing = NewGlobalBoolSetting( "history.EnableReplicationTaskTieredProcessing", false, `EnableReplicationTaskTieredProcessing is a feature flag for enabling tiered replication task processing stack`, ) WorkerPersistenceMaxQPS = NewGlobalIntSetting( "worker.persistenceMaxQPS", 500, `WorkerPersistenceMaxQPS is the max qps worker host can query DB`, ) WorkerPersistenceGlobalMaxQPS = NewGlobalIntSetting( "worker.persistenceGlobalMaxQPS", 0, `WorkerPersistenceGlobalMaxQPS is the max qps worker cluster can query DB`, ) WorkerPersistenceNamespaceMaxQPS = NewNamespaceIntSetting( "worker.persistenceNamespaceMaxQPS", 0, `WorkerPersistenceNamespaceMaxQPS is the max qps each namespace on worker host can query DB`, ) WorkerPersistenceGlobalNamespaceMaxQPS = NewNamespaceIntSetting( "worker.persistenceGlobalNamespaceMaxQPS", 0, `WorkerPersistenceNamespaceMaxQPS is the max qps each namespace in worker cluster can query DB`, ) WorkerPersistenceDynamicRateLimitingParams = NewGlobalMapSetting( "worker.persistenceDynamicRateLimitingParams", DefaultDynamicRateLimitingParams, `WorkerPersistenceDynamicRateLimitingParams is a map that contains all adjustable dynamic rate limiting params see DefaultDynamicRateLimitingParams for available options and defaults`, ) WorkerIndexerConcurrency = NewGlobalIntSetting( "worker.indexerConcurrency", 100, `WorkerIndexerConcurrency is the max concurrent messages to be processed at any given time`, ) WorkerESProcessorNumOfWorkers = NewGlobalIntSetting( "worker.ESProcessorNumOfWorkers", 2, `WorkerESProcessorNumOfWorkers is num of workers for esProcessor`, ) WorkerESProcessorBulkActions = NewGlobalIntSetting( "worker.ESProcessorBulkActions", 500, `WorkerESProcessorBulkActions is max number of requests in bulk for esProcessor`, ) WorkerESProcessorBulkSize = NewGlobalIntSetting( "worker.ESProcessorBulkSize", 16*1024*1024, `WorkerESProcessorBulkSize is max total size of bulk in bytes for esProcessor`, ) WorkerESProcessorFlushInterval = NewGlobalDurationSetting( "worker.ESProcessorFlushInterval", 1*time.Second, `WorkerESProcessorFlushInterval is flush interval for esProcessor`, ) WorkerESProcessorAckTimeout = NewGlobalDurationSetting( "worker.ESProcessorAckTimeout", 30*time.Second, `WorkerESProcessorAckTimeout is the timeout that store will wait to get ack signal from ES processor. Should be at least WorkerESProcessorFlushInterval+<time to process request>.`, ) WorkerThrottledLogRPS = NewGlobalIntSetting( "worker.throttledLogRPS", 20, `WorkerThrottledLogRPS is the rate limit on number of log messages emitted per second for throttled logger`, ) WorkerScannerMaxConcurrentActivityExecutionSize = NewGlobalIntSetting( "worker.ScannerMaxConcurrentActivityExecutionSize", 10, `WorkerScannerMaxConcurrentActivityExecutionSize indicates worker scanner max concurrent activity execution size`, ) WorkerScannerMaxConcurrentWorkflowTaskExecutionSize = NewGlobalIntSetting( "worker.ScannerMaxConcurrentWorkflowTaskExecutionSize", 10, `WorkerScannerMaxConcurrentWorkflowTaskExecutionSize indicates worker scanner max concurrent workflow execution size`, ) WorkerScannerMaxConcurrentActivityTaskPollers = NewGlobalIntSetting( "worker.ScannerMaxConcurrentActivityTaskPollers", 8, `WorkerScannerMaxConcurrentActivityTaskPollers indicates worker scanner max concurrent activity pollers`, ) WorkerScannerMaxConcurrentWorkflowTaskPollers = NewGlobalIntSetting( "worker.ScannerMaxConcurrentWorkflowTaskPollers", 8, `WorkerScannerMaxConcurrentWorkflowTaskPollers indicates worker scanner max concurrent workflow pollers`, ) ScannerPersistenceMaxQPS = NewGlobalIntSetting( "worker.scannerPersistenceMaxQPS", 100, `ScannerPersistenceMaxQPS is the maximum rate of persistence calls from worker.Scanner`, ) ExecutionScannerPerHostQPS = NewGlobalIntSetting( "worker.executionScannerPerHostQPS", 10, `ExecutionScannerPerHostQPS is the maximum rate of calls per host from executions.Scanner`, ) ExecutionScannerPerShardQPS = NewGlobalIntSetting( "worker.executionScannerPerShardQPS", 1, `ExecutionScannerPerShardQPS is the maximum rate of calls per shard from executions.Scanner`, ) ExecutionDataDurationBuffer = NewGlobalDurationSetting( "worker.executionDataDurationBuffer", time.Hour*24*90, `ExecutionDataDurationBuffer is the data TTL duration buffer of execution data`, ) ExecutionScannerWorkerCount = NewGlobalIntSetting( "worker.executionScannerWorkerCount", 8, `ExecutionScannerWorkerCount is the execution scavenger worker count`, ) ExecutionScannerHistoryEventIdValidator = NewGlobalBoolSetting( "worker.executionEnableHistoryEventIdValidator", true, `ExecutionScannerHistoryEventIdValidator is the flag to enable history event id validator`, ) TaskQueueScannerEnabled = NewGlobalBoolSetting( "worker.taskQueueScannerEnabled", true, `TaskQueueScannerEnabled indicates if task queue scanner should be started as part of worker.Scanner`, ) BuildIdScavengerEnabled = NewGlobalBoolSetting( "worker.buildIdScavengerEnabled", false, `BuildIdScavengerEnabled indicates if the build id scavenger should be started as part of worker.Scanner`, ) HistoryScannerEnabled = NewGlobalBoolSetting( "worker.historyScannerEnabled", true, `HistoryScannerEnabled indicates if history scanner should be started as part of worker.Scanner`, ) ExecutionsScannerEnabled = NewGlobalBoolSetting( "worker.executionsScannerEnabled", false, `ExecutionsScannerEnabled indicates if executions scanner should be started as part of worker.Scanner`, ) HistoryScannerDataMinAge = NewGlobalDurationSetting( "worker.historyScannerDataMinAge", 60*24*time.Hour, `HistoryScannerDataMinAge indicates the history scanner cleanup minimum age.`, ) HistoryScannerVerifyRetention = NewGlobalBoolSetting( "worker.historyScannerVerifyRetention", true, `HistoryScannerVerifyRetention indicates the history scanner verify data retention. If the service configures with archival feature enabled, update worker.historyScannerVerifyRetention to be double of the data retention.`, ) EnableBatcherGlobal = NewGlobalBoolSetting( "worker.enableBatcher", true, `EnableBatcher decides whether to start old (system namespace) batcher in our worker`, ) EnableBatcherNamespace = NewNamespaceBoolSetting( "worker.enableNamespaceBatcher", true, `EnableBatcher decides whether to start new (per-namespace) batcher in our worker`, ) BatcherRPS = NewNamespaceIntSetting( "worker.batcherRPS", 50, `BatcherRPS controls number the rps of batch operations`, ) BatcherConcurrency = NewNamespaceIntSetting( "worker.batcherConcurrency", 5, `BatcherConcurrency controls the concurrency of one batch operation`, ) WorkerParentCloseMaxConcurrentActivityExecutionSize = NewGlobalIntSetting( "worker.ParentCloseMaxConcurrentActivityExecutionSize", 1000, `WorkerParentCloseMaxConcurrentActivityExecutionSize indicates worker parent close worker max concurrent activity execution size`, ) WorkerParentCloseMaxConcurrentWorkflowTaskExecutionSize = NewGlobalIntSetting( "worker.ParentCloseMaxConcurrentWorkflowTaskExecutionSize", 1000, `WorkerParentCloseMaxConcurrentWorkflowTaskExecutionSize indicates worker parent close worker max concurrent workflow execution size`, ) WorkerParentCloseMaxConcurrentActivityTaskPollers = NewGlobalIntSetting( "worker.ParentCloseMaxConcurrentActivityTaskPollers", 4, `WorkerParentCloseMaxConcurrentActivityTaskPollers indicates worker parent close worker max concurrent activity pollers`, ) WorkerParentCloseMaxConcurrentWorkflowTaskPollers = NewGlobalIntSetting( "worker.ParentCloseMaxConcurrentWorkflowTaskPollers", 4, `WorkerParentCloseMaxConcurrentWorkflowTaskPollers indicates worker parent close worker max concurrent workflow pollers`, ) WorkerPerNamespaceWorkerCount = NewNamespaceIntSetting( "worker.perNamespaceWorkerCount", 1, `WorkerPerNamespaceWorkerCount controls number of per-ns (scheduler, batcher, etc.) workers to run per namespace`, ) WorkerPerNamespaceWorkerOptions = NewNamespaceMapSetting( "worker.perNamespaceWorkerOptions", map[string]any{}, `WorkerPerNamespaceWorkerOptions are SDK worker options for per-namespace worker`, ) WorkerPerNamespaceWorkerStartRate = NewGlobalFloatSetting( "worker.perNamespaceWorkerStartRate", 10.0, `WorkerPerNamespaceWorkerStartRate controls how fast per-namespace workers can be started (workers/second)`, ) WorkerEnableScheduler = NewNamespaceBoolSetting( "worker.enableScheduler", true, `WorkerEnableScheduler controls whether to start the worker for scheduled workflows`, ) WorkerStickyCacheSize = NewGlobalIntSetting( "worker.stickyCacheSize", 0, `WorkerStickyCacheSize controls the sticky cache size for SDK workers on worker nodes (shared between all workers in the process, cannot be changed after startup)`, ) SchedulerNamespaceStartWorkflowRPS = NewNamespaceFloatSetting( "worker.schedulerNamespaceStartWorkflowRPS", 30.0, `SchedulerNamespaceStartWorkflowRPS is the per-namespace limit for starting workflows by schedules`, ) SchedulerLocalActivitySleepLimit = NewNamespaceDurationSetting( "worker.schedulerLocalActivitySleepLimit", 1*time.Second, `How long to sleep within a local activity before pushing to workflow level sleep (don't make this close to or more than the workflow task timeout)`, ) WorkerDeleteNamespaceActivityLimitsConfig = NewGlobalMapSetting( "worker.deleteNamespaceActivityLimitsConfig", map[string]any{}, `WorkerDeleteNamespaceActivityLimitsConfig is a map that contains a copy of relevant sdkworker.Options settings for controlling remote activity concurrency for delete namespace workflows.`, ) )
var DefaultDynamicRateLimitingParams = map[string]interface{}{ // contains filtered or unexported fields }
var DefaultPerShardNamespaceRPSMax = GetIntPropertyFnFilteredByNamespace(0)
Functions ¶
func AccessHistory ¶ added in v1.23.0
func AccessHistory(accessHistoryFraction FloatPropertyFn, metricsHandler metrics.Handler) bool
AccessHistory is an interim config helper for dialing fraction of FE->History calls DEPRECATED: Remove once migration is complete
func ConvertStructure ¶ added in v1.25.0
ConvertStructure can be used as a conversion function for New*TypedSetting. The value from dynamic config will be converted to T, on top of the given default.
Note that any failure in conversion of _any_ field will result in the overall default being used, ignoring the fields that successfully converted.
Note that the default value will be shallow-copied, so it should not have any deep structure. Scalar types and values are fine, and slice and map types are fine too as long as they're set to nil in the default.
To avoid confusion, the default passed to ConvertStructure should be either the same as the overall default for the setting (if you want any value set to be merged over the default, i.e. treat the fields independently), or the zero value of its type (if you want to treat the fields as a group and default unset fields to zero).
func NewFileBasedClient ¶
func NewFileBasedClient(config *FileBasedClientConfig, logger log.Logger, doneCh <-chan interface{}) (*fileBasedClient, error)
NewFileBasedClient creates a file based client.
func NewFileBasedClientWithReader ¶ added in v1.16.0
func NewFileBasedClientWithReader(reader fileReader, config *FileBasedClientConfig, logger log.Logger, doneCh <-chan interface{}) (*fileBasedClient, error)
Types ¶
type BoolPropertyFn ¶
type BoolPropertyFn func() bool
func GetBoolPropertyFn ¶
func GetBoolPropertyFn(value bool) BoolPropertyFn
type BoolPropertyFnWithDestinationFilter ¶ added in v1.24.0
func GetBoolPropertyFnFilteredByDestination ¶ added in v1.25.0
func GetBoolPropertyFnFilteredByDestination(value bool) BoolPropertyFnWithDestinationFilter
type BoolPropertyFnWithNamespaceFilter ¶
func GetBoolPropertyFnFilteredByNamespace ¶
func GetBoolPropertyFnFilteredByNamespace(value bool) BoolPropertyFnWithNamespaceFilter
type BoolPropertyFnWithNamespaceIDFilter ¶
func GetBoolPropertyFnFilteredByNamespaceID ¶ added in v1.25.0
func GetBoolPropertyFnFilteredByNamespaceID(value bool) BoolPropertyFnWithNamespaceIDFilter
type BoolPropertyFnWithShardIDFilter ¶ added in v1.25.0
func GetBoolPropertyFnFilteredByShardID ¶ added in v1.25.0
func GetBoolPropertyFnFilteredByShardID(value bool) BoolPropertyFnWithShardIDFilter
type BoolPropertyFnWithTaskQueueFilter ¶ added in v1.24.0
type BoolPropertyFnWithTaskQueueFilter func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType) bool
func GetBoolPropertyFnFilteredByTaskQueue ¶ added in v1.25.0
func GetBoolPropertyFnFilteredByTaskQueue(value bool) BoolPropertyFnWithTaskQueueFilter
type BoolPropertyFnWithTaskTypeFilter ¶ added in v1.25.0
func GetBoolPropertyFnFilteredByTaskType ¶ added in v1.25.0
func GetBoolPropertyFnFilteredByTaskType(value bool) BoolPropertyFnWithTaskTypeFilter
type Client ¶
type Client interface { // GetValue returns a set of values and associated constraints for a key. Not all // constraints are valid for all keys. // // The returned slice of ConstrainedValues is treated as a set, and order does not // matter. The effective order of constraints is determined by server logic. See the // comment on Constraints below. // // If none of the ConstrainedValues match the constraints being used for the key, then // the server default value will be used. // // Note that GetValue is called very often! You should not synchronously call out to an // external system. Instead you should keep a set of all configured values, refresh it // periodically or when notified, and only do in-memory lookups inside of GetValue. GetValue(key Key) []ConstrainedValue }
Client is a source of dynamic configuration. The default Client, fileBasedClient, reads from a file in the filesystem, and refreshes it periodically. You can extend the server with an alternate Client using ServerOptions.
func NewNoopClient ¶
func NewNoopClient() Client
NewNoopClient returns a Client that has no keys (a Collection using it will always return default values).
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
Collection implements lookup and constraint logic on top of a Client. The rest of the server code should use Collection as the interface to dynamic config, instead of the low-level Client.
func NewCollection ¶
func NewCollection(client Client, logger log.Logger) *Collection
NewCollection creates a new collection
func NewNoopCollection ¶
func NewNoopCollection() *Collection
NewNoopCollection creates a new noop collection.
func (*Collection) HasKey ¶ added in v1.21.0
func (c *Collection) HasKey(key Key) bool
type ConstrainedValue ¶ added in v1.17.3
type ConstrainedValue struct { Constraints Constraints Value any }
ConstrainedValue is a value plus associated constraints.
The type of the Value field depends on the key. Acceptable types will be one of:
int, float64, bool, string, map[string]any, time.Duration
If time.Duration is expected, a string is also accepted, which will be converted using timestamp.ParseDurationDefaultDays. If float64 is expected, int is also accepted. In other cases, the exact type must be used. If a Value is returned with an unexpected type, it will be ignored.
type Constraints ¶ added in v1.18.0
type Constraints struct { Namespace string NamespaceID string TaskQueueName string TaskQueueType enumspb.TaskQueueType ShardID int32 TaskType enumsspb.TaskType Destination string }
Constraints describe under what conditions a ConstrainedValue should be used. There are few standard "constraint precedence orders" that the server uses:
global precedence: no constraints namespace precedence: Namespace no constraints task queue precedence Namespace+TaskQueueName+TaskQueueType Namespace+TaskQueueName TaskQueueName Namespace no constraints shard id precedence: ShardID no constraints
In each case, the constraints that the server is checking and the constraints that apply to the value must match exactly, including the fields that are not set (zero values). That is, for keys that use namespace precedence, you must either return a ConstrainedValue with only Namespace set, or with no fields set. (Or return one of each.) If you return a ConstrainedValue with Namespace and ShardID set, for example, that value will never be used, even if the Namespace matches.
type DestinationBoolSetting ¶ added in v1.25.0
func NewDestinationBoolSetting ¶ added in v1.25.0
func NewDestinationBoolSetting(key Key, def bool, description string) DestinationBoolSetting
func NewDestinationBoolSettingWithConstrainedDefault ¶ added in v1.25.0
func NewDestinationBoolSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[bool], description string) DestinationBoolSetting
func (DestinationBoolSetting) Get ¶
func (s DestinationBoolSetting) Get(c *Collection) BoolPropertyFnWithDestinationFilter
func (DestinationBoolSetting) Key ¶
func (s DestinationBoolSetting) Key() Key
func (DestinationBoolSetting) Precedence ¶
func (s DestinationBoolSetting) Precedence() Precedence
func (DestinationBoolSetting) WithDefault ¶
func (s DestinationBoolSetting) WithDefault(v bool) DestinationBoolSetting
type DestinationDurationSetting ¶ added in v1.25.0
func NewDestinationDurationSetting ¶ added in v1.25.0
func NewDestinationDurationSetting(key Key, def time.Duration, description string) DestinationDurationSetting
func NewDestinationDurationSettingWithConstrainedDefault ¶ added in v1.25.0
func NewDestinationDurationSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[time.Duration], description string) DestinationDurationSetting
func (DestinationDurationSetting) Get ¶
func (s DestinationDurationSetting) Get(c *Collection) DurationPropertyFnWithDestinationFilter
func (DestinationDurationSetting) Key ¶
func (s DestinationDurationSetting) Key() Key
func (DestinationDurationSetting) Precedence ¶
func (s DestinationDurationSetting) Precedence() Precedence
func (DestinationDurationSetting) WithDefault ¶
func (s DestinationDurationSetting) WithDefault(v time.Duration) DestinationDurationSetting
type DestinationFloatSetting ¶ added in v1.25.0
func NewDestinationFloatSetting ¶ added in v1.25.0
func NewDestinationFloatSetting(key Key, def float64, description string) DestinationFloatSetting
func NewDestinationFloatSettingWithConstrainedDefault ¶ added in v1.25.0
func NewDestinationFloatSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[float64], description string) DestinationFloatSetting
func (DestinationFloatSetting) Get ¶
func (s DestinationFloatSetting) Get(c *Collection) FloatPropertyFnWithDestinationFilter
func (DestinationFloatSetting) Key ¶
func (s DestinationFloatSetting) Key() Key
func (DestinationFloatSetting) Precedence ¶
func (s DestinationFloatSetting) Precedence() Precedence
func (DestinationFloatSetting) WithDefault ¶
func (s DestinationFloatSetting) WithDefault(v float64) DestinationFloatSetting
type DestinationIntSetting ¶ added in v1.25.0
func NewDestinationIntSetting ¶ added in v1.25.0
func NewDestinationIntSetting(key Key, def int, description string) DestinationIntSetting
func NewDestinationIntSettingWithConstrainedDefault ¶ added in v1.25.0
func NewDestinationIntSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[int], description string) DestinationIntSetting
func (DestinationIntSetting) Get ¶
func (s DestinationIntSetting) Get(c *Collection) IntPropertyFnWithDestinationFilter
func (DestinationIntSetting) Key ¶
func (s DestinationIntSetting) Key() Key
func (DestinationIntSetting) Precedence ¶
func (s DestinationIntSetting) Precedence() Precedence
func (DestinationIntSetting) WithDefault ¶
func (s DestinationIntSetting) WithDefault(v int) DestinationIntSetting
type DestinationMapSetting ¶ added in v1.25.0
func NewDestinationMapSetting ¶ added in v1.25.0
func NewDestinationMapSetting(key Key, def map[string]any, description string) DestinationMapSetting
func NewDestinationMapSettingWithConstrainedDefault ¶ added in v1.25.0
func NewDestinationMapSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[map[string]any], description string) DestinationMapSetting
func (DestinationMapSetting) Get ¶
func (s DestinationMapSetting) Get(c *Collection) MapPropertyFnWithDestinationFilter
func (DestinationMapSetting) Key ¶
func (s DestinationMapSetting) Key() Key
func (DestinationMapSetting) Precedence ¶
func (s DestinationMapSetting) Precedence() Precedence
func (DestinationMapSetting) WithDefault ¶
func (s DestinationMapSetting) WithDefault(v map[string]any) DestinationMapSetting
type DestinationStringSetting ¶ added in v1.25.0
func NewDestinationStringSetting ¶ added in v1.25.0
func NewDestinationStringSetting(key Key, def string, description string) DestinationStringSetting
func NewDestinationStringSettingWithConstrainedDefault ¶ added in v1.25.0
func NewDestinationStringSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[string], description string) DestinationStringSetting
func (DestinationStringSetting) Get ¶
func (s DestinationStringSetting) Get(c *Collection) StringPropertyFnWithDestinationFilter
func (DestinationStringSetting) Key ¶
func (s DestinationStringSetting) Key() Key
func (DestinationStringSetting) Precedence ¶
func (s DestinationStringSetting) Precedence() Precedence
func (DestinationStringSetting) WithDefault ¶
func (s DestinationStringSetting) WithDefault(v string) DestinationStringSetting
type DestinationTypedSetting ¶ added in v1.25.0
func NewDestinationTypedSetting ¶ added in v1.25.0
func NewDestinationTypedSetting[T any](key Key, def T, description string) DestinationTypedSetting[T]
NewDestinationTypedSetting creates a setting that uses mapstructure to handle complex structured values. The value from dynamic config will be copied over a shallow copy of 'def', which means 'def' must not contain any non-nil slices, maps, or pointers.
func NewDestinationTypedSettingWithConverter ¶ added in v1.25.0
func NewDestinationTypedSettingWithConverter[T any](key Key, convert func(any) (T, error), def T, description string) DestinationTypedSetting[T]
NewDestinationTypedSettingWithConverter creates a setting with a custom converter function.
func (DestinationTypedSetting[T]) Get ¶ added in v1.25.0
func (s DestinationTypedSetting[T]) Get(c *Collection) func(namespace string, destination string) T
func (DestinationTypedSetting[T]) Key ¶ added in v1.25.0
func (s DestinationTypedSetting[T]) Key() Key
func (DestinationTypedSetting[T]) Precedence ¶ added in v1.25.0
func (s DestinationTypedSetting[T]) Precedence() Precedence
func (DestinationTypedSetting[T]) WithDefault ¶ added in v1.25.0
func (s DestinationTypedSetting[T]) WithDefault(v T) DestinationTypedSetting[T]
type DurationPropertyFn ¶
func GetDurationPropertyFn ¶
func GetDurationPropertyFn(value time.Duration) DurationPropertyFn
type DurationPropertyFnWithDestinationFilter ¶ added in v1.24.0
type DurationPropertyFnWithDestinationFilter func(namespace string, destination string) time.Duration
func GetDurationPropertyFnFilteredByDestination ¶ added in v1.25.0
func GetDurationPropertyFnFilteredByDestination(value time.Duration) DurationPropertyFnWithDestinationFilter
type DurationPropertyFnWithNamespaceFilter ¶
func GetDurationPropertyFnFilteredByNamespace ¶
func GetDurationPropertyFnFilteredByNamespace(value time.Duration) DurationPropertyFnWithNamespaceFilter
type DurationPropertyFnWithNamespaceIDFilter ¶
func GetDurationPropertyFnFilteredByNamespaceID ¶ added in v1.25.0
func GetDurationPropertyFnFilteredByNamespaceID(value time.Duration) DurationPropertyFnWithNamespaceIDFilter
type DurationPropertyFnWithShardIDFilter ¶
func GetDurationPropertyFnFilteredByShardID ¶ added in v1.25.0
func GetDurationPropertyFnFilteredByShardID(value time.Duration) DurationPropertyFnWithShardIDFilter
type DurationPropertyFnWithTaskQueueFilter ¶ added in v1.24.0
type DurationPropertyFnWithTaskQueueFilter func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType) time.Duration
func GetDurationPropertyFnFilteredByTaskQueue ¶ added in v1.25.0
func GetDurationPropertyFnFilteredByTaskQueue(value time.Duration) DurationPropertyFnWithTaskQueueFilter
type DurationPropertyFnWithTaskTypeFilter ¶ added in v1.18.1
func GetDurationPropertyFnFilteredByTaskType ¶ added in v1.25.0
func GetDurationPropertyFnFilteredByTaskType(value time.Duration) DurationPropertyFnWithTaskTypeFilter
type FileBasedClientConfig ¶
type FileBasedClientConfig struct { Filepath string `yaml:"filepath"` PollInterval time.Duration `yaml:"pollInterval"` }
FileBasedClientConfig is the config for the file based dynamic config client. It specifies where the config file is stored and how often the config should be updated by checking the config file again.
type FloatPropertyFn ¶
type FloatPropertyFn func() float64
func GetFloatPropertyFn ¶
func GetFloatPropertyFn(value float64) FloatPropertyFn
type FloatPropertyFnWithDestinationFilter ¶ added in v1.24.0
func GetFloatPropertyFnFilteredByDestination ¶ added in v1.25.0
func GetFloatPropertyFnFilteredByDestination(value float64) FloatPropertyFnWithDestinationFilter
type FloatPropertyFnWithNamespaceFilter ¶
func GetFloatPropertyFnFilteredByNamespace ¶ added in v1.25.0
func GetFloatPropertyFnFilteredByNamespace(value float64) FloatPropertyFnWithNamespaceFilter
type FloatPropertyFnWithNamespaceIDFilter ¶ added in v1.25.0
func GetFloatPropertyFnFilteredByNamespaceID ¶ added in v1.25.0
func GetFloatPropertyFnFilteredByNamespaceID(value float64) FloatPropertyFnWithNamespaceIDFilter
type FloatPropertyFnWithShardIDFilter ¶
func GetFloatPropertyFnFilteredByShardID ¶ added in v1.25.0
func GetFloatPropertyFnFilteredByShardID(value float64) FloatPropertyFnWithShardIDFilter
type FloatPropertyFnWithTaskQueueFilter ¶ added in v1.24.0
type FloatPropertyFnWithTaskQueueFilter func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType) float64
func GetFloatPropertyFnFilteredByTaskQueue ¶ added in v1.25.0
func GetFloatPropertyFnFilteredByTaskQueue(value float64) FloatPropertyFnWithTaskQueueFilter
type FloatPropertyFnWithTaskTypeFilter ¶ added in v1.25.0
func GetFloatPropertyFnFilteredByTaskType ¶ added in v1.25.0
func GetFloatPropertyFnFilteredByTaskType(value float64) FloatPropertyFnWithTaskTypeFilter
type GenericSetting ¶ added in v1.25.0
type GenericSetting interface { Key() Key Precedence() Precedence }
GenericSetting is an interface that all instances of Setting implement (by generated code in setting_gen.go). It can be used to refer to settings of any type and deal with them generically..
type GlobalBoolSetting ¶ added in v1.25.0
type GlobalBoolSetting setting[bool, func()]
func NewGlobalBoolSetting ¶ added in v1.25.0
func NewGlobalBoolSetting(key Key, def bool, description string) GlobalBoolSetting
func NewGlobalBoolSettingWithConstrainedDefault ¶ added in v1.25.0
func NewGlobalBoolSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[bool], description string) GlobalBoolSetting
func (GlobalBoolSetting) Get ¶
func (s GlobalBoolSetting) Get(c *Collection) BoolPropertyFn
func (GlobalBoolSetting) Key ¶
func (s GlobalBoolSetting) Key() Key
func (GlobalBoolSetting) Precedence ¶
func (s GlobalBoolSetting) Precedence() Precedence
func (GlobalBoolSetting) WithDefault ¶
func (s GlobalBoolSetting) WithDefault(v bool) GlobalBoolSetting
type GlobalDurationSetting ¶ added in v1.25.0
func NewGlobalDurationSetting ¶ added in v1.25.0
func NewGlobalDurationSetting(key Key, def time.Duration, description string) GlobalDurationSetting
func NewGlobalDurationSettingWithConstrainedDefault ¶ added in v1.25.0
func NewGlobalDurationSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[time.Duration], description string) GlobalDurationSetting
func (GlobalDurationSetting) Get ¶
func (s GlobalDurationSetting) Get(c *Collection) DurationPropertyFn
func (GlobalDurationSetting) Key ¶
func (s GlobalDurationSetting) Key() Key
func (GlobalDurationSetting) Precedence ¶
func (s GlobalDurationSetting) Precedence() Precedence
func (GlobalDurationSetting) WithDefault ¶
func (s GlobalDurationSetting) WithDefault(v time.Duration) GlobalDurationSetting
type GlobalFloatSetting ¶ added in v1.25.0
type GlobalFloatSetting setting[float64, func()]
func NewGlobalFloatSetting ¶ added in v1.25.0
func NewGlobalFloatSetting(key Key, def float64, description string) GlobalFloatSetting
func NewGlobalFloatSettingWithConstrainedDefault ¶ added in v1.25.0
func NewGlobalFloatSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[float64], description string) GlobalFloatSetting
func (GlobalFloatSetting) Get ¶
func (s GlobalFloatSetting) Get(c *Collection) FloatPropertyFn
func (GlobalFloatSetting) Key ¶
func (s GlobalFloatSetting) Key() Key
func (GlobalFloatSetting) Precedence ¶
func (s GlobalFloatSetting) Precedence() Precedence
func (GlobalFloatSetting) WithDefault ¶
func (s GlobalFloatSetting) WithDefault(v float64) GlobalFloatSetting
type GlobalIntSetting ¶ added in v1.25.0
type GlobalIntSetting setting[int, func()]
func NewGlobalIntSetting ¶ added in v1.25.0
func NewGlobalIntSetting(key Key, def int, description string) GlobalIntSetting
func NewGlobalIntSettingWithConstrainedDefault ¶ added in v1.25.0
func NewGlobalIntSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[int], description string) GlobalIntSetting
func (GlobalIntSetting) Get ¶
func (s GlobalIntSetting) Get(c *Collection) IntPropertyFn
func (GlobalIntSetting) Key ¶
func (s GlobalIntSetting) Key() Key
func (GlobalIntSetting) Precedence ¶
func (s GlobalIntSetting) Precedence() Precedence
func (GlobalIntSetting) WithDefault ¶
func (s GlobalIntSetting) WithDefault(v int) GlobalIntSetting
type GlobalMapSetting ¶ added in v1.25.0
func NewGlobalMapSetting ¶ added in v1.25.0
func NewGlobalMapSetting(key Key, def map[string]any, description string) GlobalMapSetting
func NewGlobalMapSettingWithConstrainedDefault ¶ added in v1.25.0
func NewGlobalMapSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[map[string]any], description string) GlobalMapSetting
func (GlobalMapSetting) Get ¶
func (s GlobalMapSetting) Get(c *Collection) MapPropertyFn
func (GlobalMapSetting) Key ¶
func (s GlobalMapSetting) Key() Key
func (GlobalMapSetting) Precedence ¶
func (s GlobalMapSetting) Precedence() Precedence
func (GlobalMapSetting) WithDefault ¶
func (s GlobalMapSetting) WithDefault(v map[string]any) GlobalMapSetting
type GlobalStringSetting ¶ added in v1.25.0
type GlobalStringSetting setting[string, func()]
func NewGlobalStringSetting ¶ added in v1.25.0
func NewGlobalStringSetting(key Key, def string, description string) GlobalStringSetting
func NewGlobalStringSettingWithConstrainedDefault ¶ added in v1.25.0
func NewGlobalStringSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[string], description string) GlobalStringSetting
func (GlobalStringSetting) Get ¶
func (s GlobalStringSetting) Get(c *Collection) StringPropertyFn
func (GlobalStringSetting) Key ¶
func (s GlobalStringSetting) Key() Key
func (GlobalStringSetting) Precedence ¶
func (s GlobalStringSetting) Precedence() Precedence
func (GlobalStringSetting) WithDefault ¶
func (s GlobalStringSetting) WithDefault(v string) GlobalStringSetting
type GlobalTypedSetting ¶ added in v1.25.0
type GlobalTypedSetting[T any] setting[T, func()]
func NewGlobalTypedSetting ¶ added in v1.25.0
func NewGlobalTypedSetting[T any](key Key, def T, description string) GlobalTypedSetting[T]
NewGlobalTypedSetting creates a setting that uses mapstructure to handle complex structured values. The value from dynamic config will be copied over a shallow copy of 'def', which means 'def' must not contain any non-nil slices, maps, or pointers.
func NewGlobalTypedSettingWithConverter ¶ added in v1.25.0
func NewGlobalTypedSettingWithConverter[T any](key Key, convert func(any) (T, error), def T, description string) GlobalTypedSetting[T]
NewGlobalTypedSettingWithConverter creates a setting with a custom converter function.
func (GlobalTypedSetting[T]) Get ¶ added in v1.25.0
func (s GlobalTypedSetting[T]) Get(c *Collection) func() T
func (GlobalTypedSetting[T]) Key ¶ added in v1.25.0
func (s GlobalTypedSetting[T]) Key() Key
func (GlobalTypedSetting[T]) Precedence ¶ added in v1.25.0
func (s GlobalTypedSetting[T]) Precedence() Precedence
func (GlobalTypedSetting[T]) WithDefault ¶ added in v1.25.0
func (s GlobalTypedSetting[T]) WithDefault(v T) GlobalTypedSetting[T]
type IntPropertyFn ¶
type IntPropertyFn func() int
func GetIntPropertyFn ¶
func GetIntPropertyFn(value int) IntPropertyFn
type IntPropertyFnWithDestinationFilter ¶ added in v1.24.0
func GetIntPropertyFnFilteredByDestination ¶ added in v1.25.0
func GetIntPropertyFnFilteredByDestination(value int) IntPropertyFnWithDestinationFilter
type IntPropertyFnWithNamespaceFilter ¶
func GetIntPropertyFnFilteredByNamespace ¶ added in v1.24.0
func GetIntPropertyFnFilteredByNamespace(value int) IntPropertyFnWithNamespaceFilter
type IntPropertyFnWithNamespaceIDFilter ¶ added in v1.25.0
func GetIntPropertyFnFilteredByNamespaceID ¶ added in v1.25.0
func GetIntPropertyFnFilteredByNamespaceID(value int) IntPropertyFnWithNamespaceIDFilter
type IntPropertyFnWithShardIDFilter ¶
func GetIntPropertyFnFilteredByShardID ¶ added in v1.25.0
func GetIntPropertyFnFilteredByShardID(value int) IntPropertyFnWithShardIDFilter
type IntPropertyFnWithTaskQueueFilter ¶ added in v1.24.0
type IntPropertyFnWithTaskQueueFilter func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType) int
func GetIntPropertyFnFilteredByTaskQueue ¶ added in v1.24.0
func GetIntPropertyFnFilteredByTaskQueue(value int) IntPropertyFnWithTaskQueueFilter
type IntPropertyFnWithTaskTypeFilter ¶ added in v1.25.0
func GetIntPropertyFnFilteredByTaskType ¶ added in v1.25.0
func GetIntPropertyFnFilteredByTaskType(value int) IntPropertyFnWithTaskTypeFilter
type Key ¶
type Key string
Key is a key/property stored in dynamic config. For convenience, it is recommended that you treat keys as case-insensitive.
type MapPropertyFn ¶
func GetMapPropertyFn ¶
func GetMapPropertyFn(value map[string]any) MapPropertyFn
type MapPropertyFnWithDestinationFilter ¶ added in v1.24.0
func GetMapPropertyFnFilteredByDestination ¶ added in v1.25.0
func GetMapPropertyFnFilteredByDestination(value map[string]any) MapPropertyFnWithDestinationFilter
type MapPropertyFnWithNamespaceFilter ¶
func GetMapPropertyFnFilteredByNamespace ¶ added in v1.24.0
func GetMapPropertyFnFilteredByNamespace(value map[string]any) MapPropertyFnWithNamespaceFilter
type MapPropertyFnWithNamespaceIDFilter ¶ added in v1.25.0
func GetMapPropertyFnFilteredByNamespaceID ¶ added in v1.25.0
func GetMapPropertyFnFilteredByNamespaceID(value map[string]any) MapPropertyFnWithNamespaceIDFilter
type MapPropertyFnWithShardIDFilter ¶ added in v1.25.0
func GetMapPropertyFnFilteredByShardID ¶ added in v1.25.0
func GetMapPropertyFnFilteredByShardID(value map[string]any) MapPropertyFnWithShardIDFilter
type MapPropertyFnWithTaskQueueFilter ¶ added in v1.25.0
type MapPropertyFnWithTaskQueueFilter func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType) map[string]any
func GetMapPropertyFnFilteredByTaskQueue ¶ added in v1.25.0
func GetMapPropertyFnFilteredByTaskQueue(value map[string]any) MapPropertyFnWithTaskQueueFilter
type MapPropertyFnWithTaskTypeFilter ¶ added in v1.25.0
func GetMapPropertyFnFilteredByTaskType ¶ added in v1.25.0
func GetMapPropertyFnFilteredByTaskType(value map[string]any) MapPropertyFnWithTaskTypeFilter
type MockfileReader ¶ added in v1.16.0
type MockfileReader struct {
// contains filtered or unexported fields
}
MockfileReader is a mock of fileReader interface.
func NewMockfileReader ¶ added in v1.16.0
func NewMockfileReader(ctrl *gomock.Controller) *MockfileReader
NewMockfileReader creates a new mock instance.
func (*MockfileReader) EXPECT ¶ added in v1.16.0
func (m *MockfileReader) EXPECT() *MockfileReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockfileReaderMockRecorder ¶ added in v1.16.0
type MockfileReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockfileReaderMockRecorder is the mock recorder for MockfileReader.
func (*MockfileReaderMockRecorder) ReadFile ¶ added in v1.16.0
func (mr *MockfileReaderMockRecorder) ReadFile(src interface{}) *gomock.Call
ReadFile indicates an expected call of ReadFile.
func (*MockfileReaderMockRecorder) Stat ¶ added in v1.16.0
func (mr *MockfileReaderMockRecorder) Stat(src interface{}) *gomock.Call
Stat indicates an expected call of Stat.
type NamespaceBoolSetting ¶ added in v1.25.0
func NewNamespaceBoolSetting ¶ added in v1.25.0
func NewNamespaceBoolSetting(key Key, def bool, description string) NamespaceBoolSetting
func NewNamespaceBoolSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceBoolSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[bool], description string) NamespaceBoolSetting
func (NamespaceBoolSetting) Get ¶
func (s NamespaceBoolSetting) Get(c *Collection) BoolPropertyFnWithNamespaceFilter
func (NamespaceBoolSetting) Key ¶
func (s NamespaceBoolSetting) Key() Key
func (NamespaceBoolSetting) Precedence ¶
func (s NamespaceBoolSetting) Precedence() Precedence
func (NamespaceBoolSetting) WithDefault ¶
func (s NamespaceBoolSetting) WithDefault(v bool) NamespaceBoolSetting
type NamespaceDurationSetting ¶ added in v1.25.0
func NewNamespaceDurationSetting ¶ added in v1.25.0
func NewNamespaceDurationSetting(key Key, def time.Duration, description string) NamespaceDurationSetting
func NewNamespaceDurationSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceDurationSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[time.Duration], description string) NamespaceDurationSetting
func (NamespaceDurationSetting) Get ¶
func (s NamespaceDurationSetting) Get(c *Collection) DurationPropertyFnWithNamespaceFilter
func (NamespaceDurationSetting) Key ¶
func (s NamespaceDurationSetting) Key() Key
func (NamespaceDurationSetting) Precedence ¶
func (s NamespaceDurationSetting) Precedence() Precedence
func (NamespaceDurationSetting) WithDefault ¶
func (s NamespaceDurationSetting) WithDefault(v time.Duration) NamespaceDurationSetting
type NamespaceFloatSetting ¶ added in v1.25.0
func NewNamespaceFloatSetting ¶ added in v1.25.0
func NewNamespaceFloatSetting(key Key, def float64, description string) NamespaceFloatSetting
func NewNamespaceFloatSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceFloatSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[float64], description string) NamespaceFloatSetting
func (NamespaceFloatSetting) Get ¶
func (s NamespaceFloatSetting) Get(c *Collection) FloatPropertyFnWithNamespaceFilter
func (NamespaceFloatSetting) Key ¶
func (s NamespaceFloatSetting) Key() Key
func (NamespaceFloatSetting) Precedence ¶
func (s NamespaceFloatSetting) Precedence() Precedence
func (NamespaceFloatSetting) WithDefault ¶
func (s NamespaceFloatSetting) WithDefault(v float64) NamespaceFloatSetting
type NamespaceIDBoolSetting ¶ added in v1.25.0
func NewNamespaceIDBoolSetting ¶ added in v1.25.0
func NewNamespaceIDBoolSetting(key Key, def bool, description string) NamespaceIDBoolSetting
func NewNamespaceIDBoolSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceIDBoolSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[bool], description string) NamespaceIDBoolSetting
func (NamespaceIDBoolSetting) Get ¶
func (s NamespaceIDBoolSetting) Get(c *Collection) BoolPropertyFnWithNamespaceIDFilter
func (NamespaceIDBoolSetting) Key ¶
func (s NamespaceIDBoolSetting) Key() Key
func (NamespaceIDBoolSetting) Precedence ¶
func (s NamespaceIDBoolSetting) Precedence() Precedence
func (NamespaceIDBoolSetting) WithDefault ¶
func (s NamespaceIDBoolSetting) WithDefault(v bool) NamespaceIDBoolSetting
type NamespaceIDDurationSetting ¶ added in v1.25.0
func NewNamespaceIDDurationSetting ¶ added in v1.25.0
func NewNamespaceIDDurationSetting(key Key, def time.Duration, description string) NamespaceIDDurationSetting
func NewNamespaceIDDurationSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceIDDurationSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[time.Duration], description string) NamespaceIDDurationSetting
func (NamespaceIDDurationSetting) Get ¶
func (s NamespaceIDDurationSetting) Get(c *Collection) DurationPropertyFnWithNamespaceIDFilter
func (NamespaceIDDurationSetting) Key ¶
func (s NamespaceIDDurationSetting) Key() Key
func (NamespaceIDDurationSetting) Precedence ¶
func (s NamespaceIDDurationSetting) Precedence() Precedence
func (NamespaceIDDurationSetting) WithDefault ¶
func (s NamespaceIDDurationSetting) WithDefault(v time.Duration) NamespaceIDDurationSetting
type NamespaceIDFloatSetting ¶ added in v1.25.0
func NewNamespaceIDFloatSetting ¶ added in v1.25.0
func NewNamespaceIDFloatSetting(key Key, def float64, description string) NamespaceIDFloatSetting
func NewNamespaceIDFloatSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceIDFloatSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[float64], description string) NamespaceIDFloatSetting
func (NamespaceIDFloatSetting) Get ¶
func (s NamespaceIDFloatSetting) Get(c *Collection) FloatPropertyFnWithNamespaceIDFilter
func (NamespaceIDFloatSetting) Key ¶
func (s NamespaceIDFloatSetting) Key() Key
func (NamespaceIDFloatSetting) Precedence ¶
func (s NamespaceIDFloatSetting) Precedence() Precedence
func (NamespaceIDFloatSetting) WithDefault ¶
func (s NamespaceIDFloatSetting) WithDefault(v float64) NamespaceIDFloatSetting
type NamespaceIDIntSetting ¶ added in v1.25.0
func NewNamespaceIDIntSetting ¶ added in v1.25.0
func NewNamespaceIDIntSetting(key Key, def int, description string) NamespaceIDIntSetting
func NewNamespaceIDIntSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceIDIntSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[int], description string) NamespaceIDIntSetting
func (NamespaceIDIntSetting) Get ¶
func (s NamespaceIDIntSetting) Get(c *Collection) IntPropertyFnWithNamespaceIDFilter
func (NamespaceIDIntSetting) Key ¶
func (s NamespaceIDIntSetting) Key() Key
func (NamespaceIDIntSetting) Precedence ¶
func (s NamespaceIDIntSetting) Precedence() Precedence
func (NamespaceIDIntSetting) WithDefault ¶
func (s NamespaceIDIntSetting) WithDefault(v int) NamespaceIDIntSetting
type NamespaceIDMapSetting ¶ added in v1.25.0
func NewNamespaceIDMapSetting ¶ added in v1.25.0
func NewNamespaceIDMapSetting(key Key, def map[string]any, description string) NamespaceIDMapSetting
func NewNamespaceIDMapSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceIDMapSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[map[string]any], description string) NamespaceIDMapSetting
func (NamespaceIDMapSetting) Get ¶
func (s NamespaceIDMapSetting) Get(c *Collection) MapPropertyFnWithNamespaceIDFilter
func (NamespaceIDMapSetting) Key ¶
func (s NamespaceIDMapSetting) Key() Key
func (NamespaceIDMapSetting) Precedence ¶
func (s NamespaceIDMapSetting) Precedence() Precedence
func (NamespaceIDMapSetting) WithDefault ¶
func (s NamespaceIDMapSetting) WithDefault(v map[string]any) NamespaceIDMapSetting
type NamespaceIDStringSetting ¶ added in v1.25.0
func NewNamespaceIDStringSetting ¶ added in v1.25.0
func NewNamespaceIDStringSetting(key Key, def string, description string) NamespaceIDStringSetting
func NewNamespaceIDStringSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceIDStringSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[string], description string) NamespaceIDStringSetting
func (NamespaceIDStringSetting) Get ¶
func (s NamespaceIDStringSetting) Get(c *Collection) StringPropertyFnWithNamespaceIDFilter
func (NamespaceIDStringSetting) Key ¶
func (s NamespaceIDStringSetting) Key() Key
func (NamespaceIDStringSetting) Precedence ¶
func (s NamespaceIDStringSetting) Precedence() Precedence
func (NamespaceIDStringSetting) WithDefault ¶
func (s NamespaceIDStringSetting) WithDefault(v string) NamespaceIDStringSetting
type NamespaceIDTypedSetting ¶ added in v1.25.0
func NewNamespaceIDTypedSetting ¶ added in v1.25.0
func NewNamespaceIDTypedSetting[T any](key Key, def T, description string) NamespaceIDTypedSetting[T]
NewNamespaceIDTypedSetting creates a setting that uses mapstructure to handle complex structured values. The value from dynamic config will be copied over a shallow copy of 'def', which means 'def' must not contain any non-nil slices, maps, or pointers.
func NewNamespaceIDTypedSettingWithConverter ¶ added in v1.25.0
func NewNamespaceIDTypedSettingWithConverter[T any](key Key, convert func(any) (T, error), def T, description string) NamespaceIDTypedSetting[T]
NewNamespaceIDTypedSettingWithConverter creates a setting with a custom converter function.
func (NamespaceIDTypedSetting[T]) Get ¶ added in v1.25.0
func (s NamespaceIDTypedSetting[T]) Get(c *Collection) func(namespaceID string) T
func (NamespaceIDTypedSetting[T]) Key ¶ added in v1.25.0
func (s NamespaceIDTypedSetting[T]) Key() Key
func (NamespaceIDTypedSetting[T]) Precedence ¶ added in v1.25.0
func (s NamespaceIDTypedSetting[T]) Precedence() Precedence
func (NamespaceIDTypedSetting[T]) WithDefault ¶ added in v1.25.0
func (s NamespaceIDTypedSetting[T]) WithDefault(v T) NamespaceIDTypedSetting[T]
type NamespaceIntSetting ¶ added in v1.25.0
func NewNamespaceIntSetting ¶ added in v1.25.0
func NewNamespaceIntSetting(key Key, def int, description string) NamespaceIntSetting
func NewNamespaceIntSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceIntSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[int], description string) NamespaceIntSetting
func (NamespaceIntSetting) Get ¶
func (s NamespaceIntSetting) Get(c *Collection) IntPropertyFnWithNamespaceFilter
func (NamespaceIntSetting) Key ¶
func (s NamespaceIntSetting) Key() Key
func (NamespaceIntSetting) Precedence ¶
func (s NamespaceIntSetting) Precedence() Precedence
func (NamespaceIntSetting) WithDefault ¶
func (s NamespaceIntSetting) WithDefault(v int) NamespaceIntSetting
type NamespaceMapSetting ¶ added in v1.25.0
func NewNamespaceMapSetting ¶ added in v1.25.0
func NewNamespaceMapSetting(key Key, def map[string]any, description string) NamespaceMapSetting
func NewNamespaceMapSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceMapSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[map[string]any], description string) NamespaceMapSetting
func (NamespaceMapSetting) Get ¶
func (s NamespaceMapSetting) Get(c *Collection) MapPropertyFnWithNamespaceFilter
func (NamespaceMapSetting) Key ¶
func (s NamespaceMapSetting) Key() Key
func (NamespaceMapSetting) Precedence ¶
func (s NamespaceMapSetting) Precedence() Precedence
func (NamespaceMapSetting) WithDefault ¶
func (s NamespaceMapSetting) WithDefault(v map[string]any) NamespaceMapSetting
type NamespaceStringSetting ¶ added in v1.25.0
func NewNamespaceStringSetting ¶ added in v1.25.0
func NewNamespaceStringSetting(key Key, def string, description string) NamespaceStringSetting
func NewNamespaceStringSettingWithConstrainedDefault ¶ added in v1.25.0
func NewNamespaceStringSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[string], description string) NamespaceStringSetting
func (NamespaceStringSetting) Get ¶
func (s NamespaceStringSetting) Get(c *Collection) StringPropertyFnWithNamespaceFilter
func (NamespaceStringSetting) Key ¶
func (s NamespaceStringSetting) Key() Key
func (NamespaceStringSetting) Precedence ¶
func (s NamespaceStringSetting) Precedence() Precedence
func (NamespaceStringSetting) WithDefault ¶
func (s NamespaceStringSetting) WithDefault(v string) NamespaceStringSetting
type NamespaceTypedSetting ¶ added in v1.25.0
func NewNamespaceTypedSetting ¶ added in v1.25.0
func NewNamespaceTypedSetting[T any](key Key, def T, description string) NamespaceTypedSetting[T]
NewNamespaceTypedSetting creates a setting that uses mapstructure to handle complex structured values. The value from dynamic config will be copied over a shallow copy of 'def', which means 'def' must not contain any non-nil slices, maps, or pointers.
func NewNamespaceTypedSettingWithConverter ¶ added in v1.25.0
func NewNamespaceTypedSettingWithConverter[T any](key Key, convert func(any) (T, error), def T, description string) NamespaceTypedSetting[T]
NewNamespaceTypedSettingWithConverter creates a setting with a custom converter function.
func (NamespaceTypedSetting[T]) Get ¶ added in v1.25.0
func (s NamespaceTypedSetting[T]) Get(c *Collection) func(namespace string) T
func (NamespaceTypedSetting[T]) Key ¶ added in v1.25.0
func (s NamespaceTypedSetting[T]) Key() Key
func (NamespaceTypedSetting[T]) Precedence ¶ added in v1.25.0
func (s NamespaceTypedSetting[T]) Precedence() Precedence
func (NamespaceTypedSetting[T]) WithDefault ¶ added in v1.25.0
func (s NamespaceTypedSetting[T]) WithDefault(v T) NamespaceTypedSetting[T]
type Precedence ¶ added in v1.25.0
type Precedence int
Precedence is an enum for the search order precedence of a dynamic config setting. E.g., use the global value, check namespace then global, check task queue then namespace then global, etc.
const PrecedenceDestination Precedence = 6
const PrecedenceGlobal Precedence = 0
const PrecedenceNamespace Precedence = 1
const PrecedenceNamespaceID Precedence = 2
const PrecedenceShardID Precedence = 4
const PrecedenceTaskQueue Precedence = 3
const PrecedenceTaskType Precedence = 5
type ShardIDBoolSetting ¶ added in v1.25.0
func NewShardIDBoolSetting ¶ added in v1.25.0
func NewShardIDBoolSetting(key Key, def bool, description string) ShardIDBoolSetting
func NewShardIDBoolSettingWithConstrainedDefault ¶ added in v1.25.0
func NewShardIDBoolSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[bool], description string) ShardIDBoolSetting
func (ShardIDBoolSetting) Get ¶
func (s ShardIDBoolSetting) Get(c *Collection) BoolPropertyFnWithShardIDFilter
func (ShardIDBoolSetting) Key ¶
func (s ShardIDBoolSetting) Key() Key
func (ShardIDBoolSetting) Precedence ¶
func (s ShardIDBoolSetting) Precedence() Precedence
func (ShardIDBoolSetting) WithDefault ¶
func (s ShardIDBoolSetting) WithDefault(v bool) ShardIDBoolSetting
type ShardIDDurationSetting ¶ added in v1.25.0
func NewShardIDDurationSetting ¶ added in v1.25.0
func NewShardIDDurationSetting(key Key, def time.Duration, description string) ShardIDDurationSetting
func NewShardIDDurationSettingWithConstrainedDefault ¶ added in v1.25.0
func NewShardIDDurationSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[time.Duration], description string) ShardIDDurationSetting
func (ShardIDDurationSetting) Get ¶
func (s ShardIDDurationSetting) Get(c *Collection) DurationPropertyFnWithShardIDFilter
func (ShardIDDurationSetting) Key ¶
func (s ShardIDDurationSetting) Key() Key
func (ShardIDDurationSetting) Precedence ¶
func (s ShardIDDurationSetting) Precedence() Precedence
func (ShardIDDurationSetting) WithDefault ¶
func (s ShardIDDurationSetting) WithDefault(v time.Duration) ShardIDDurationSetting
type ShardIDFloatSetting ¶ added in v1.25.0
func NewShardIDFloatSetting ¶ added in v1.25.0
func NewShardIDFloatSetting(key Key, def float64, description string) ShardIDFloatSetting
func NewShardIDFloatSettingWithConstrainedDefault ¶ added in v1.25.0
func NewShardIDFloatSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[float64], description string) ShardIDFloatSetting
func (ShardIDFloatSetting) Get ¶
func (s ShardIDFloatSetting) Get(c *Collection) FloatPropertyFnWithShardIDFilter
func (ShardIDFloatSetting) Key ¶
func (s ShardIDFloatSetting) Key() Key
func (ShardIDFloatSetting) Precedence ¶
func (s ShardIDFloatSetting) Precedence() Precedence
func (ShardIDFloatSetting) WithDefault ¶
func (s ShardIDFloatSetting) WithDefault(v float64) ShardIDFloatSetting
type ShardIDIntSetting ¶ added in v1.25.0
func NewShardIDIntSetting ¶ added in v1.25.0
func NewShardIDIntSetting(key Key, def int, description string) ShardIDIntSetting
func NewShardIDIntSettingWithConstrainedDefault ¶ added in v1.25.0
func NewShardIDIntSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[int], description string) ShardIDIntSetting
func (ShardIDIntSetting) Get ¶
func (s ShardIDIntSetting) Get(c *Collection) IntPropertyFnWithShardIDFilter
func (ShardIDIntSetting) Key ¶
func (s ShardIDIntSetting) Key() Key
func (ShardIDIntSetting) Precedence ¶
func (s ShardIDIntSetting) Precedence() Precedence
func (ShardIDIntSetting) WithDefault ¶
func (s ShardIDIntSetting) WithDefault(v int) ShardIDIntSetting
type ShardIDMapSetting ¶ added in v1.25.0
func NewShardIDMapSetting ¶ added in v1.25.0
func NewShardIDMapSetting(key Key, def map[string]any, description string) ShardIDMapSetting
func NewShardIDMapSettingWithConstrainedDefault ¶ added in v1.25.0
func NewShardIDMapSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[map[string]any], description string) ShardIDMapSetting
func (ShardIDMapSetting) Get ¶
func (s ShardIDMapSetting) Get(c *Collection) MapPropertyFnWithShardIDFilter
func (ShardIDMapSetting) Key ¶
func (s ShardIDMapSetting) Key() Key
func (ShardIDMapSetting) Precedence ¶
func (s ShardIDMapSetting) Precedence() Precedence
func (ShardIDMapSetting) WithDefault ¶
func (s ShardIDMapSetting) WithDefault(v map[string]any) ShardIDMapSetting
type ShardIDStringSetting ¶ added in v1.25.0
func NewShardIDStringSetting ¶ added in v1.25.0
func NewShardIDStringSetting(key Key, def string, description string) ShardIDStringSetting
func NewShardIDStringSettingWithConstrainedDefault ¶ added in v1.25.0
func NewShardIDStringSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[string], description string) ShardIDStringSetting
func (ShardIDStringSetting) Get ¶
func (s ShardIDStringSetting) Get(c *Collection) StringPropertyFnWithShardIDFilter
func (ShardIDStringSetting) Key ¶
func (s ShardIDStringSetting) Key() Key
func (ShardIDStringSetting) Precedence ¶
func (s ShardIDStringSetting) Precedence() Precedence
func (ShardIDStringSetting) WithDefault ¶
func (s ShardIDStringSetting) WithDefault(v string) ShardIDStringSetting
type ShardIDTypedSetting ¶ added in v1.25.0
func NewShardIDTypedSetting ¶ added in v1.25.0
func NewShardIDTypedSetting[T any](key Key, def T, description string) ShardIDTypedSetting[T]
NewShardIDTypedSetting creates a setting that uses mapstructure to handle complex structured values. The value from dynamic config will be copied over a shallow copy of 'def', which means 'def' must not contain any non-nil slices, maps, or pointers.
func NewShardIDTypedSettingWithConverter ¶ added in v1.25.0
func NewShardIDTypedSettingWithConverter[T any](key Key, convert func(any) (T, error), def T, description string) ShardIDTypedSetting[T]
NewShardIDTypedSettingWithConverter creates a setting with a custom converter function.
func (ShardIDTypedSetting[T]) Get ¶ added in v1.25.0
func (s ShardIDTypedSetting[T]) Get(c *Collection) func(shardID int32) T
func (ShardIDTypedSetting[T]) Key ¶ added in v1.25.0
func (s ShardIDTypedSetting[T]) Key() Key
func (ShardIDTypedSetting[T]) Precedence ¶ added in v1.25.0
func (s ShardIDTypedSetting[T]) Precedence() Precedence
func (ShardIDTypedSetting[T]) WithDefault ¶ added in v1.25.0
func (s ShardIDTypedSetting[T]) WithDefault(v T) ShardIDTypedSetting[T]
type StaticClient ¶ added in v1.18.0
StaticClient is a simple implementation of Client that just looks up in a map. Values can be either plain values or []ConstrainedValue for a constrained value.
func (StaticClient) GetValue ¶ added in v1.18.0
func (s StaticClient) GetValue(key Key) []ConstrainedValue
type StringPropertyFn ¶
type StringPropertyFn func() string
func GetStringPropertyFn ¶
func GetStringPropertyFn(value string) StringPropertyFn
type StringPropertyFnWithDestinationFilter ¶ added in v1.24.0
func GetStringPropertyFnFilteredByDestination ¶ added in v1.25.0
func GetStringPropertyFnFilteredByDestination(value string) StringPropertyFnWithDestinationFilter
type StringPropertyFnWithNamespaceFilter ¶
func GetStringPropertyFnFilteredByNamespace ¶ added in v1.25.0
func GetStringPropertyFnFilteredByNamespace(value string) StringPropertyFnWithNamespaceFilter
type StringPropertyFnWithNamespaceIDFilter ¶ added in v1.21.0
func GetStringPropertyFnFilteredByNamespaceID ¶ added in v1.25.0
func GetStringPropertyFnFilteredByNamespaceID(value string) StringPropertyFnWithNamespaceIDFilter
type StringPropertyFnWithShardIDFilter ¶ added in v1.25.0
func GetStringPropertyFnFilteredByShardID ¶ added in v1.25.0
func GetStringPropertyFnFilteredByShardID(value string) StringPropertyFnWithShardIDFilter
type StringPropertyFnWithTaskQueueFilter ¶ added in v1.25.0
type StringPropertyFnWithTaskQueueFilter func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType) string
func GetStringPropertyFnFilteredByTaskQueue ¶ added in v1.25.0
func GetStringPropertyFnFilteredByTaskQueue(value string) StringPropertyFnWithTaskQueueFilter
type StringPropertyFnWithTaskTypeFilter ¶ added in v1.25.0
func GetStringPropertyFnFilteredByTaskType ¶ added in v1.25.0
func GetStringPropertyFnFilteredByTaskType(value string) StringPropertyFnWithTaskTypeFilter
type TaskQueueBoolSetting ¶ added in v1.25.0
type TaskQueueBoolSetting setting[bool, func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType)]
func NewTaskQueueBoolSetting ¶ added in v1.25.0
func NewTaskQueueBoolSetting(key Key, def bool, description string) TaskQueueBoolSetting
func NewTaskQueueBoolSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskQueueBoolSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[bool], description string) TaskQueueBoolSetting
func (TaskQueueBoolSetting) Get ¶
func (s TaskQueueBoolSetting) Get(c *Collection) BoolPropertyFnWithTaskQueueFilter
func (TaskQueueBoolSetting) Key ¶
func (s TaskQueueBoolSetting) Key() Key
func (TaskQueueBoolSetting) Precedence ¶
func (s TaskQueueBoolSetting) Precedence() Precedence
func (TaskQueueBoolSetting) WithDefault ¶
func (s TaskQueueBoolSetting) WithDefault(v bool) TaskQueueBoolSetting
type TaskQueueDurationSetting ¶ added in v1.25.0
type TaskQueueDurationSetting setting[time.Duration, func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType)]
func NewTaskQueueDurationSetting ¶ added in v1.25.0
func NewTaskQueueDurationSetting(key Key, def time.Duration, description string) TaskQueueDurationSetting
func NewTaskQueueDurationSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskQueueDurationSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[time.Duration], description string) TaskQueueDurationSetting
func (TaskQueueDurationSetting) Get ¶
func (s TaskQueueDurationSetting) Get(c *Collection) DurationPropertyFnWithTaskQueueFilter
func (TaskQueueDurationSetting) Key ¶
func (s TaskQueueDurationSetting) Key() Key
func (TaskQueueDurationSetting) Precedence ¶
func (s TaskQueueDurationSetting) Precedence() Precedence
func (TaskQueueDurationSetting) WithDefault ¶
func (s TaskQueueDurationSetting) WithDefault(v time.Duration) TaskQueueDurationSetting
type TaskQueueFloatSetting ¶ added in v1.25.0
type TaskQueueFloatSetting setting[float64, func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType)]
func NewTaskQueueFloatSetting ¶ added in v1.25.0
func NewTaskQueueFloatSetting(key Key, def float64, description string) TaskQueueFloatSetting
func NewTaskQueueFloatSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskQueueFloatSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[float64], description string) TaskQueueFloatSetting
func (TaskQueueFloatSetting) Get ¶
func (s TaskQueueFloatSetting) Get(c *Collection) FloatPropertyFnWithTaskQueueFilter
func (TaskQueueFloatSetting) Key ¶
func (s TaskQueueFloatSetting) Key() Key
func (TaskQueueFloatSetting) Precedence ¶
func (s TaskQueueFloatSetting) Precedence() Precedence
func (TaskQueueFloatSetting) WithDefault ¶
func (s TaskQueueFloatSetting) WithDefault(v float64) TaskQueueFloatSetting
type TaskQueueIntSetting ¶ added in v1.25.0
type TaskQueueIntSetting setting[int, func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType)]
func NewTaskQueueIntSetting ¶ added in v1.25.0
func NewTaskQueueIntSetting(key Key, def int, description string) TaskQueueIntSetting
func NewTaskQueueIntSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskQueueIntSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[int], description string) TaskQueueIntSetting
func (TaskQueueIntSetting) Get ¶
func (s TaskQueueIntSetting) Get(c *Collection) IntPropertyFnWithTaskQueueFilter
func (TaskQueueIntSetting) Key ¶
func (s TaskQueueIntSetting) Key() Key
func (TaskQueueIntSetting) Precedence ¶
func (s TaskQueueIntSetting) Precedence() Precedence
func (TaskQueueIntSetting) WithDefault ¶
func (s TaskQueueIntSetting) WithDefault(v int) TaskQueueIntSetting
type TaskQueueMapSetting ¶ added in v1.25.0
type TaskQueueMapSetting setting[map[string]any, func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType)]
func NewTaskQueueMapSetting ¶ added in v1.25.0
func NewTaskQueueMapSetting(key Key, def map[string]any, description string) TaskQueueMapSetting
func NewTaskQueueMapSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskQueueMapSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[map[string]any], description string) TaskQueueMapSetting
func (TaskQueueMapSetting) Get ¶
func (s TaskQueueMapSetting) Get(c *Collection) MapPropertyFnWithTaskQueueFilter
func (TaskQueueMapSetting) Key ¶
func (s TaskQueueMapSetting) Key() Key
func (TaskQueueMapSetting) Precedence ¶
func (s TaskQueueMapSetting) Precedence() Precedence
func (TaskQueueMapSetting) WithDefault ¶
func (s TaskQueueMapSetting) WithDefault(v map[string]any) TaskQueueMapSetting
type TaskQueueStringSetting ¶ added in v1.25.0
type TaskQueueStringSetting setting[string, func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType)]
func NewTaskQueueStringSetting ¶ added in v1.25.0
func NewTaskQueueStringSetting(key Key, def string, description string) TaskQueueStringSetting
func NewTaskQueueStringSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskQueueStringSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[string], description string) TaskQueueStringSetting
func (TaskQueueStringSetting) Get ¶
func (s TaskQueueStringSetting) Get(c *Collection) StringPropertyFnWithTaskQueueFilter
func (TaskQueueStringSetting) Key ¶
func (s TaskQueueStringSetting) Key() Key
func (TaskQueueStringSetting) Precedence ¶
func (s TaskQueueStringSetting) Precedence() Precedence
func (TaskQueueStringSetting) WithDefault ¶
func (s TaskQueueStringSetting) WithDefault(v string) TaskQueueStringSetting
type TaskQueueTypedSetting ¶ added in v1.25.0
type TaskQueueTypedSetting[T any] setting[T, func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType)]
func NewTaskQueueTypedSetting ¶ added in v1.25.0
func NewTaskQueueTypedSetting[T any](key Key, def T, description string) TaskQueueTypedSetting[T]
NewTaskQueueTypedSetting creates a setting that uses mapstructure to handle complex structured values. The value from dynamic config will be copied over a shallow copy of 'def', which means 'def' must not contain any non-nil slices, maps, or pointers.
func NewTaskQueueTypedSettingWithConverter ¶ added in v1.25.0
func NewTaskQueueTypedSettingWithConverter[T any](key Key, convert func(any) (T, error), def T, description string) TaskQueueTypedSetting[T]
NewTaskQueueTypedSettingWithConverter creates a setting with a custom converter function.
func (TaskQueueTypedSetting[T]) Get ¶ added in v1.25.0
func (s TaskQueueTypedSetting[T]) Get(c *Collection) func(namespace string, taskQueue string, taskQueueType enumspb.TaskQueueType) T
func (TaskQueueTypedSetting[T]) Key ¶ added in v1.25.0
func (s TaskQueueTypedSetting[T]) Key() Key
func (TaskQueueTypedSetting[T]) Precedence ¶ added in v1.25.0
func (s TaskQueueTypedSetting[T]) Precedence() Precedence
func (TaskQueueTypedSetting[T]) WithDefault ¶ added in v1.25.0
func (s TaskQueueTypedSetting[T]) WithDefault(v T) TaskQueueTypedSetting[T]
type TaskTypeBoolSetting ¶ added in v1.25.0
func NewTaskTypeBoolSetting ¶ added in v1.25.0
func NewTaskTypeBoolSetting(key Key, def bool, description string) TaskTypeBoolSetting
func NewTaskTypeBoolSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskTypeBoolSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[bool], description string) TaskTypeBoolSetting
func (TaskTypeBoolSetting) Get ¶
func (s TaskTypeBoolSetting) Get(c *Collection) BoolPropertyFnWithTaskTypeFilter
func (TaskTypeBoolSetting) Key ¶
func (s TaskTypeBoolSetting) Key() Key
func (TaskTypeBoolSetting) Precedence ¶
func (s TaskTypeBoolSetting) Precedence() Precedence
func (TaskTypeBoolSetting) WithDefault ¶
func (s TaskTypeBoolSetting) WithDefault(v bool) TaskTypeBoolSetting
type TaskTypeDurationSetting ¶ added in v1.25.0
func NewTaskTypeDurationSetting ¶ added in v1.25.0
func NewTaskTypeDurationSetting(key Key, def time.Duration, description string) TaskTypeDurationSetting
func NewTaskTypeDurationSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskTypeDurationSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[time.Duration], description string) TaskTypeDurationSetting
func (TaskTypeDurationSetting) Get ¶
func (s TaskTypeDurationSetting) Get(c *Collection) DurationPropertyFnWithTaskTypeFilter
func (TaskTypeDurationSetting) Key ¶
func (s TaskTypeDurationSetting) Key() Key
func (TaskTypeDurationSetting) Precedence ¶
func (s TaskTypeDurationSetting) Precedence() Precedence
func (TaskTypeDurationSetting) WithDefault ¶
func (s TaskTypeDurationSetting) WithDefault(v time.Duration) TaskTypeDurationSetting
type TaskTypeFloatSetting ¶ added in v1.25.0
func NewTaskTypeFloatSetting ¶ added in v1.25.0
func NewTaskTypeFloatSetting(key Key, def float64, description string) TaskTypeFloatSetting
func NewTaskTypeFloatSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskTypeFloatSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[float64], description string) TaskTypeFloatSetting
func (TaskTypeFloatSetting) Get ¶
func (s TaskTypeFloatSetting) Get(c *Collection) FloatPropertyFnWithTaskTypeFilter
func (TaskTypeFloatSetting) Key ¶
func (s TaskTypeFloatSetting) Key() Key
func (TaskTypeFloatSetting) Precedence ¶
func (s TaskTypeFloatSetting) Precedence() Precedence
func (TaskTypeFloatSetting) WithDefault ¶
func (s TaskTypeFloatSetting) WithDefault(v float64) TaskTypeFloatSetting
type TaskTypeIntSetting ¶ added in v1.25.0
func NewTaskTypeIntSetting ¶ added in v1.25.0
func NewTaskTypeIntSetting(key Key, def int, description string) TaskTypeIntSetting
func NewTaskTypeIntSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskTypeIntSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[int], description string) TaskTypeIntSetting
func (TaskTypeIntSetting) Get ¶
func (s TaskTypeIntSetting) Get(c *Collection) IntPropertyFnWithTaskTypeFilter
func (TaskTypeIntSetting) Key ¶
func (s TaskTypeIntSetting) Key() Key
func (TaskTypeIntSetting) Precedence ¶
func (s TaskTypeIntSetting) Precedence() Precedence
func (TaskTypeIntSetting) WithDefault ¶
func (s TaskTypeIntSetting) WithDefault(v int) TaskTypeIntSetting
type TaskTypeMapSetting ¶ added in v1.25.0
func NewTaskTypeMapSetting ¶ added in v1.25.0
func NewTaskTypeMapSetting(key Key, def map[string]any, description string) TaskTypeMapSetting
func NewTaskTypeMapSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskTypeMapSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[map[string]any], description string) TaskTypeMapSetting
func (TaskTypeMapSetting) Get ¶
func (s TaskTypeMapSetting) Get(c *Collection) MapPropertyFnWithTaskTypeFilter
func (TaskTypeMapSetting) Key ¶
func (s TaskTypeMapSetting) Key() Key
func (TaskTypeMapSetting) Precedence ¶
func (s TaskTypeMapSetting) Precedence() Precedence
func (TaskTypeMapSetting) WithDefault ¶
func (s TaskTypeMapSetting) WithDefault(v map[string]any) TaskTypeMapSetting
type TaskTypeStringSetting ¶ added in v1.25.0
func NewTaskTypeStringSetting ¶ added in v1.25.0
func NewTaskTypeStringSetting(key Key, def string, description string) TaskTypeStringSetting
func NewTaskTypeStringSettingWithConstrainedDefault ¶ added in v1.25.0
func NewTaskTypeStringSettingWithConstrainedDefault(key Key, cdef []TypedConstrainedValue[string], description string) TaskTypeStringSetting
func (TaskTypeStringSetting) Get ¶
func (s TaskTypeStringSetting) Get(c *Collection) StringPropertyFnWithTaskTypeFilter
func (TaskTypeStringSetting) Key ¶
func (s TaskTypeStringSetting) Key() Key
func (TaskTypeStringSetting) Precedence ¶
func (s TaskTypeStringSetting) Precedence() Precedence
func (TaskTypeStringSetting) WithDefault ¶
func (s TaskTypeStringSetting) WithDefault(v string) TaskTypeStringSetting
type TaskTypeTypedSetting ¶ added in v1.25.0
func NewTaskTypeTypedSetting ¶ added in v1.25.0
func NewTaskTypeTypedSetting[T any](key Key, def T, description string) TaskTypeTypedSetting[T]
NewTaskTypeTypedSetting creates a setting that uses mapstructure to handle complex structured values. The value from dynamic config will be copied over a shallow copy of 'def', which means 'def' must not contain any non-nil slices, maps, or pointers.
func NewTaskTypeTypedSettingWithConverter ¶ added in v1.25.0
func NewTaskTypeTypedSettingWithConverter[T any](key Key, convert func(any) (T, error), def T, description string) TaskTypeTypedSetting[T]
NewTaskTypeTypedSettingWithConverter creates a setting with a custom converter function.
func (TaskTypeTypedSetting[T]) Get ¶ added in v1.25.0
func (s TaskTypeTypedSetting[T]) Get(c *Collection) func(taskType enumsspb.TaskType) T
func (TaskTypeTypedSetting[T]) Key ¶ added in v1.25.0
func (s TaskTypeTypedSetting[T]) Key() Key
func (TaskTypeTypedSetting[T]) Precedence ¶ added in v1.25.0
func (s TaskTypeTypedSetting[T]) Precedence() Precedence
func (TaskTypeTypedSetting[T]) WithDefault ¶ added in v1.25.0
func (s TaskTypeTypedSetting[T]) WithDefault(v T) TaskTypeTypedSetting[T]
type TypedConstrainedValue ¶ added in v1.25.0
type TypedConstrainedValue[T any] struct { Constraints Constraints Value T }