vikrantmehta123 opened a new pull request, #2996:
URL: https://github.com/apache/datafusion-ballista/pull/2996

   # Which issue does this PR close?
   
   Closes #2820 .
   
   # Rationale for this change
   
   The executor currently samples free space once at startup, which could 
become stale as shuffle files or other things use up space.
   
   # What changes are included in this PR?
   
   - A new file is introduced which tracks the spill limits of live disk 
managers- free space + used.
   - Whenever we create a new runtime, a weak reference to its disk manager 
added in this `LiveSpillLimit` struct.
   - Following tests are added:
       - updating a live disk manager's spill limit
       - Removing a dropped disk manager.
       - Refresh updates the limits.
       - Stopping the refresher on executor shutdown.
   - I have tried to ensure that the a custom runtime keeps its limit when free 
space + usage is 100GB or less at creation, which was the earlier behavior.
   
   I needed some help with the following points:
   - What should be a reasonable refresh interval & how do I decide on it? ( I 
have kept as 10s. )
   - For custom runtimes, I have kept the original limit if it's <= 100 GB on 
refresh. Do we want this to be set to free + used on a successful refresh? And 
what is the behaviour expected when the disk space read fails?
   - Any tests or anything I have missed.
   
   # Are there any user-facing changes?
   Yes. When `--max-temp-directory-size` is unset, the executor adjusts the 
spill limit at periodic intervals. If an explicit value is set, it takes 
precedence.
   
   **Note:** I have taken help from AI to understand the issue and come up with 
ideas to implement and test. But I have understood the changes I made and they 
look reasonable to me. 


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