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

The cpu that can't reclaimed need add cpu idle of ExclusiveCpuSet #222

Conversation

shijieqin
Copy link
Collaborator

@shijieqin shijieqin commented Mar 21, 2022

What this PR does / why we need it:

  1. The crane-agent creates the tsp when it starts, and the Node Resource Manager only uses the data of the tsp itself.
  2. Node resource manager use local data and tsp data.
  3. Configurable percent for idle resource reallocation. Configurable percent for idle resource reallocation #134
  4. Add nodelocal metric exclusive_cpu_idle
  5. The cpu that can't reclaimed need add cpu idle of ExclusiveCpuSet

cmd/crane-agent/app/agent.go Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/ensurance/collector/cadvisor/cadvisor_linux.go Outdated Show resolved Hide resolved
pkg/resource/node_resource_manager.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Show resolved Hide resolved
pkg/resource/node_resource_manager.go Outdated Show resolved Hide resolved
pkg/resource/node_resource_manager.go Show resolved Hide resolved
@qmhu
Copy link
Member

qmhu commented Mar 24, 2022

Please squash commits before the pr merged

@shijieqin shijieqin closed this Mar 25, 2022
@shijieqin shijieqin deleted the Cannot_reclaim_cpu_need_add_cpu_idle_of_ExclusiveCpuSet branch March 25, 2022 04:02
@shijieqin shijieqin restored the Cannot_reclaim_cpu_need_add_cpu_idle_of_ExclusiveCpuSet branch March 25, 2022 04:03
@shijieqin shijieqin reopened this Mar 25, 2022
…urceManager will use both local and tsp data
@shijieqin shijieqin force-pushed the Cannot_reclaim_cpu_need_add_cpu_idle_of_ExclusiveCpuSet branch from 5ad8600 to 245428a Compare March 25, 2022 04:18
@shijieqin
Copy link
Collaborator Author

Please squash commits before the pr merged

fine!

pkg/resource/node_resource_manager.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/ensurance/collector/nodelocal/cpu.go Outdated Show resolved Hide resolved
pkg/ensurance/cm/advanced_cpu_manager.go Show resolved Hide resolved
pkg/resource/node_resource_manager.go Outdated Show resolved Hide resolved
cmd/crane-agent/app/options/option.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/utils/string.go Show resolved Hide resolved
pkg/ensurance/collector/nodelocal/cpu.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Show resolved Hide resolved
pkg/agent/agent.go Show resolved Hide resolved
@shijieqin shijieqin force-pushed the Cannot_reclaim_cpu_need_add_cpu_idle_of_ExclusiveCpuSet branch from 09bd549 to 6089ed3 Compare April 21, 2022 12:21
Change the units of ext-cpu
@shijieqin shijieqin force-pushed the Cannot_reclaim_cpu_need_add_cpu_idle_of_ExclusiveCpuSet branch from 6089ed3 to aa85501 Compare April 21, 2022 12:28
@yan234280533
Copy link

/LGTM

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.

4 participants