siddhantsangwan commented on PR #8460: URL: https://github.com/apache/ozone/pull/8460#issuecomment-2919119580
I discussed this design with several people in a meeting. Here are some of the important points: 1. Trying to prevent over allocation of blocks to a container is complicated. We could track how much space we've allocated to a container in the SCM - this is doable on the surface but won't actually work well. That's because SCM is asked for a block (256MB), but SCM doesn't know how much data a client will actually write to that block file. The client may only write 1MB, for example. So SCM could track that it has already allocate 5 GB to a container, and will open another container for incoming requests, but the client may actually only write 1GB. This would lead to a lot of open containers when we have 10k requests/second. (brought up @sumitagrawl and @ChenSammi). 2. Sending open container reports regularly (every 30 seconds for example) can help a little bit, but won't solve the problem. We won't take this approach for now. (discussed with @ChenSammi and @nandakumar131). 3. A problem out of scope of this design, but was discussed, is that Replication Manager + Placement Policy should not keep on selecting a close-to-full Datanode as the target for a container. https://issues.apache.org/jira/browse/HDDS-12998, which is related to this, was also briefly mentioned. This point should be analysed in a different jira. (brought up by @ashishkumar50). In summary, the only change this design proposes is to immediately trigger a heartbeat containing storage reports of all volumes when the `isVolumeFull` check returns true. This will promptly update the volumes' storage stats in the SCM. The SCM can take these into account when creating new pipelines - there's already [logic](https://github.com/apache/ozone/blob/53673c564d6b97d8198233837c9d5e64b8f4d6f7/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/SCMCommonPlacementPolicy.java#L298) in the SCM for that. This is the only remaining open point for discussion - https://github.com/apache/ozone/pull/8460#discussion_r2099802337. -- 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]
