xichen01 commented on PR #4670:
URL: https://github.com/apache/ozone/pull/4670#issuecomment-1537167895
> @xichen01 The current refresh interface is generic for `OM / SCM`( or
`DN`), format as:
>
> ```shell
> ozone admin reconfig --address=<address> [COMMAND]
> ```
>
> It only applies to a single process, which is not a problem for a small
number of services. However, it may not be a good idea for a large number of
DNs. We can discuss first and then choose a relatively better solution.
>
> 1. **If reconfig from DN**:Is there a good way to refresh in batches?
> 2. **If reconfig from SCM** (it may be necessary to change the command
format to support reconfig by component (such as datanode)) : How to ensure
that all DNs reconfig successfully?
Perhaps we can refer to HDFS and use the command
## Format A
- refresh All live-DNs:
`ozone admin reconfig datanode livenodes [COMMAND]`
- refresh a single DN :
`ozone admin reconfig --address=<address> [COMMAND]`
The `datanode` only be specified if you want to refresh all DNs.
## Format B
- refresh All live-DNs:
`ozone admin reconfig datanode livenodes [COMMAND]`
- refresh a single DN (specified hostname instead of address(ip:port)):
`ozone admin reconfig datanode --address=<hostname> [COMMAND]`
The `datanode` is needed if you want to refresh DN
For `Format A` and `Format B`, the existing commands of recofig SCM/OM do
not need to be modified.
`Format B` clearly specifies that `reconfig` requests are to be sent to DN,
and if we want to implement DN reconfig through the `client --> SCM --> DNs
process`, `Format B` is more appropriate. This allows the SCM to clearly know
whether the reconfig request is sent to itself or needs to be forwarded to the
DN.
--
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]