[TD-4812] monitor dnode and mnode status and save to log

This commit is contained in:
zhaoyanggh 2021-07-21 17:19:28 +08:00
parent 7fee581d88
commit 5b463ac4df
1 changed files with 8 additions and 0 deletions

8
tests/robust/monitor.sh Executable file
View File

@ -0,0 +1,8 @@
while :
do
dlog=`taos -s "show dnodes"`
mlog=`taos -s "show mnodes"`
echo "$dlog" | tee -a dnode.log
echo "$mlog" | tee -a mnode.log
sleep 1s
done