Skip to content

update cooldown protection plugin and supports the protection of the maximum number of cooldown. #2363

Closed
Jason-Liu-Dream wants to merge 2 commits into
volcano-sh:masterfrom
Jason-Liu-Dream:feature/7-upgrade-cdp
Closed

update cooldown protection plugin and supports the protection of the maximum number of cooldown. #2363
Jason-Liu-Dream wants to merge 2 commits into
volcano-sh:masterfrom
Jason-Liu-Dream:feature/7-upgrade-cdp

Conversation

@Jason-Liu-Dream

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

Copy link
Copy Markdown

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.

…port,issue:#7

Signed-off-by: 刘毅(Jason Liu) <liuyi03@qiyi.com>
@volcano-sh-bot

Copy link
Copy Markdown
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.

Details 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 Thor-wl, hwdef, qiankunli, shinytang6 and wpeng102 and removed request for huone1, hzxuzhonghu and k82cn July 19, 2022 06:26
@Thor-wl

Thor-wl commented Jul 19, 2022

Copy link
Copy Markdown
Contributor

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

// 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
Copy Markdown
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
Copy Markdown
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) <liuyi03@qiyi.com>
@stale

stale Bot commented Sep 20, 2022

Copy link
Copy Markdown

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