service

package
v1.2.14-prerelease11 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 5 Imported by: 19

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"
	// ShardManager is the name of the shard manager service
	ShardManager = "cadence-shard-manager"
)

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       dynamicconfig.IntPropertyFn
	PersistenceGlobalMaxQPS dynamicconfig.IntPropertyFn
	ThrottledLoggerMaxRPS   dynamicconfig.IntPropertyFn

	// EnableReadVisibilityFromES is the read mode of visibility
	EnableReadVisibilityFromES dynamicconfig.BoolPropertyFnWithDomainFilter
	// AdvancedVisibilityWritingMode is the write mode of visibility
	AdvancedVisibilityWritingMode dynamicconfig.StringPropertyFn
	// AdvancedVisibilityWritingMode is the write mode of visibility during migration
	AdvancedVisibilityMigrationWritingMode dynamicconfig.StringPropertyFn
	// EnableReadVisibilityFromPinot is the read mode of visibility
	EnableReadVisibilityFromPinot dynamicconfig.BoolPropertyFnWithDomainFilter
	// EnableVisibilityDoubleRead is to enable double read for a latency comparison
	EnableVisibilityDoubleRead dynamicconfig.BoolPropertyFnWithDomainFilter
	// EnableLogCustomerQueryParameter is to enable log customer parameters
	EnableLogCustomerQueryParameter dynamicconfig.BoolPropertyFnWithDomainFilter

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

	// configs for es visibility
	ESIndexMaxResultWindow dynamicconfig.IntPropertyFn `yaml:"-" json:"-"`
	ValidSearchAttributes  dynamicconfig.MapPropertyFn `yaml:"-" json:"-"`
	// deprecated: never read from, all ES reads and writes erroneously use PersistenceMaxQPS
	ESVisibilityListMaxQPS dynamicconfig.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