You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@
17
17
*[FEATURE] Querier: Log query stats when querying store gateway. #5376
18
18
*[FEATURE] Querier/StoreGateway: Allow the tenant shard sizes to be a percent of total instances. #5393
19
19
*[FEATURE] Added the flag `-alertmanager.api-concurrency` to configure alert manager api concurrency limit. #5412
20
+
*[FEATURE] Store Gateway: Add ` -store-gateway.sharding-ring.keep-instance-in-the-ring-on-shutdown` to skip unregistering instance from the ring in shutdown. #5421
20
21
*[ENHANCEMENT] Distributor/Ingester: Add span on push path #5319
21
22
*[ENHANCEMENT] Support object storage backends for runtime configuration file. #5292
22
23
*[ENHANCEMENT] Query Frontend: Reject subquery with too small step size. #5323
Copy file name to clipboardExpand all lines: pkg/storegateway/gateway_ring.go
+15-12Lines changed: 15 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -60,12 +60,13 @@ var (
60
60
// is used to strip down the config to the minimum, and avoid confusion
61
61
// to the user.
62
62
typeRingConfigstruct {
63
-
KVStore kv.Config`yaml:"kvstore" doc:"description=The key-value store used to share the hash ring across multiple instances. This option needs be set both on the store-gateway and querier when running in microservices mode."`
KVStore kv.Config`yaml:"kvstore" doc:"description=The key-value store used to share the hash ring across multiple instances. This option needs be set both on the store-gateway and querier when running in microservices mode."`
f.IntVar(&cfg.ReplicationFactor, ringFlagsPrefix+"replication-factor", 3, "The replication factor to use when sharding blocks."+sharedOptionWithQuerier)
101
102
f.StringVar(&cfg.TokensFilePath, ringFlagsPrefix+"tokens-file-path", "", "File path where tokens are stored. If empty, tokens are not stored at shutdown and restored at startup.")
102
103
f.BoolVar(&cfg.ZoneAwarenessEnabled, ringFlagsPrefix+"zone-awareness-enabled", false, "True to enable zone-awareness and replicate blocks across different availability zones.")
104
+
f.BoolVar(&cfg.KeepInstanceInTheRingOnShutdown, ringFlagsPrefix+"keep-instance-in-the-ring-on-shutdown", false, "True to keep the store gateway instance in the ring when it shuts down. The instance will then be auto-forgotten from the ring after 10*heartbeat_timeout.")
103
105
104
106
// Wait stability flags.
105
107
f.DurationVar(&cfg.WaitStabilityMinDuration, ringFlagsPrefix+"wait-stability-min-duration", time.Minute, "Minimum time to wait for ring stability at startup. 0 to disable.")
0 commit comments