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

[incubator-pegasus] 05/05: feat: update usage hint for rolling update script (#759)

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 3cc66c2cc59ab5f37a6df1340e5a1a1108b1300b
Author: HeYuchen <37...@qq.com>
AuthorDate: Thu Jun 10 16:34:32 2021 +0800

    feat: update usage hint for rolling update script (#759)
---
 scripts/pegasus_rolling_update.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/scripts/pegasus_rolling_update.sh b/scripts/pegasus_rolling_update.sh
index cb86f9f..39b0048 100755
--- a/scripts/pegasus_rolling_update.sh
+++ b/scripts/pegasus_rolling_update.sh
@@ -22,15 +22,22 @@
 PID=$$
 
 if [ $# -le 3 ]; then
-  echo "USAGE: $0 <cluster-name> <cluster-meta-list> <type> <start_task_id> "
-       "<rebalance_cluster_after_rolling>(default false) <rebalance_only_move_primary>(default true)"
+  echo "USAGE: $0 <cluster-name> <cluster-meta-list> <type> <start_task_id> [rebalance] [only_move_pri]"
   echo
   echo "The type may be 'one' or 'all':"
   echo "  - one: rolling update only one task of replica server."
   echo "  - all: rolling update all replica servers, meta servers and collectors."
   echo
+  echo "rebalance: default value is false"
+  echo "  - if rebalance cluster after rolling update"
+  echo
+  echo "only_move_pri: default value is true"
+  echo "  - if only move primary while rebalance"
+  echo "  - this option will only be usefule when rebalance = true"
+  echo
   echo "For example:"
   echo "  $0 onebox 127.0.0.1:34601,127.0.0.1:34602 one 0"
+  echo "  $0 onebox 127.0.0.1:34601,127.0.0.1:34602 all 1 true false"
   echo
   exit 1
 fi

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org