aryangupta1998 commented on PR #8766:
URL: https://github.com/apache/ozone/pull/8766#issuecomment-3061361560

   @ivandika3, sharing some results from my testing:
   
   These three properties are interdependent:
   
   - ozone.key.deleting.limit.per.task (default: 20k)
   
   - hdds.scm.block.deletion.per-interval.max (default: 100k)
    
   - hdds.datanode.block.deleting.limit.per.interval (default: 5k)
   
   Test setup: HA cluster with 10 Datanodes
   For 1 million keys, I observed:
   
   - OM took ~50 minutes
    
   - SCM took ~30 minutes
    
   - DNs took ~1 hour
   
   Based on my observations:
   
   - A key with a 10-character name and 10 blocks results in 20k keys consuming 
~1.8 MB when submitted to SCM via Ratis.
   
   - 100k blocks in SCM consume ~1 MB.
   
   Considering the default Ratis log appender size of 32 MB, I tuned the 
configs as follows:
   
   - ozone.key.deleting.limit.per.task → 50k
   
   - hdds.scm.block.deletion.per-interval.max → 500k
    
   - hdds.datanode.block.deleting.limit.per.interval → 20k
   
   Results:
   
   - OM took ~20 minutes
   
   - SCM took ~6 minutes
   
   - DNs took ~15 minutes
   
   OM’s 50k key batch consumed ~10 MB, and SCM’s batch used ~5 MB — both safely 
within Ratis limits.
   
   I also tested with:
   
   - ozone.key.deleting.limit.per.task → 100k
   
   - hdds.scm.block.deletion.per-interval.max → 2500k
   
   - hdds.datanode.block.deleting.limit.per.interval → 100k
   
   This worked fine too, but I avoided setting such high defaults.
   
   Additionally, I’ve introduced new metrics, added them to Grafana, and 
created a lightweight dashboard to track deletion progress.
   You can find all related work under the umbrella JIRA: 
[HDDS-11506](https://issues.apache.org/jira/browse/HDDS-11506) Improvements for 
large scale deletion.


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