Documentation ¶
Index ¶
- Variables
- func NewExecutionPriorityRateLimiter(rateBurstFn quotas.RateBurst) quotas.RequestRateLimiter
- func NewNamespaceReplicationInducingAPIPriorityRateLimiter(rateBurstFn quotas.RateBurst) quotas.RequestRateLimiter
- func NewOtherAPIPriorityRateLimiter(rateBurstFn quotas.RateBurst) quotas.RequestRateLimiter
- func NewRequestToRateLimiter(executionRateBurstFn quotas.RateBurst, visibilityRateBurstFn quotas.RateBurst, ...) quotas.RequestRateLimiter
- func NewVisibilityPriorityRateLimiter(rateBurstFn quotas.RateBurst) quotas.RequestRateLimiter
- type NamespaceRateBurstImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExecutionAPICountLimitOverride = map[string]int{ "PollActivityTaskQueue": 1, "PollWorkflowTaskQueue": 1, "QueryWorkflow": 1, "UpdateWorkflowExecution": 1, "GetWorkflowExecutionHistory": 1, } ExecutionAPIToPriority = map[string]int{ "StartWorkflowExecution": 0, "SignalWithStartWorkflowExecution": 0, "SignalWorkflowExecution": 0, "RequestCancelWorkflowExecution": 0, "TerminateWorkflowExecution": 0, "GetWorkflowExecutionHistory": 0, "UpdateWorkflowExecution": 0, "PollWorkflowExecutionUpdate": 0, "RecordActivityTaskHeartbeat": 1, "RecordActivityTaskHeartbeatById": 1, "RespondActivityTaskCanceled": 1, "RespondActivityTaskCanceledById": 1, "RespondActivityTaskFailed": 1, "RespondActivityTaskFailedById": 1, "RespondActivityTaskCompleted": 1, "RespondActivityTaskCompletedById": 1, "RespondWorkflowTaskCompleted": 1, "ResetWorkflowExecution": 2, "DescribeWorkflowExecution": 2, "RespondWorkflowTaskFailed": 2, "QueryWorkflow": 2, "RespondQueryTaskCompleted": 2, "PollWorkflowTaskQueue": 2, "PollActivityTaskQueue": 2, "GetWorkflowExecutionHistoryReverse": 2, "GetWorkerBuildIdCompatibility": 2, "GetWorkerTaskReachability": 2, "DeleteWorkflowExecution": 2, "ResetStickyTaskQueue": 3, "DescribeTaskQueue": 3, "ListTaskQueuePartitions": 3, } ExecutionAPIPrioritiesOrdered = []int{0, 1, 2, 3} VisibilityAPIToPriority = map[string]int{ "CountWorkflowExecutions": 0, "ScanWorkflowExecutions": 0, "ListOpenWorkflowExecutions": 0, "ListClosedWorkflowExecutions": 0, "ListWorkflowExecutions": 0, "ListArchivedWorkflowExecutions": 0, } VisibilityAPIPrioritiesOrdered = []int{0} // Special rate limiting for APIs that may insert replication tasks into a namespace replication queue. // The replication queue is used to propagate critical failover messages and this mapping prevents flooding the // queue and delaying failover. NamespaceReplicationInducingAPIToPriority = map[string]int{ "RegisterNamespace": 0, "UpdateNamespace": 0, "UpdateWorkerBuildIdCompatibility": 1, } NamespaceReplicationInducingAPIPrioritiesOrdered = []int{0, 1} OtherAPIToPriority = map[string]int{ "GetClusterInfo": 0, "GetSystemInfo": 0, "GetSearchAttributes": 0, "DescribeNamespace": 0, "ListNamespaces": 0, "DeprecateNamespace": 0, "CreateSchedule": 0, "DescribeSchedule": 0, "UpdateSchedule": 0, "PatchSchedule": 0, "ListScheduleMatchingTimes": 0, "DeleteSchedule": 0, "ListSchedules": 0, "DescribeBatchOperation": 0, "ListBatchOperations": 0, "StartBatchOperation": 0, "StopBatchOperation": 0, } OtherAPIPrioritiesOrdered = []int{0} )
Functions ¶
func NewExecutionPriorityRateLimiter ¶
func NewExecutionPriorityRateLimiter( rateBurstFn quotas.RateBurst, ) quotas.RequestRateLimiter
func NewNamespaceReplicationInducingAPIPriorityRateLimiter ¶ added in v1.21.0
func NewNamespaceReplicationInducingAPIPriorityRateLimiter( rateBurstFn quotas.RateBurst, ) quotas.RequestRateLimiter
func NewOtherAPIPriorityRateLimiter ¶
func NewOtherAPIPriorityRateLimiter( rateBurstFn quotas.RateBurst, ) quotas.RequestRateLimiter
func NewRequestToRateLimiter ¶
func NewVisibilityPriorityRateLimiter ¶
func NewVisibilityPriorityRateLimiter( rateBurstFn quotas.RateBurst, ) quotas.RequestRateLimiter
Types ¶
type NamespaceRateBurstImpl ¶ added in v1.14.4
type NamespaceRateBurstImpl struct {
// contains filtered or unexported fields
}
func NewNamespaceRateBurst ¶ added in v1.14.0
func NewNamespaceRateBurst( namespaceName string, rateFn dynamicconfig.FloatPropertyFnWithNamespaceFilter, burstFn dynamicconfig.IntPropertyFnWithNamespaceFilter, ) *NamespaceRateBurstImpl
func (*NamespaceRateBurstImpl) Burst ¶ added in v1.14.4
func (c *NamespaceRateBurstImpl) Burst() int
func (*NamespaceRateBurstImpl) Rate ¶ added in v1.14.4
func (c *NamespaceRateBurstImpl) Rate() float64
Click to show internal directories.
Click to hide internal directories.