Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { NumHistoryShards int IsAdvancedVisConfigExist bool DomainConfig domain.Config PersistenceMaxQPS dynamicconfig.IntPropertyFn PersistenceGlobalMaxQPS dynamicconfig.IntPropertyFn VisibilityMaxPageSize dynamicconfig.IntPropertyFnWithDomainFilter EnableVisibilitySampling dynamicconfig.BoolPropertyFn EnableReadFromClosedExecutionV2 dynamicconfig.BoolPropertyFn // deprecated: never used for ratelimiting, only sampling-based failure injection, and only on database-based visibility VisibilityListMaxQPS dynamicconfig.IntPropertyFnWithDomainFilter EnableReadVisibilityFromES dynamicconfig.BoolPropertyFnWithDomainFilter EnableReadVisibilityFromPinot dynamicconfig.BoolPropertyFnWithDomainFilter EnableVisibilityDoubleRead dynamicconfig.BoolPropertyFnWithDomainFilter EnableLogCustomerQueryParameter dynamicconfig.BoolPropertyFnWithDomainFilter // deprecated: never read from ESVisibilityListMaxQPS dynamicconfig.IntPropertyFnWithDomainFilter ESIndexMaxResultWindow dynamicconfig.IntPropertyFn HistoryMaxPageSize dynamicconfig.IntPropertyFnWithDomainFilter UserRPS dynamicconfig.IntPropertyFn WorkerRPS dynamicconfig.IntPropertyFn VisibilityRPS dynamicconfig.IntPropertyFn AsyncRPS dynamicconfig.IntPropertyFn MaxDomainUserRPSPerInstance dynamicconfig.IntPropertyFnWithDomainFilter MaxDomainWorkerRPSPerInstance dynamicconfig.IntPropertyFnWithDomainFilter MaxDomainVisibilityRPSPerInstance dynamicconfig.IntPropertyFnWithDomainFilter MaxDomainAsyncRPSPerInstance dynamicconfig.IntPropertyFnWithDomainFilter GlobalDomainUserRPS dynamicconfig.IntPropertyFnWithDomainFilter GlobalDomainWorkerRPS dynamicconfig.IntPropertyFnWithDomainFilter GlobalDomainVisibilityRPS dynamicconfig.IntPropertyFnWithDomainFilter GlobalDomainAsyncRPS dynamicconfig.IntPropertyFnWithDomainFilter EnableClientVersionCheck dynamicconfig.BoolPropertyFn EnableQueryAttributeValidation dynamicconfig.BoolPropertyFn DisallowQuery dynamicconfig.BoolPropertyFnWithDomainFilter ShutdownDrainDuration dynamicconfig.DurationPropertyFn Lockdown dynamicconfig.BoolPropertyFnWithDomainFilter // isolation configuration EnableTasklistIsolation dynamicconfig.BoolPropertyFnWithDomainFilter // id length limits MaxIDLengthWarnLimit dynamicconfig.IntPropertyFn DomainNameMaxLength dynamicconfig.IntPropertyFnWithDomainFilter IdentityMaxLength dynamicconfig.IntPropertyFnWithDomainFilter WorkflowIDMaxLength dynamicconfig.IntPropertyFnWithDomainFilter SignalNameMaxLength dynamicconfig.IntPropertyFnWithDomainFilter WorkflowTypeMaxLength dynamicconfig.IntPropertyFnWithDomainFilter RequestIDMaxLength dynamicconfig.IntPropertyFnWithDomainFilter TaskListNameMaxLength dynamicconfig.IntPropertyFnWithDomainFilter // Persistence settings HistoryMgrNumConns dynamicconfig.IntPropertyFn // security protection settings EnableAdminProtection dynamicconfig.BoolPropertyFn AdminOperationToken dynamicconfig.StringPropertyFn DisableListVisibilityByFilter dynamicconfig.BoolPropertyFnWithDomainFilter // size limit system protection BlobSizeLimitError dynamicconfig.IntPropertyFnWithDomainFilter BlobSizeLimitWarn dynamicconfig.IntPropertyFnWithDomainFilter ThrottledLogRPS dynamicconfig.IntPropertyFn // Domain specific config EnableDomainNotActiveAutoForwarding dynamicconfig.BoolPropertyFnWithDomainFilter EnableGracefulFailover dynamicconfig.BoolPropertyFn DomainFailoverRefreshInterval dynamicconfig.DurationPropertyFn DomainFailoverRefreshTimerJitterCoefficient dynamicconfig.FloatPropertyFn // ValidSearchAttributes is legal indexed keys that can be used in list APIs ValidSearchAttributes dynamicconfig.MapPropertyFn SearchAttributesNumberOfKeysLimit dynamicconfig.IntPropertyFnWithDomainFilter SearchAttributesSizeOfValueLimit dynamicconfig.IntPropertyFnWithDomainFilter SearchAttributesTotalSizeLimit dynamicconfig.IntPropertyFnWithDomainFilter // VisibilityArchival system protection VisibilityArchivalQueryMaxPageSize dynamicconfig.IntPropertyFn SendRawWorkflowHistory dynamicconfig.BoolPropertyFnWithDomainFilter // max number of decisions per RespondDecisionTaskCompleted request (unlimited by default) DecisionResultCountLimit dynamicconfig.IntPropertyFnWithDomainFilter // Emit signal related metrics with signal name tag. Be aware of cardinality. EmitSignalNameMetricsTag dynamicconfig.BoolPropertyFnWithDomainFilter // HostName for machine running the service HostName string }
Config represents configuration for cadence-frontend service
func NewConfig ¶
func NewConfig(dc *dynamicconfig.Collection, numHistoryShards int, isAdvancedVisConfigExist bool, hostName string) *Config
NewConfig returns new service config with default values
Click to show internal directories.
Click to hide internal directories.