configs

package
v1.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExecutionAPICountLimitOverride = map[string]int{
		"PollActivityTaskQueue": 1,
		"PollWorkflowTaskQueue": 1,
	}

	ExecutionAPIToPriority = map[string]int{

		"StartWorkflowExecution":           0,
		"SignalWithStartWorkflowExecution": 0,
		"SignalWorkflowExecution":          0,
		"RequestCancelWorkflowExecution":   0,
		"TerminateWorkflowExecution":       0,
		"GetWorkflowExecutionHistory":      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,

		"ResetStickyTaskQueue":    3,
		"DescribeTaskQueue":       3,
		"ListTaskQueuePartitions": 3,
	}

	ExecutionAPIPriorities = map[int]struct{}{
		0: {},
		1: {},
		2: {},
		3: {},
	}

	VisibilityAPIToPriority = map[string]int{
		"CountWorkflowExecutions":        0,
		"ScanWorkflowExecutions":         0,
		"ListOpenWorkflowExecutions":     0,
		"ListClosedWorkflowExecutions":   0,
		"ListWorkflowExecutions":         0,
		"ListArchivedWorkflowExecutions": 0,
	}

	VisibilityAPIPriorities = map[int]struct{}{
		0: {},
	}

	OtherAPIToPriority = map[string]int{
		"GetClusterInfo":      0,
		"GetSearchAttributes": 0,

		"RegisterNamespace":  0,
		"UpdateNamespace":    0,
		"DescribeNamespace":  0,
		"ListNamespaces":     0,
		"DeprecateNamespace": 0,
	}

	OtherAPIPriorities = map[int]struct{}{
		0: {},
	}
)

Functions

func NewExecutionPriorityRateLimiter

func NewExecutionPriorityRateLimiter(
	rateFn quotas.RateFn,
) quotas.RequestRateLimiter

func NewOtherAPIPriorityRateLimiter

func NewOtherAPIPriorityRateLimiter(
	rateFn quotas.RateFn,
) quotas.RequestRateLimiter

func NewRequestToRateLimiter

func NewRequestToRateLimiter(
	rateFn quotas.RateFn,
) quotas.RequestRateLimiter

func NewVisibilityPriorityRateLimiter

func NewVisibilityPriorityRateLimiter(
	rateFn quotas.RateFn,
) quotas.RequestRateLimiter

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL