service

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 43

Documentation

Index

Constants

View Source
const (

	// Frontend is the name of the frontend service
	Frontend = "cadence-frontend"
	// History is the name of the history service
	History = "cadence-history"
	// Matching is the name of the matching service
	Matching = "cadence-matching"
	// Worker is the name of the worker service
	Worker = "cadence-worker"
	// ShardDistributor is the name of the shard distributor service
	ShardDistributor = "cadence-shard-distributor"
)

Variables

List contains the list of all cadence services

View Source
var ListWithRing = []string{Frontend, History, Matching, Worker}

ListWithRing contains the list of all cadence services that has a hash ring

Functions

func FullName added in v0.24.0

func FullName(name string) string

FullName returns cadence service name with "cadence-" prefix

func GetMetricsServiceIdx added in v0.5.0

func GetMetricsServiceIdx(serviceName string, logger log.Logger) metrics.ServiceIdx

GetMetricsServiceIdx returns the metrics name

func ShortName added in v0.24.0

func ShortName(name string) string

ShortName returns cadence service name without "cadence-" prefix

func ShortNames added in v0.24.0

func ShortNames(names []string) []string

Types

type Config added in v0.24.0

type Config struct {
	PersistenceMaxQPS       dynamicproperties.IntPropertyFn
	PersistenceGlobalMaxQPS dynamicproperties.IntPropertyFn
	ThrottledLoggerMaxRPS   dynamicproperties.IntPropertyFn

	// WriteVisibilityStoreName is the write mode of visibility
	WriteVisibilityStoreName dynamicproperties.StringPropertyFn
	// EnableLogCustomerQueryParameter is to enable log customer parameters
	EnableLogCustomerQueryParameter dynamicproperties.BoolPropertyFnWithDomainFilter
	// ReadVisibilityStoreName is the read store for visibility
	ReadVisibilityStoreName dynamicproperties.StringPropertyFnWithDomainFilter

	// configs for db visibility
	EnableDBVisibilitySampling                  dynamicproperties.BoolPropertyFn                `yaml:"-" json:"-"`
	EnableReadDBVisibilityFromClosedExecutionV2 dynamicproperties.BoolPropertyFn                `yaml:"-" json:"-"`
	WriteDBVisibilityOpenMaxQPS                 dynamicproperties.IntPropertyFnWithDomainFilter `yaml:"-" json:"-"`
	WriteDBVisibilityClosedMaxQPS               dynamicproperties.IntPropertyFnWithDomainFilter `yaml:"-" json:"-"`
	DBVisibilityListMaxQPS                      dynamicproperties.IntPropertyFnWithDomainFilter `yaml:"-" json:"-"`

	// configs for es visibility
	ESIndexMaxResultWindow          dynamicproperties.IntPropertyFn `yaml:"-" json:"-"`
	ValidSearchAttributes           dynamicproperties.MapPropertyFn `yaml:"-" json:"-"`
	PinotOptimizedQueryColumns      dynamicproperties.MapPropertyFn `yaml:"-" json:"-"`
	SearchAttributesHiddenValueKeys dynamicproperties.MapPropertyFn `yaml:"-" json:"-"`
	// deprecated: never read from, all ES reads and writes erroneously use PersistenceMaxQPS
	ESVisibilityListMaxQPS dynamicproperties.IntPropertyFnWithDomainFilter `yaml:"-" json:"-"`

	IsErrorRetryableFunction backoff.IsRetryable
}

Config is a subset of the service dynamic config for single service

Jump to

Keyboard shortcuts

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