workers: Basic monitoring tools
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SESSION=$(cat /proc/sys/kernel/random/uuid)
|
||||
|
||||
tmux -2 new-session -d -s $SESSION
|
||||
|
||||
tmux new-window -t $SESSION:1 -n 'Storage Miner'
|
||||
|
||||
tmux split-window -h
|
||||
|
||||
tmux select-pane -t 0
|
||||
tmux send-keys "watch -n1 './lotus-storage-miner info'" C-m
|
||||
|
||||
tmux split-window -v
|
||||
|
||||
tmux select-pane -t 1
|
||||
tmux send-keys "watch -n1 './lotus-storage-miner workers list'" C-m
|
||||
|
||||
tmux select-pane -t 2
|
||||
tmux send-keys "watch -n1 './lotus-storage-miner storage list'" C-m
|
||||
|
||||
|
||||
tmux -2 attach-session -t $SESSION
|
||||
Reference in New Issue
Block a user