Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance usage plugin #3056

Closed

Conversation

gj409237405
Copy link
Contributor

@gj409237405 gj409237405 commented Aug 15, 2023

solve #3042

First optimize the usage plugin configuration of Volcano.
before that

  • name: usage
    arguments:
    thresholds:
    CPUUsageAvg.5m: 80
    MEMUsageAvg.5m: 90

after that

name: usage
arguments:
usage.weight: 10
type: average
thresholds:
cpu: 70
mem: 70
period: 10m

Second, make it easier for users to use the usage plugin
before
You must first define the rules of Pro, as follows

groups:

name: cpu_mem_usage_active
interval: 30s
rules:
    record: mem_usage_active
    expr: 100*(1-node_memory_MemAvailable_bytes/node_memory_MemTotal_bytes)
name: cpu-usage-1m
interval: 1m
rules:
    record: cpu_usage_avg_5m
    expr: 100 - (avg by (instance) (irate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)
name: mem-usage-1m
interval: 1m
rules:
    record: mem_usage_avg_5m
    expr: avg_over_time(mem_usage_active[5m])

after that
You don't need to define general rules, you can use the usage plugin directly

@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 qiankunli
You can assign the PR to them by writing /assign @qiankunli 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 Aug 15, 2023
@stale
Copy link

stale bot commented Oct 15, 2023

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 Oct 15, 2023
@stale stale bot closed this Dec 15, 2023
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.

2 participants