chore: remove unused recheck period (#17972)

pull/16286/head^2
George Robinson 7 months ago committed by GitHub
parent 6495be0180
commit c33cd3dd4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      docs/sources/shared/configuration.md
  2. 2
      pkg/limits/frontend/config.go

@ -1411,10 +1411,6 @@ ingest_limits_frontend:
# CLI flag: -ingest-limits-frontend.lifecycler.ID
[id: <string> | default = "<hostname>"]
# The period to recheck per tenant ingestion rate limit configuration.
# CLI flag: -ingest-limits-frontend.recheck-period
[recheck_period: <duration> | default = 10s]
# The number of partitions to use for the ring.
# CLI flag: -ingest-limits-frontend.num-partitions
[num_partitions: <int> | default = 64]

@ -15,7 +15,6 @@ import (
type Config struct {
ClientConfig limits_client.Config `yaml:"client_config"`
LifecyclerConfig ring.LifecyclerConfig `yaml:"lifecycler,omitempty"`
RecheckPeriod time.Duration `yaml:"recheck_period"`
NumPartitions int `yaml:"num_partitions"`
AssignedPartitionsCacheTTL time.Duration `yaml:"assigned_partitions_cache_ttl"`
}
@ -23,7 +22,6 @@ type Config struct {
func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
cfg.ClientConfig.RegisterFlagsWithPrefix("ingest-limits-frontend", f)
cfg.LifecyclerConfig.RegisterFlagsWithPrefix("ingest-limits-frontend.", f, util_log.Logger)
f.DurationVar(&cfg.RecheckPeriod, "ingest-limits-frontend.recheck-period", 10*time.Second, "The period to recheck per tenant ingestion rate limit configuration.")
f.IntVar(&cfg.NumPartitions, "ingest-limits-frontend.num-partitions", 64, "The number of partitions to use for the ring.")
f.DurationVar(&cfg.AssignedPartitionsCacheTTL, "ingest-limits-frontend.assigned-partitions-cache-ttl", 1*time.Minute, "The TTL for the assigned partitions cache. 0 disables the cache.")
}

Loading…
Cancel
Save