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

When online resource usage is too high, the agent will set ext resources to 0 #890

Open
payall4u opened this issue Jan 18, 2024 · 0 comments · May be fixed by #892
Open

When online resource usage is too high, the agent will set ext resources to 0 #890

payall4u opened this issue Jan 18, 2024 · 0 comments · May be fixed by #892
Labels
kind/bug Something isn't working

Comments

@payall4u
Copy link
Collaborator

Describe the bug
When online resource usage is too high, the agent will set ext resources to 0, even if there are pods using ext resources on the node.

Reproduce steps

  1. Find a node with 4 cores, of which 3 cores can be used for offline services (gocrane.io/cpu: 3)
  2. Create an pod with ext resources, such as gocrane.io/cpu: 1
  3. Create an pod with online resources, and run stress -c 4
  4. Crane agent will set gocrane.io/cpu=0
  5. Kubelet with evict ext pod if restart.

Expected behavior
Crane agent will set gocrane.io/cpu=1, and remain sum of ext resources of pods on the current node at least.

Screenshots
企业微信截图_daa0432e-70a6-4559-9b43-ce0c6bb54215

Environment (please complete the following information):

  • K8S Version: 1.26
@payall4u payall4u added the kind/bug Something isn't working label Jan 18, 2024
@payall4u payall4u linked a pull request Jan 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant