Skip to content

Commit b025cc0

Browse files
committed
Rollback wait stability max/min duration
Signed-off-by: SungJin1212 <[email protected]>
1 parent 8fa6164 commit b025cc0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/blocks-storage/store-gateway.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,13 @@ store_gateway:
311311

312312
# Minimum time to wait for ring stability at startup. 0 to disable.
313313
# CLI flag: -store-gateway.sharding-ring.wait-stability-min-duration
314-
[wait_stability_min_duration: <duration> | default = 0s]
314+
[wait_stability_min_duration: <duration> | default = 1m]
315315

316316
# Maximum time to wait for ring stability at startup. If the store-gateway
317317
# ring keeps changing after this period of time, the store-gateway will
318318
# start anyway.
319319
# CLI flag: -store-gateway.sharding-ring.wait-stability-max-duration
320-
[wait_stability_max_duration: <duration> | default = 5s]
320+
[wait_stability_max_duration: <duration> | default = 5m]
321321

322322
# Timeout for waiting on store-gateway to become desired state in the ring.
323323
# CLI flag: -store-gateway.sharding-ring.wait-instance-state-timeout

docs/configuration/config-file-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6467,13 +6467,13 @@ sharding_ring:
64676467
64686468
# Minimum time to wait for ring stability at startup. 0 to disable.
64696469
# CLI flag: -store-gateway.sharding-ring.wait-stability-min-duration
6470-
[wait_stability_min_duration: <duration> | default = 0s]
6470+
[wait_stability_min_duration: <duration> | default = 1m]
64716471
64726472
# Maximum time to wait for ring stability at startup. If the store-gateway
64736473
# ring keeps changing after this period of time, the store-gateway will start
64746474
# anyway.
64756475
# CLI flag: -store-gateway.sharding-ring.wait-stability-max-duration
6476-
[wait_stability_max_duration: <duration> | default = 5s]
6476+
[wait_stability_max_duration: <duration> | default = 5m]
64776477
64786478
# Timeout for waiting on store-gateway to become desired state in the ring.
64796479
# CLI flag: -store-gateway.sharding-ring.wait-instance-state-timeout

pkg/storegateway/gateway_ring.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ func (cfg *RingConfig) RegisterFlags(f *flag.FlagSet) {
111111
f.BoolVar(&cfg.DetailedMetricsEnabled, ringFlagsPrefix+"detailed-metrics-enabled", true, "Set to true to enable ring detailed metrics. These metrics provide detailed information, such as token count and ownership per tenant. Disabling them can significantly decrease the number of metrics emitted.")
112112

113113
// Wait stability flags.
114-
f.DurationVar(&cfg.WaitStabilityMinDuration, ringFlagsPrefix+"wait-stability-min-duration", 0, "Minimum time to wait for ring stability at startup. 0 to disable.")
115-
f.DurationVar(&cfg.WaitStabilityMaxDuration, ringFlagsPrefix+"wait-stability-max-duration", 5*time.Second, "Maximum time to wait for ring stability at startup. If the store-gateway ring keeps changing after this period of time, the store-gateway will start anyway.")
114+
f.DurationVar(&cfg.WaitStabilityMinDuration, ringFlagsPrefix+"wait-stability-min-duration", time.Minute, "Minimum time to wait for ring stability at startup. 0 to disable.")
115+
f.DurationVar(&cfg.WaitStabilityMaxDuration, ringFlagsPrefix+"wait-stability-max-duration", 5*time.Minute, "Maximum time to wait for ring stability at startup. If the store-gateway ring keeps changing after this period of time, the store-gateway will start anyway.")
116116

117117
f.DurationVar(&cfg.FinalSleep, ringFlagsPrefix+"final-sleep", 0*time.Second, "The sleep seconds when store-gateway is shutting down. Need to be close to or larger than KV Store information propagation delay")
118118

schemas/cortex-config-schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8287,14 +8287,14 @@
82878287
"x-format": "duration"
82888288
},
82898289
"wait_stability_max_duration": {
8290-
"default": "5s",
8290+
"default": "5m0s",
82918291
"description": "Maximum time to wait for ring stability at startup. If the store-gateway ring keeps changing after this period of time, the store-gateway will start anyway.",
82928292
"type": "string",
82938293
"x-cli-flag": "store-gateway.sharding-ring.wait-stability-max-duration",
82948294
"x-format": "duration"
82958295
},
82968296
"wait_stability_min_duration": {
8297-
"default": "0s",
8297+
"default": "1m0s",
82988298
"description": "Minimum time to wait for ring stability at startup. 0 to disable.",
82998299
"type": "string",
83008300
"x-cli-flag": "store-gateway.sharding-ring.wait-stability-min-duration",

0 commit comments

Comments
 (0)