Documentation ¶
Index ¶
- Constants
- Variables
- func NewPerNamespaceWorkerManager(params perNamespaceWorkerManagerInitParams) *perNamespaceWorkerManager
- func NewWorkerManager(params initParams) *workerManager
- func PersistenceRateLimitingParamsProvider(serviceConfig *Config) service.PersistenceRateLimitingParams
- func ServiceLifetimeHooks(lc fx.Lifecycle, svcStoppedCh chan struct{}, svc *Service)
- func ThrottledLoggerRpsFnProvider(serviceConfig *Config) resource.ThrottledLoggerRpsFn
- func VisibilityManagerProvider(logger log.Logger, metricsHandler metrics.Handler, ...) (manager.VisibilityManager, error)
- type Config
- type Service
Constants ¶
View Source
const DefaultWorkerTaskQueue = "default-worker-tq"
Variables ¶
View Source
var Module = fx.Options( migration.Module, addsearchattributes.Module, resource.Module, deletenamespace.Module, scheduler.Module, batcher.Module, fx.Provide(VisibilityManagerProvider), fx.Provide(dynamicconfig.NewCollection), fx.Provide(ThrottledLoggerRpsFnProvider), fx.Provide(ConfigProvider), fx.Provide(PersistenceRateLimitingParamsProvider), fx.Provide(NewService), fx.Provide(NewWorkerManager), fx.Provide(NewPerNamespaceWorkerManager), fx.Invoke(ServiceLifetimeHooks), )
Functions ¶
func NewPerNamespaceWorkerManager ¶ added in v1.17.0
func NewPerNamespaceWorkerManager(params perNamespaceWorkerManagerInitParams) *perNamespaceWorkerManager
func NewWorkerManager ¶ added in v1.14.0
func NewWorkerManager(params initParams) *workerManager
func PersistenceRateLimitingParamsProvider ¶ added in v1.17.2
func PersistenceRateLimitingParamsProvider( serviceConfig *Config, ) service.PersistenceRateLimitingParams
func ServiceLifetimeHooks ¶ added in v1.13.0
func ThrottledLoggerRpsFnProvider ¶ added in v1.13.0
func ThrottledLoggerRpsFnProvider(serviceConfig *Config) resource.ThrottledLoggerRpsFn
func VisibilityManagerProvider ¶ added in v1.16.0
func VisibilityManagerProvider( logger log.Logger, metricsHandler metrics.Handler, persistenceConfig *config.Persistence, serviceConfig *Config, esConfig *esclient.Config, esClient esclient.Client, persistenceServiceResolver resolver.ServiceResolver, searchAttributesMapperProvider searchattribute.MapperProvider, saProvider searchattribute.Provider, ) (manager.VisibilityManager, error)
Types ¶
type Config ¶
type Config struct { ArchiverConfig *archiver.Config ScannerCfg *scanner.Config ParentCloseCfg *parentclosepolicy.Config ThrottledLogRPS dynamicconfig.IntPropertyFn PersistenceMaxQPS dynamicconfig.IntPropertyFn PersistenceGlobalMaxQPS dynamicconfig.IntPropertyFn PersistenceNamespaceMaxQPS dynamicconfig.IntPropertyFnWithNamespaceFilter EnablePersistencePriorityRateLimiting dynamicconfig.BoolPropertyFn EnableBatcher dynamicconfig.BoolPropertyFn BatcherRPS dynamicconfig.IntPropertyFnWithNamespaceFilter BatcherConcurrency dynamicconfig.IntPropertyFnWithNamespaceFilter EnableParentClosePolicyWorker dynamicconfig.BoolPropertyFn PerNamespaceWorkerCount dynamicconfig.IntPropertyFnWithNamespaceFilter PerNamespaceWorkerOptions dynamicconfig.MapPropertyFnWithNamespaceFilter StandardVisibilityPersistenceMaxReadQPS dynamicconfig.IntPropertyFn StandardVisibilityPersistenceMaxWriteQPS dynamicconfig.IntPropertyFn AdvancedVisibilityPersistenceMaxReadQPS dynamicconfig.IntPropertyFn AdvancedVisibilityPersistenceMaxWriteQPS dynamicconfig.IntPropertyFn EnableReadVisibilityFromES dynamicconfig.BoolPropertyFnWithNamespaceFilter EnableReadFromSecondaryAdvancedVisibility dynamicconfig.BoolPropertyFnWithNamespaceFilter VisibilityDisableOrderByClause dynamicconfig.BoolPropertyFnWithNamespaceFilter }
Config contains all the service config for worker
func ConfigProvider ¶ added in v1.16.0
func ConfigProvider( dc *dynamicconfig.Collection, persistenceConfig *config.Persistence, ) *Config
func NewConfig ¶
func NewConfig(dc *dynamicconfig.Collection, persistenceConfig *config.Persistence, enableReadFromES bool) *Config
NewConfig builds the new Config for worker service
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the temporal-worker service. This service hosts all background processing needed for temporal cluster: Replicator: Handles applying replication tasks generated by remote clusters. Archiver: Handles archival of workflow histories.
func NewService ¶
func NewService( logger log.SnTaggedLogger, serviceConfig *Config, sdkClientFactory sdk.ClientFactory, esClient esclient.Client, archivalMetadata carchiver.ArchivalMetadata, clusterMetadata cluster.Metadata, clientBean client.Bean, clusterMetadataManager persistence.ClusterMetadataManager, namespaceRegistry namespace.Registry, executionManager persistence.ExecutionManager, archiverProvider provider.ArchiverProvider, persistenceBean persistenceClient.Bean, membershipMonitor membership.Monitor, namespaceReplicationQueue persistence.NamespaceReplicationQueue, metricsHandler metrics.Handler, metadataManager persistence.MetadataManager, taskManager persistence.TaskManager, historyClient historyservice.HistoryServiceClient, workerManager *workerManager, perNamespaceWorkerManager *perNamespaceWorkerManager, visibilityManager manager.VisibilityManager, ) (*Service, error)
func (*Service) RefreshPerNSWorkerManager ¶ added in v1.20.0
func (s *Service) RefreshPerNSWorkerManager()
This is intended for use by integration tests only.
Directories ¶
Path | Synopsis |
---|---|
Package archiver is a generated GoMock package.
|
Package archiver is a generated GoMock package. |
Package common is a generated GoMock package.
|
Package common is a generated GoMock package. |
Package parentclosepolicy is a generated GoMock package.
|
Package parentclosepolicy is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.