Skip to content

Commit ffec3ab

Browse files
committed
mmaprototype: add Status to storeState
It is included in the Stringer, but not otherwise hooked up to anything.
1 parent 8696560 commit ffec3ab

File tree

5 files changed

+42
-36
lines changed

5 files changed

+42
-36
lines changed

pkg/kv/kvserver/allocator/mmaprototype/cluster_state.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ type pendingReplicaChange struct {
600600
// storeState maintains the complete state about a store as known to the
601601
// allocator.
602602
type storeState struct {
603+
status Status
603604
storeLoad
604605
StoreAttributesAndLocality
605606
adjusted struct {
@@ -1822,6 +1823,11 @@ func (cs *clusterState) setStore(sal StoreAttributesAndLocality) {
18221823
if !ok {
18231824
// This is the first time seeing this store.
18241825
ss := newStoreState()
1826+
// At this point, the store's health is unknown. It will need to be marked
1827+
// as healthy separately. Until we know more, we won't place leases or
1828+
// replicas on it (nor will we try to shed any that are already reported to
1829+
// have replicas on it).
1830+
ss.status = MakeStatus(HealthUnknown, LeaseDispositionRefusing, ReplicaDispositionRefusing)
18251831
ss.localityTiers = cs.localityTierInterner.intern(sal.locality())
18261832
ss.overloadStartTime = cs.ts.Now()
18271833
ss.overloadEndTime = cs.ts.Now()

pkg/kv/kvserver/allocator/mmaprototype/testdata/cluster_state/multiple_ranges

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ store-id=1
3636
# The top-k uses CPURate.
3737
get-load-info
3838
----
39-
store-id=1 node-id=1 reported=[cpu:100, write-bandwidth:40, byte-size:50] adjusted=[cpu:100, write-bandwidth:40, byte-size:50] node-reported-cpu=100 node-adjusted-cpu=100 seq=1
39+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:100, write-bandwidth:40, byte-size:50] adjusted=[cpu:100, write-bandwidth:40, byte-size:50] node-reported-cpu=100 node-adjusted-cpu=100 seq=1
4040
top-k-ranges (local-store-id=1) dim=CPURate: r4 r3
41-
store-id=2 node-id=2 reported=[cpu:45, write-bandwidth:40, byte-size:50] adjusted=[cpu:45, write-bandwidth:40, byte-size:50] node-reported-cpu=45 node-adjusted-cpu=45 seq=1
41+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:45, write-bandwidth:40, byte-size:50] adjusted=[cpu:45, write-bandwidth:40, byte-size:50] node-reported-cpu=45 node-adjusted-cpu=45 seq=1
4242
top-k-ranges (local-store-id=1) dim=CPURate: r3 r2
4343

4444

@@ -67,9 +67,9 @@ store-id=1
6767
# The top-2 ranges for store 2 are based on ByteSize.
6868
get-load-info
6969
----
70-
store-id=1 node-id=1 reported=[cpu:100, write-bandwidth:40, byte-size:50] adjusted=[cpu:100, write-bandwidth:40, byte-size:50] node-reported-cpu=100 node-adjusted-cpu=100 seq=1
70+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:100, write-bandwidth:40, byte-size:50] adjusted=[cpu:100, write-bandwidth:40, byte-size:50] node-reported-cpu=100 node-adjusted-cpu=100 seq=1
7171
top-k-ranges (local-store-id=1) dim=CPURate: r4 r3
72-
store-id=2 node-id=2 reported=[cpu:45, write-bandwidth:40, byte-size:50] adjusted=[cpu:45, write-bandwidth:40, byte-size:50] node-reported-cpu=45 node-adjusted-cpu=45 seq=2
72+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:45, write-bandwidth:40, byte-size:50] adjusted=[cpu:45, write-bandwidth:40, byte-size:50] node-reported-cpu=45 node-adjusted-cpu=45 seq=2
7373
top-k-ranges (local-store-id=1) dim=ByteSize: r1 r2
7474

7575
# StoreLeaseholderMsg not containing r1 and r4 since no longer the leaseholder.
@@ -86,7 +86,7 @@ store-id=1
8686
# r1 and r4 no longer mentioned in the top-k.
8787
get-load-info
8888
----
89-
store-id=1 node-id=1 reported=[cpu:100, write-bandwidth:40, byte-size:50] adjusted=[cpu:100, write-bandwidth:40, byte-size:50] node-reported-cpu=100 node-adjusted-cpu=100 seq=1
89+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:100, write-bandwidth:40, byte-size:50] adjusted=[cpu:100, write-bandwidth:40, byte-size:50] node-reported-cpu=100 node-adjusted-cpu=100 seq=1
9090
top-k-ranges (local-store-id=1) dim=CPURate: r3 r2
91-
store-id=2 node-id=2 reported=[cpu:45, write-bandwidth:40, byte-size:50] adjusted=[cpu:45, write-bandwidth:40, byte-size:50] node-reported-cpu=45 node-adjusted-cpu=45 seq=2
91+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:45, write-bandwidth:40, byte-size:50] adjusted=[cpu:45, write-bandwidth:40, byte-size:50] node-reported-cpu=45 node-adjusted-cpu=45 seq=2
9292
top-k-ranges (local-store-id=1) dim=ByteSize: r2 r3

