We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3289a24 commit a0e7e35Copy full SHA for a0e7e35
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 {
+ instanceIDs := []string{}
483
+ for key := range d.Ingesters {
484
+ instanceIDs = append(instanceIDs, key)
485
+ }
486
+ sort.Strings(instanceIDs)
487
+
488
+ for _, instanceID := range instanceIDs {
489
+ instance := d.Ingesters[instanceID]
490
info := instanceInfo{
491
InstanceID: instanceID,
492
Zone: instance.Zone,
0 commit comments