[ 
https://issues.apache.org/jira/browse/HDDS-3591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17653599#comment-17653599
 ] 

Hongbing Wang commented on HDDS-3591:
-------------------------------------

I added the following design document:
h2. Reconfigurability in Ozone
h4. Goals: 

Add an generic interface for dynamically reconfiguring for the OM or SCM 
service.
h4. Solution:

It might be a good idea to use dynamic reconfiguring commands similar to those 
used in hadoop projects. In hadoop, there are two general refresh interface: 
`RefreshHandler` which refreshes the specified key, and `ReconfigurableBase` 
which refreshes the changed value in the configuration file. This design will 
be based on `ReconfigurableBase`.

The refresh command in Hadoop is as follows:
{code:java}
hdfs dfsadmin -reconfig <namenode|datanode> <host:ipc_port> 
<start|status|properties> {code}
The refresh command in Ozone is as follows:
{code:java}
ozone admin om reconfig -address=<ip:port> -op=start|status|properties {code}
`ServiceRuntimeInfoImpl` is a common implementation class for OM and SCM 
runtimes. We can have the ServiceRuntimeInfoImpl inherit ReconfigurableBase.

Follow-up:We can abstract the protocol class into the `hdds-server-framework` 
module so that it can be reused as a common part for other components, if 
needed.

 

> ozone.administrators support dynamic changes through the cli.
> -------------------------------------------------------------
>
>                 Key: HDDS-3591
>                 URL: https://issues.apache.org/jira/browse/HDDS-3591
>             Project: Apache Ozone
>          Issue Type: Improvement
>    Affects Versions: 1.0.0
>            Reporter: mingchao zhao
>            Priority: Major
>              Labels: pull-request-available
>
> The current configuration of ozone. Administrators is static, so we need to 
> restart om if we want to add a new admin. This is inconvenient, we hope to be 
> able to dynamically add admin through cli. And we need to save the 
> persistence in case lose it on the next reboot.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to