pkg/kv/kvserver/allocator/mmaprototype/testdata/cluster_state/rebalance_replica

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ store-load-msg
1313

1414
get-load-info
1515
----
16-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=1
17-
store-id=2 node-id=2 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
16+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=1
17+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
1818

1919
store-leaseholder-msg
2020
store-id=1
@@ -30,9 +30,9 @@ range-id=1 load=[cpu:80, write-bandwidth:80, byte-size:80] raft-cpu=20
3030

3131
get-load-info
3232
----
33-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=1
33+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=1
3434
top-k-ranges (local-store-id=1) dim=CPURate: r1
35-
store-id=2 node-id=2 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
35+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
3636

3737
make-pending-changes range-id=1
3838
rebalance-replica: remove-store-id=1 add-store-id=2
@@ -52,9 +52,9 @@ range-id=1 load=[cpu:80, write-bandwidth:80, byte-size:80] raft-cpu=20
5252

5353
get-load-info
5454
----
55-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=80 node-adjusted-cpu=0 seq=2
55+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=80 node-adjusted-cpu=0 seq=2
5656
top-k-ranges (local-store-id=1) dim=CPURate: r1
57-
store-id=2 node-id=2 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:88, write-bandwidth:88, byte-size:88] node-reported-cpu=0 node-adjusted-cpu=88 seq=1
57+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:88, write-bandwidth:88, byte-size:88] node-reported-cpu=0 node-adjusted-cpu=88 seq=1
5858

5959
# TODO: this test is confusing since it is sending StoreLeaseholderMsgs from
6060
# s1 and s2 to the same clusterState, but s1 and s2 are not on the same node.
@@ -66,9 +66,9 @@ store-id=2
6666

6767
get-load-info
6868
----
69-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=80 node-adjusted-cpu=0 seq=2
69+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=80 node-adjusted-cpu=0 seq=2
7070
top-k-ranges (local-store-id=1) dim=CPURate: r1
71-
store-id=2 node-id=2 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:88, write-bandwidth:88, byte-size:88] node-reported-cpu=0 node-adjusted-cpu=88 seq=1
71+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:88, write-bandwidth:88, byte-size:88] node-reported-cpu=0 node-adjusted-cpu=88 seq=1
7272
top-k-ranges (local-store-id=2) dim=ByteSize: r1
7373

