Config for a Ring
| 194 | |
| 195 | // Config for a Ring |
| 196 | type 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 |
| 211 | func (cfg *Config) RegisterFlags(f *flag.FlagSet) { |
nothing calls this directly
no outgoing calls
no test coverage detected