You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by yu...@apache.org on 2021/06/09 09:09:53 UTC

[incubator-pegasus] branch master updated: fix: update remote command of nfs_copy_megabytes (#762)

This is an automated email from the ASF dual-hosted git repository.

yuchenhe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c2318f  fix: update  remote command of nfs_copy_megabytes (#762)
0c2318f is described below

commit 0c2318fdf2b999a10b054fb6f44d2e4e510829b5
Author: Jiashuo <js...@live.com>
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: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org