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

Struct Config

ring/ring.go:196–208  ·  view source on GitHub ↗

Config for a Ring

Source from the content-addressed store, hash-verified

194
195// Config for a Ring
196type Config struct {
197 KVStore kv.Config `yaml:"kvstore"`
198 HeartbeatTimeout time.Duration `yaml:"heartbeat_timeout" category:"advanced"`
199 ReplicationFactor int `yaml:"replication_factor"`
200 ZoneAwarenessEnabled bool `yaml:"zone_awareness_enabled"`
201 ExcludedZones flagext.StringSliceCSV `yaml:"excluded_zones" category:"advanced"`
202
203 // Whether the shuffle-sharding subring cache is disabled. This option is set
204 // internally and never exposed to the user.
205 SubringCacheDisabled bool `yaml:"-"`
206
207 StatusPageConfig StatusPageConfig `yaml:"-"`
208}
209
210// RegisterFlags adds the flags required to config this to the given FlagSet with a specified prefix
211func (cfg *Config) RegisterFlags(f *flag.FlagSet) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected