提交 bd7490db 编写于 作者: Q qinzuoyan

fix scripts/pegasus_manual_compact.sh

Summary: Ref T10570

Test Plan: N/A

Reviewers: sunweijie, cailiuyang, heyuchen, wutao1, laiyingchun

Reviewed By: cailiuyang

Subscribers: #pegasus

Maniphest Tasks: T10570

Differential Revision: https://phabricator.d.xiaomi.net/D89572
上级 a275e9f5
......@@ -36,7 +36,7 @@ do
fi
echo "Send remote command manual-compact to replica servers, logging in /tmp/$UID.pegasus.manual_compact.$app"
echo "remote_command -t replica-server manual-compact $gid" | ./run.sh shell --cluster $cluster &>/tmp/$UID.pegasus.manual_compact.$app
echo "remote_command -t replica-server replica.manual-compact $gid" | ./run.sh shell --cluster $cluster &>/tmp/$UID.pegasus.manual_compact.$app
not_found_count=`grep '^ .*not found' /tmp/$UID.pegasus.manual_compact.$app | wc -l`
started_count=`grep '^ .*started' /tmp/$UID.pegasus.manual_compact.$app | wc -l`
ignored_count=`grep '^ .*ignored' /tmp/$UID.pegasus.manual_compact.$app | wc -l`
......@@ -47,7 +47,7 @@ do
sleeped=0
while true
do
echo "remote_command -t replica-server query-compact $gid" | ./run.sh shell --cluster $cluster &>/tmp/$UID.pegasus.query_compact.$app
echo "remote_command -t replica-server replica.query-compact $gid" | ./run.sh shell --cluster $cluster &>/tmp/$UID.pegasus.query_compact.$app
queue_count=`grep 'recent enqueue at' /tmp/$UID.pegasus.query_compact.$app | grep -v 'recent start at' | wc -l`
running_count=`grep 'recent start at' /tmp/$UID.pegasus.query_compact.$app | wc -l`
not_finish_count=$((queue_count+running_count))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册