MCPcopy
hub / github.com/grafana/dskit / LifecyclerConfig

Struct LifecyclerConfig

ring/lifecycler.go:30–64  ·  view source on GitHub ↗

LifecyclerConfig is the config to build a Lifecycler.

Source from the content-addressed store, hash-verified

28
29// LifecyclerConfig is the config to build a Lifecycler.
30type LifecyclerConfig struct {
31 RingConfig Config `yaml:"ring"`
32
33 // Config for the ingester lifecycle control
34 NumTokens int `yaml:"num_tokens" category:"advanced"`
35 HeartbeatPeriod time.Duration `yaml:"heartbeat_period" category:"advanced"`
36 HeartbeatTimeout time.Duration `yaml:"heartbeat_timeout" category:"advanced"`
37 ObservePeriod time.Duration `yaml:"observe_period" category:"advanced"`
38 JoinAfter time.Duration `yaml:"join_after" category:"advanced"`
39 MinReadyDuration time.Duration `yaml:"min_ready_duration" category:"advanced"`
40 InfNames []string `yaml:"interface_names" doc:"default=[<private network interfaces>]"`
41 EnableInet6 bool `yaml:"enable_inet6" category:"advanced"`
42
43 // FinalSleep's default value can be overridden by
44 // setting it before calling RegisterFlags or RegisterFlagsWithPrefix.
45 FinalSleep time.Duration `yaml:"final_sleep" category:"advanced"`
46 TokensFilePath string `yaml:"tokens_file_path"`
47 Zone string `yaml:"availability_zone"`
48 UnregisterOnShutdown bool `yaml:"unregister_on_shutdown" category:"advanced"`
49 ReadinessCheckRingHealth bool `yaml:"readiness_check_ring_health" category:"advanced"`
50
51 // For testing, you can override the address and ID of this ingester
52 Addr string `yaml:"address" category:"advanced"`
53 Port int `category:"advanced"`
54 ID string `doc:"default=<hostname>" category:"advanced"`
55
56 // Injected internally
57 ListenPort int `yaml:"-"`
58
59 StatusPageConfig StatusPageConfig `yaml:"-"`
60
61 // If set, specifies the TokenGenerator implementation that will be used for generating tokens.
62 // Default value is nil, which means that RandomTokenGenerator is used.
63 RingTokenGenerator TokenGenerator `yaml:"-"`
64}
65
66// RegisterFlags adds the flags required to config this to the given FlagSet.
67// The default values of some flags can be changed; see docs of LifecyclerConfig.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected