restate
restate copied to clipboard
Extend restatectl with basic log and node operations
Related tssue: https://github.com/restatedev/restate/issues/1777
This change so far adds the following new subcommands:
restatectl logs list displays all the logs and their tail segment:
❯ restatectl logs list | head
LOG-ID SEGMENTS TAIL BASE LSN KIND
0 1 1 Local
1 1 1 Local
2 1 1 Local
3 1 1 Local
4 1 1 Local
5 1 1 Local
6 1 1 Local
7 1 1 Local
8 1 1 Local
restatectl logs describe list the segments of a particular log
It prints the list of sealed segments and the latest offset from the tail segment:
❯ restatectl logs describe --log-id 1
SEGMENT STATE BASE LSN TAIL LSN KIND
0 OPEN 1 33 Local
restatectl nodes list lists the known nodes
Very basic right now, only extracting information from the ClusterState struct without introducing a new operation / consulting NodesConfiguration yet:
❯ restatectl nodes list
NODE LEADER FOLLOWER UNKNOWN LAST REFRESH
N0 24 0 0 810 ms ago