Skip to content

[YUNIKORN-3092] Reservations can permanently block nodes, leading to …#1025

Closed
manirajv06 wants to merge 3 commits into
apache:masterfrom
manirajv06:YUNIKORN-3092
Closed

[YUNIKORN-3092] Reservations can permanently block nodes, leading to …#1025
manirajv06 wants to merge 3 commits into
apache:masterfrom
manirajv06:YUNIKORN-3092

Conversation

@manirajv06

Copy link
Copy Markdown
Contributor

…preemption failure and a stuck scheduler state

What is this PR for?

Consider even the nodes which has non daemon set reservations and reservation (allocation) not triggered preemption earlier as candidate to increase the chances of preemption. But cancel those reservations only if its priority is lesser than the preemptor priority and waiting in reservation for more than 1 hour.

What type of PR is it?

  • - Improvement

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-3092

How should this be tested?

Screenshots (if appropriate)

Questions:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

…preemption failure and a stuck scheduler state
@manirajv06 manirajv06 self-assigned this Jul 7, 2025
@manirajv06
manirajv06 requested review from craigcondit, pbacsko, wilfred-s and yangwwei and removed request for wilfred-s July 7, 2025 17:26
…r priority 3. Not exceeds waiting time 4. Exceeds waiting time
@codecov

codecov Bot commented Jul 8, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.74%. Comparing base (29e95b6) to head (d5d56d3).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1025      +/-   ##
==========================================
+ Coverage   82.68%   82.74%   +0.05%     
==========================================
  Files          98       98              
  Lines       15690    15719      +29     
==========================================
+ Hits        12973    13006      +33     
+ Misses       2441     2438       -3     
+ Partials      276      275       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jdaciuk jdaciuk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirajv06 Thanks for taking up this issue and this LGTM. Looking forward to upgrading to the eventual release.

Personally we'd like to also cancel reservations of equal priority, but I understand that wouldn't appeal to everyone. Left some more thoughts in the JIRA ticket since they are less relevant to this code.

Comment thread pkg/scheduler/objects/application.go Outdated
Comment thread pkg/scheduler/objects/preemption.go
…setup methods 2. Removed the option to set reservation wait timeout
@manirajv06
manirajv06 requested a review from pbacsko August 4, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants