This is an automated email from the ASF dual-hosted git repository. jiashuo pushed a commit to branch v2.2.1 in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
commit 0b7ef4519ae4247fe2b0537e46293bd80679225c Author: Jiashuo <[email protected]> AuthorDate: Wed Jun 9 17:09:45 2021 +0800 fix: update remote command of nfs_copy_megabytes (#762) --- scripts/pegasus_offline_node_list.sh | 10 +++++++++- scripts/pegasus_rebalance_cluster.sh | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/scripts/pegasus_offline_node_list.sh b/scripts/pegasus_offline_node_list.sh index 86fb735..2d3fde0 100755 --- a/scripts/pegasus_offline_node_list.sh +++ b/scripts/pegasus_offline_node_list.sh @@ -59,7 +59,7 @@ if [ $? -ne 0 ]; then fi echo "Set nfs_copy_rate_megabytes $nfs_copy_rate_megabytes" -echo "remote_command -t replica-server replica.nfs.max_copy_rate_megabytes $nfs_copy_rate_megabytes" | ./run.sh shell --cluster $meta_list &>/tmp/$UID.$PID.pegasus.offline_node_list.set_nfs_copy_rate_megabytes +echo "remote_command -t replica-server nfs.max_copy_rate_megabytes $nfs_copy_rate_megabytes" | ./run.sh shell --cluster $meta_list &>/tmp/$UID.$PID.pegasus.offline_node_list.set_nfs_copy_rate_megabytes set_ok=`grep 'succeed: OK' /tmp/$UID.$PID.pegasus.offline_node_list.set_nfs_copy_rate_megabytes | wc -l` if [ $set_ok -le 0 ]; then echo "ERROR: set nfs_copy_rate_megabytes failed" @@ -104,6 +104,14 @@ if [ $set_ok -ne 1 ]; then exit 1 fi +echo "Set nfs_copy_rate_megabytes 500" +echo "remote_command -t replica-server nfs.max_copy_rate_megabytes 500" | ./run.sh shell --cluster $meta_list &>/tmp/$UID.$PID.pegasus.offline_node_list.set_nfs_copy_rate_megabytes +set_ok=`grep 'succeed: OK' /tmp/$UID.$PID.pegasus.offline_node_list.set_nfs_copy_rate_megabytes | wc -l` +if [ $set_ok -le 0 ]; then + echo "ERROR: set nfs_copy_rate_megabytes failed" + exit 1 +fi + offline_finish_time=$((`date +%s`)) echo "Offline replica server task list done." echo "Elapsed time is $((offline_finish_time - offline_node_start_time)) seconds." diff --git a/scripts/pegasus_rebalance_cluster.sh b/scripts/pegasus_rebalance_cluster.sh index 62f70c7..00376bb 100755 --- a/scripts/pegasus_rebalance_cluster.sh +++ b/scripts/pegasus_rebalance_cluster.sh @@ -89,7 +89,7 @@ fi echo echo "Set nfs_copy_rate_megabytes $nfs_copy_rate_megabytes" -echo "remote_command -t replica-server replica.nfs.max_copy_rate_megabytes $nfs_copy_rate_megabytes" | ./run.sh shell --cluster $meta_list &>/tmp/$UID.$PID.pegasus.cluster_rebalance.set_nfs_copy_rate_megabytes +echo "remote_command -t replica-server nfs.max_copy_rate_megabytes $nfs_copy_rate_megabytes" | ./run.sh shell --cluster $meta_list &>/tmp/$UID.$PID.pegasus.cluster_rebalance.set_nfs_copy_rate_megabytes set_ok=`grep 'succeed: OK' /tmp/$UID.$PID.pegasus.cluster_rebalance.set_nfs_copy_rate_megabytes | wc -l` if [ $set_ok -le 0 ]; then echo "ERROR: set nfs_copy_rate_megabytes failed" @@ -151,6 +151,14 @@ if [ "$only_move_primary" == "true" ]; then echo fi +echo "Set nfs_copy_rate_megabytes 500" +echo "remote_command -t replica-server nfs.max_copy_rate_megabytes 500" | ./run.sh shell --cluster $meta_list &>/tmp/$UID.$PID.pegasus.cluster_rebalance.set_nfs_copy_rate_megabytes +set_ok=`grep 'succeed: OK' /tmp/$UID.$PID.pegasus.cluster_rebalance.set_nfs_copy_rate_megabytes | wc -l` +if [ $set_ok -le 0 ]; then + echo "ERROR: set nfs_copy_rate_megabytes failed" + exit 1 +fi + echo "Finish time: `date`" rebalance_finish_time=$((`date +%s`)) echo "rebalance done, elasped time is $((rebalance_finish_time - rebalance_start_time)) seconds." --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
