-
Notifications
You must be signed in to change notification settings - Fork 557
/
request_status_single
36 lines (33 loc) · 913 Bytes
/
request_status_single
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Status requests return the cluster status on a single node.
cluster nodes=1
---
n1@1 leader last=1@1 commit=1@1 apply=1 progress={}
# Perform a write.
(put 1 foo=bar)
(stabilize)
status
---
n1@1 leader last=2@1 commit=2@1 apply=2 progress={}
# Run a status request on the leader.
status request=true 1
stabilize
---
c1@1 → n1 ClientRequest id=0x02 status
n1@1 → c1 ClientResponse id=0x02 status Status { leader: 1, term: 1, match_index: {1: 2}, commit_index: 2, apply_index: 2, storage: Status { name: "memory", keys: 4, size: 41, total_disk_size: 0, live_disk_size: 0, garbage_disk_size: 0 } }
c1@1 status ⇒ Status {
leader: 1,
term: 1,
match_index: {
1: 2,
},
commit_index: 2,
apply_index: 2,
storage: Status {
name: "memory",
keys: 4,
size: 41,
total_disk_size: 0,
live_disk_size: 0,
garbage_disk_size: 0,
},
}