Skip to content

Conversation

Jason-Liu-Dream
Copy link

@Jason-Liu-Dream Jason-Liu-Dream commented Jul 19, 2022

as issue #2149 describes, now cdp plugin supports the protection of the maximum number of cooldown.

issue: #2362 provide a new label/annotation named "volcano.sh/max-cooldown-times", whose value means the max number of cooldown(eviction times) for entire job or dedicated task. if the task cooldown times are greater than this value, the task cannot be evicted.

update cdp plugin to participate in preempting action, and ensure pods that belong to protected tasks will be not in the result victims list.

@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign thor-wl
You can assign the PR to them by writing /assign @thor-wl in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 19, 2022
@Thor-wl Thor-wl requested review from shinytang6, Thor-wl, hwdef, qiankunli and wpeng102 and removed request for hzxuzhonghu, k82cn and huone1 July 19, 2022 06:26
@Thor-wl
Copy link
Contributor

Thor-wl commented Jul 19, 2022

/cc @flyhighzy Please help take a review, too. Thanks!

@@ -46,6 +46,10 @@ const PodPreemptable = "volcano.sh/preemptable"
// Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
const CooldownTime = "volcano.sh/cooldown-time"

// MaxCooldownTimes is the annotation key of Pod to set maximum number of cooldown(evictions),
Copy link
Member

Choose a reason for hiding this comment

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

Do not modify the files under vendor directly.

Copy link
Author

Choose a reason for hiding this comment

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

that's my fault, let us discourse and decide to add this label in apis volcano-sh/apis#84 repo.

Signed-off-by: 刘毅(Jason Liu) <[email protected]>
@stale
Copy link

stale bot commented Sep 20, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 20, 2022
@stale stale bot closed this Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants