未验证 提交 a86bb47a 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #6964 from taosdata/test/TD-4812

[TD-4812] complete robust cluster test script
...@@ -23,7 +23,9 @@ menu(){ ...@@ -23,7 +23,9 @@ menu(){
echo "==============================" echo "=============================="
echo "3 arbitrator" echo "3 arbitrator"
echo "==============================" echo "=============================="
echo "4 exit" echo "4 alter replica"
echo "=============================="
echo "5 exit"
echo "==============================" echo "=============================="
} }
...@@ -310,6 +312,7 @@ do ...@@ -310,6 +312,7 @@ do
2) 2)
var=`ps -ef | grep tarbitrator | awk '{print $2}' | head -n 1` var=`ps -ef | grep tarbitrator | awk '{print $2}' | head -n 1`
kill -9 $var kill -9 $var
echo -e "\033[32mSuccessfully stop arbitrator $3 \033[0m"
break break
;; ;;
3) 3)
...@@ -318,6 +321,13 @@ do ...@@ -318,6 +321,13 @@ do
esac esac
;; ;;
4) 4)
read -p "Enter replica number: " rep
read -p "Enter database name: " db
taos -s "alter database $db replica $rep"
echo -e "\033[32mSuccessfully change $db's replica to $rep \033[0m"
break
;;
5)
break break
;; ;;
esac esac
......
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
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册