RulerEnableWALReplaybool`yaml:"ruler_enable_wal_replay" json:"ruler_enable_wal_replay" doc:"description=Enable WAL replay on ruler startup. Disabling this can reduce memory usage on startup at the cost of not recovering in-memory WAL metrics on restart."`
f.IntVar(&l.RulerMaxRulesPerRuleGroup,"ruler.max-rules-per-rule-group",0,"Maximum number of rules per rule group per-tenant. 0 to disable.")
f.IntVar(&l.RulerMaxRuleGroupsPerTenant,"ruler.max-rule-groups-per-tenant",0,"Maximum number of rule groups per-tenant. 0 to disable.")
f.IntVar(&l.RulerTenantShardSize,"ruler.tenant-shard-size",0,"The default tenant's shard size when shuffle-sharding is enabled in the ruler. When this setting is specified in the per-tenant overrides, a value of 0 disables shuffle sharding for the tenant.")
f.BoolVar(&l.RulerEnableWALReplay,"ruler.enable-wal-replay",true,"Enable WAL replay on ruler startup. Disabling this can reduce memory usage on startup at the cost of not recovering in-memory WAL metrics on restart.")
f.StringVar(&l.PerTenantOverrideConfig,"limits.per-user-override-config","","Feature renamed to 'runtime configuration', flag deprecated in favor of -runtime-config.file (runtime_config.file in YAML).")
_=l.RetentionPeriod.Set("0s")
@ -847,6 +849,11 @@ func (o *Overrides) RulerTenantShardSize(userID string) int {