We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb370a commit 09711f7Copy full SHA for 09711f7
pkg/ring/model.go
@@ -479,7 +479,14 @@ func (d *Desc) Clone() interface{} {
479
func (d *Desc) getTokensInfo() map[uint32]instanceInfo {
480
out := map[uint32]instanceInfo{}
481
482
- for instanceID, instance := range d.Ingesters {
+ keys := []string{}
483
+ for key, _ := range d.Ingesters {
484
+ keys = append(keys, key)
485
+ }
486
+ sort.Strings(keys)
487
+
488
+ for _, instanceID := range keys {
489
+ instance := d.Ingesters[instanceID]
490
info := instanceInfo{
491
InstanceID: instanceID,
492
Zone: instance.Zone,
0 commit comments