7474
get-pending-changes
@@ -94,9 +94,9 @@ change-id=2 store-id=1 node-id=1 range-id=1 load-delta=[cpu:-80, write-bandwidth
9494

9595
get-load-info
9696
----
97-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=80 node-adjusted-cpu=0 seq=2
97+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=80 node-adjusted-cpu=0 seq=2
9898
top-k-ranges (local-store-id=1) dim=CPURate: r1
99-
store-id=2 node-id=2 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=2
99+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=2
100100
top-k-ranges (local-store-id=2) dim=ByteSize: r1
101101

102102

@@ -110,7 +110,7 @@ pending(0)
110110

111111
get-load-info
112112
----
113-
store-id=1 node-id=1 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=3
113+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=3
114114
top-k-ranges (local-store-id=1) dim=CPURate: r1
115-
store-id=2 node-id=2 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=2
115+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=2
116116
top-k-ranges (local-store-id=2) dim=ByteSize: r1

pkg/kv/kvserver/allocator/mmaprototype/testdata/cluster_state/remove_replica

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ store-load-msg
1313

1414
get-load-info
1515
----
16-
store-id=1 node-id=1 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
17-
store-id=2 node-id=2 reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=1
16+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
17+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=1
1818

1919
store-leaseholder-msg
2020
store-id=1
@@ -25,9 +25,9 @@ store-id=1
2525

2626
get-load-info
2727
----
28-
store-id=1 node-id=1 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
28+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
2929
top-k-ranges (local-store-id=1) dim=CPURate: r1
30-
store-id=2 node-id=2 reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=1
30+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=1
3131
top-k-ranges (local-store-id=1) dim=CPURate: r1
3232

3333
ranges
@@ -55,9 +55,9 @@ range-id=1 load=[cpu:80, write-bandwidth:80, byte-size:80] raft-cpu=20
5555
# applied.
5656
get-load-info
5757
----
58-
store-id=1 node-id=1 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
58+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
5959
top-k-ranges (local-store-id=1) dim=CPURate: r1
60-
store-id=2 node-id=2 reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=20 node-adjusted-cpu=0 seq=2
60+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=20 node-adjusted-cpu=0 seq=2
6161
top-k-ranges (local-store-id=1) dim=CPURate: r1
6262

6363
store-leaseholder-msg
@@ -68,9 +68,9 @@ store-id=1
6868

6969
get-load-info
7070
----
71-
store-id=1 node-id=1 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
71+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
7272
top-k-ranges (local-store-id=1) dim=CPURate: r1
73-
store-id=2 node-id=2 reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=20 node-adjusted-cpu=0 seq=2
73+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=20 node-adjusted-cpu=0 seq=2
7474

7575
get-pending-changes
7676
----
@@ -85,9 +85,9 @@ store-load-msg
8585

8686
get-load-info
8787
----
88-
store-id=1 node-id=1 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
88+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=0
8989
top-k-ranges (local-store-id=1) dim=CPURate: r1
90-
store-id=2 node-id=2 reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=3
90+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:0, write-bandwidth:0, byte-size:0] adjusted=[cpu:0, write-bandwidth:0, byte-size:0] node-reported-cpu=0 node-adjusted-cpu=0 seq=3
9191

9292
get-pending-changes
9393
----

pkg/kv/kvserver/allocator/mmaprototype/testdata/cluster_state/transfer_lease

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ store-load-msg
1717

1818
get-load-info
1919
----
20-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=1
21-
store-id=2 node-id=2 reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=1
20+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=1
21+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=1
2222

2323
store-leaseholder-msg
2424
store-id=1
@@ -29,9 +29,9 @@ store-id=1
2929

3030
get-load-info
3131
----
32-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=1
32+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=1
3333
top-k-ranges (local-store-id=1) dim=CPURate: r1
34-
store-id=2 node-id=2 reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=1
34+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=1
3535
top-k-ranges (local-store-id=1) dim=WriteBandwidth: r1
3636

3737
ranges
@@ -53,9 +53,9 @@ change-id=2 store-id=2 node-id=2 range-id=1 load-delta=[cpu:66, write-bandwidth:
5353

5454
get-load-info
5555
----
56-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=20 seq=2
56+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=20 seq=2
5757
top-k-ranges (local-store-id=1) dim=CPURate: r1
58-
store-id=2 node-id=2 reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:86, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=86 seq=2
58+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:86, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=86 seq=2
5959
top-k-ranges (local-store-id=1) dim=WriteBandwidth: r1
6060

6161
ranges
@@ -70,9 +70,9 @@ pending(0)
7070

7171
get-load-info
7272
----
73-
store-id=1 node-id=1 reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=3
73+
store-id=1 node-id=1 status=unknown, refusing=leases,replicas reported=[cpu:80, write-bandwidth:80, byte-size:80] adjusted=[cpu:80, write-bandwidth:80, byte-size:80] node-reported-cpu=80 node-adjusted-cpu=80 seq=3
7474
top-k-ranges (local-store-id=1) dim=CPURate: r1
75-
store-id=2 node-id=2 reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=3
75+
store-id=2 node-id=2 status=unknown, refusing=leases,replicas reported=[cpu:20, write-bandwidth:80, byte-size:80] adjusted=[cpu:20, write-bandwidth:80, byte-size:80] node-reported-cpu=20 node-adjusted-cpu=20 seq=3
7676
top-k-ranges (local-store-id=1) dim=WriteBandwidth: r1
7777

7878
ranges

0 commit comments

Comments
 (0)