sumitagrawl commented on code in PR #8460:
URL: https://github.com/apache/ozone/pull/8460#discussion_r2098210283


##########
hadoop-hdds/docs/content/design/full-volume-handling.md:
##########
@@ -0,0 +1,65 @@
+---
+title: Full Volume Handling
+summary: Immediately trigger Datanode heartbeat on detecting full volume
+date: 2025-05-12
+jira: HDDS-12929
+status: Design 
+author: Siddhant Sangwan, Sumit Agrawal
+---
+
+<!--
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License. See accompanying LICENSE file.
+-->
+
+## Summary
+On detecting a full Datanode volume during write, immediately trigger a 
heartbeat containing the latest storage report.
+
+## Problem
+When a Datanode volume is close to full, the SCM may not be immediately aware 
because storage reports are only sent 
+to it every thirty seconds. This can lead to the SCM allocating multiple 
blocks to containers on a full DN volume, 
+causing performance issues when the write fails. The proposal will partly 
solve this problem.

Review Comment:
   @siddhantsangwan 
   When container is `90% full`, we add ICR for closeContainer action to be 
send for next HB. This can be send immediately with this which is already 
present, and no need wait for next HB for these.
   I think when sending ICR for this, it would have been added, can be verified.
   
   @ChenSammi Since DN is already taking decision to stop block allocation when 
90% is full and send is send, May be SCM sending open container list will not 
provide any further benefits as action is already taken by DN.
   
   Need to see if any additional benefits we can having sending OpenContainer 
information also. This may be tracked to send Open Containers on every HB with 
separate JIRA and based on benefits, this can be implemented.



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