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

add cpumanager #574

Merged
merged 2 commits into from
Oct 11, 2022
Merged

add cpumanager #574

merged 2 commits into from
Oct 11, 2022

Conversation

Garrybest
Copy link
Member

Signed-off-by: Garrybest garrybest@foxmail.com

What type of PR is this?

Add cpumanager.

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@Garrybest Garrybest force-pushed the pr_cpumanager branch 2 times, most recently from d6b622a to 6494733 Compare September 29, 2022 08:45
@github-actions
Copy link
Contributor

github-actions bot commented Sep 29, 2022

🎉 Successfully Build Images.
Now Support ARM Platforms.
Comment Post Time: 2022-10-10 11:30
Git Version: 75d51c0

Docker Registry

Overview: https://hub.docker.com/u/gocrane

Image Pull Command
crane-agent:pr-574-75d51c0 docker pull gocrane/crane-agent:pr-574-75d51c0
dashboard:pr-574-75d51c0 docker pull gocrane/dashboard:pr-574-75d51c0
metric-adapter:pr-574-75d51c0 docker pull gocrane/metric-adapter:pr-574-75d51c0
craned:pr-574-75d51c0 docker pull gocrane/craned:pr-574-75d51c0

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=gocrane/craned \
                   --set craned.image.tag=pr-574-75d51c0 \
                   --set metricAdapter.image.repository=gocrane/metric-adapter \
                   --set metricAdapter.image.tag=pr-574-75d51c0 \
                   --set craneAgent.image.repository=gocrane/crane-agent \
                   --set craneAgent.image.tag=pr-574-75d51c0 \
                   --set cranedDashboard.image.repository=gocrane/dashboard \
                   --set cranedDashboard.image.tag=pr-574-75d51c0 crane/crane

Coding Registry

Overview: https://finops.coding.net/public-artifacts/gocrane/crane/packages

Image Pull Command
crane-agent:pr-574-75d51c0 docker pull finops-docker.pkg.coding.net/gocrane/crane/crane-agent:pr-574-75d51c0
dashboard:pr-574-75d51c0 docker pull finops-docker.pkg.coding.net/gocrane/crane/dashboard:pr-574-75d51c0
metric-adapter:pr-574-75d51c0 docker pull finops-docker.pkg.coding.net/gocrane/crane/metric-adapter:pr-574-75d51c0
craned:pr-574-75d51c0 docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:pr-574-75d51c0

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=finops-docker.pkg.coding.net/gocrane/crane/craned \
                   --set craned.image.tag=pr-574-75d51c0 \
                   --set metricAdapter.image.repository=finops-docker.pkg.coding.net/gocrane/crane/metric-adapter \
                   --set metricAdapter.image.tag=pr-574-75d51c0 \
                   --set craneAgent.image.repository=finops-docker.pkg.coding.net/gocrane/crane/crane-agent \
                   --set craneAgent.image.tag=pr-574-75d51c0 \
                   --set cranedDashboard.image.repository=finops-docker.pkg.coding.net/gocrane/crane/dashboard \
                   --set cranedDashboard.image.tag=pr-574-75d51c0 crane/crane

Ghcr Registry

Overview: https://github.com/orgs/gocrane/packages?repo_name=crane

Image Pull Command
crane-agent:pr-574-75d51c0 docker pull ghcr.io/gocrane/crane/crane-agent:pr-574-75d51c0
dashboard:pr-574-75d51c0 docker pull ghcr.io/gocrane/crane/dashboard:pr-574-75d51c0
metric-adapter:pr-574-75d51c0 docker pull ghcr.io/gocrane/crane/metric-adapter:pr-574-75d51c0
craned:pr-574-75d51c0 docker pull ghcr.io/gocrane/crane/craned:pr-574-75d51c0

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=ghcr.io/gocrane/crane/craned \
                   --set craned.image.tag=pr-574-75d51c0 \
                   --set metricAdapter.image.repository=ghcr.io/gocrane/crane/metric-adapter \
                   --set metricAdapter.image.tag=pr-574-75d51c0 \
                   --set craneAgent.image.repository=ghcr.io/gocrane/crane/crane-agent \
                   --set craneAgent.image.tag=pr-574-75d51c0 \
                   --set cranedDashboard.image.repository=ghcr.io/gocrane/crane/dashboard \
                   --set cranedDashboard.image.tag=pr-574-75d51c0 crane/crane

@Garrybest Garrybest force-pushed the pr_cpumanager branch 4 times, most recently from 029908b to 4a3346a Compare September 30, 2022 01:30
Signed-off-by: Garrybest <garrybest@foxmail.com>
cmd/crane-agent/app/options/option.go Outdated Show resolved Hide resolved
deploy/crane-agent/daemonset.yaml Outdated Show resolved Hide resolved
if err := agent.CreateNodeResourceTopology(sysPath); err != nil {
return nil, err
}
if utilfeature.DefaultFeatureGate.Enabled(features.CraneCPUManager) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a case that we enable nrt only but do not enable cpumanager? if not, should we have a single feature gate?

Copy link
Member Author

@Garrybest Garrybest Oct 10, 2022

Choose a reason for hiding this comment

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

Yes, in that case only nrt is collected, cpumanager does nothing to allocate cpuset. So they are different.

pkg/ensurance/cm/cpumanager/cpu_manager.go Outdated Show resolved Hide resolved
Signed-off-by: Garrybest <garrybest@foxmail.com>
Copy link
Contributor

@mfanjie mfanjie left a comment

Choose a reason for hiding this comment

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

LGTM

@mfanjie mfanjie merged commit b300fc6 into gocrane:main Oct 11, 2022
@Garrybest Garrybest deleted the pr_cpumanager branch October 11, 2022 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants