sarvekshayr opened a new pull request, #8003:
URL: https://github.com/apache/ozone/pull/8003

   ## What changes were proposed in this pull request?
   The following deletion related configurations are now dynamically 
reconfigurable without requiring a restart. 
   This allows for easy tuning of deletion in response to logs and metrics.
   
   OM:
   - ozone.directory.deleting.service.interval
   - ozone.thread.number.dir.deletion 
   
   DATANODE:
   - ozone.block.deleting.service.interval 
   - ozone.block.deleting.service.timeout   
   
   ## What is the link to the Apache JIRA
   [HDDS-11513](https://issues.apache.org/jira/browse/HDDS-11513)
   
   ## How was this patch tested?
   OM:
   - List all OM reconfigurable properties
   ```
   bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 properties
   OM: Node [om:9862] Reconfigurable properties:
   ozone.administrators
   ozone.directory.deleting.service.interval
   ozone.key.deleting.limit.per.task
   ozone.om.server.list.max.size
   ozone.om.volume.listall.allowed
   ozone.readonly.administrators
   ozone.thread.number.dir.deletion
   ```
   - Reconfigured `ozone.directory.deleting.service.interval` successfully
   ```
   bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 start     
   OM: Started reconfiguration task on node [om:9862].
   bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 status
   OM: Reconfiguring status for node [om:9862]: started at Tue Mar 04 05:51:56 
UTC 2025 and finished at Tue Mar 04 05:51:56 UTC 2025.
   SUCCESS: Changed property ozone.directory.deleting.service.interval
           From: "1m"
           To: "2m"
   ```
   - Reconfigured `ozone.thread.number.dir.deletion` successfully
   ```
   bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 start     
   OM: Started reconfiguration task on node [om:9862].
   bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 status
   OM: Reconfiguring status for node [om:9862]: started at Tue Mar 04 06:41:19 
UTC 2025 and finished at Tue Mar 04 06:41:19 UTC 2025.
   SUCCESS: Changed property ozone.thread.number.dir.deletion
           From: ""
           To: "20"
   ```
   - Error case when `ozone.thread.number.dir.deletion` value is negative.
   ```
   bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 start     
   OM: Started reconfiguration task on node [om:9862].
   bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 status
   OM: Reconfiguring status for node [om:9862]: started at Tue Mar 04 07:07:08 
UTC 2025 and finished at Tue Mar 04 07:07:08 UTC 2025.
   FAILED: Change property ozone.thread.number.dir.deletion
           From: ""
           To: "-20"
           Error: ozone.thread.number.dir.deletion cannot be negative..
   ```
   
   DATANODE:
   - List all DN reconfigurable properties
   ```
   bash-5.1$ ozone admin reconfig --service=DATANODE --address=datanode:19864 
properties
   DN: Node [datanode:19864] Reconfigurable properties:
   hdds.datanode.block.delete.threads.max
   hdds.datanode.block.deleting.limit.per.interval
   hdds.datanode.replication.streams.limit
   ozone.block.deleting.service.interval
   ozone.block.deleting.service.timeout
   ozone.block.deleting.service.workers
   ```
   - Reconfigured `ozone.block.deleting.service.interval` and 
`ozone.block.deleting.service.timeout` successfully
   ```
   bash-5.1$ ozone admin reconfig --service=DATANODE --address=datanode:19864 
start     
   DN: Started reconfiguration task on node [datanode:19864].
   bash-5.1$ ozone admin reconfig --service=DATANODE --address=datanode:19864 
status
   DN: Reconfiguring status for node [datanode:19864]: started at Tue Mar 04 
05:50:29 UTC 2025 and finished at Tue Mar 04 05:50:29 UTC 2025.
   SUCCESS: Changed property ozone.block.deleting.service.interval
           From: "1m"
           To: "2m"
   SUCCESS: Changed property ozone.block.deleting.service.timeout
           From: "300000ms"
           To: "350000ms"
   ```


-- 
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