ivandika3 commented on code in PR #8730:
URL: https://github.com/apache/ozone/pull/8730#discussion_r2184984536


##########
hadoop-hdds/docs/content/feature/SCM-HA.md:
##########
@@ -90,6 +90,85 @@ ozone scm --bootstrap
 
 Note: both commands perform one-time initialization.  SCM still needs to be 
started by running `ozone --daemon start scm`.
 
+## SCM Leader Transfer
+
+The `ozone admin scm transfer` command allows you to manually transfer the 
leadership of the Storage Container Manager (SCM) Raft group to a specific SCM 
node or to a randomly chosen follower.
+
+Be aware of the node's status(eg. Safemode, Operational status), ozone 
currently has no ability to check the target node's status before transfering 
the leadership.
+
+### Usage
+
+```bash
+ozone admin scm transfer -id <SCM_SERVICE_ID> -n <NEW_LEADER_ID>
+ozone admin scm transfer -id <SCM_SERVICE_ID> -r
+```
+
+*   `-id, --service-id`: Specifies the SCM Service ID.
+*   `-n, --newLeaderId, --new-leader-id`: The node ID of the SCM to which 
leadership will be transferred (e.g., `scm1`).

Review Comment:
   From https://issues.apache.org/jira/browse/HDDS-11839, we cannot use the SCM 
Node ID as the --new-leader-id`, we need to use the SCM UUID (Raft peer ID)
   
   cc: @peterxcli 



##########
hadoop-hdds/docs/content/feature/SCM-HA.md:
##########
@@ -90,6 +90,85 @@ ozone scm --bootstrap
 
 Note: both commands perform one-time initialization.  SCM still needs to be 
started by running `ozone --daemon start scm`.
 
+## SCM Leader Transfer
+
+The `ozone admin scm transfer` command allows you to manually transfer the 
leadership of the Storage Container Manager (SCM) Raft group to a specific SCM 
node or to a randomly chosen follower.
+
+Be aware of the node's status(eg. Safemode, Operational status), ozone 
currently has no ability to check the target node's status before transfering 
the leadership.
+
+### Usage
+
+```bash
+ozone admin scm transfer -id <SCM_SERVICE_ID> -n <NEW_LEADER_ID>
+ozone admin scm transfer -id <SCM_SERVICE_ID> -r
+```
+
+*   `-id, --service-id`: Specifies the SCM Service ID.
+*   `-n, --newLeaderId, --new-leader-id`: The node ID of the SCM to which 
leadership will be transferred (e.g., `scm1`).

Review Comment:
   From https://issues.apache.org/jira/browse/HDDS-11839, we cannot use the SCM 
Node ID as the `--new-leader-id`, we need to use the SCM UUID (Raft peer ID)
   
   cc: @peterxcli 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to