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

Mem percent watermark #557

Merged
merged 3 commits into from
Oct 14, 2022
Merged

Conversation

chenkaiyue
Copy link
Contributor

watermark of memory usage percent

@chenkaiyue
Copy link
Contributor Author

  1. deploy 2 pods which use 3.5G and 2G memory

  2. node use 78.7% memory

企业微信截图_cd6e5d90-8a7b-4b3f-b213-b51de7afaa01

  1. set watermark of memory usage percent to 50%

  2. pod with 3.5G memory has been evicted, pod with 2G memory is still running

企业微信截图_16995c41-fbd0-45c3-b968-63e5eeb35a71

@github-actions
Copy link
Contributor

github-actions bot commented Sep 15, 2022

🎉 Successfully Build Images.
Now Support ARM Platforms.
Comment Post Time: 2022-10-13 20:34
Git Version: 042d169

Docker Registry

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

Image Pull Command
crane-agent:pr-557-042d169 docker pull gocrane/crane-agent:pr-557-042d169
dashboard:pr-557-042d169 docker pull gocrane/dashboard:pr-557-042d169
metric-adapter:pr-557-042d169 docker pull gocrane/metric-adapter:pr-557-042d169
craned:pr-557-042d169 docker pull gocrane/craned:pr-557-042d169

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-557-042d169 \
                   --set metricAdapter.image.repository=gocrane/metric-adapter \
                   --set metricAdapter.image.tag=pr-557-042d169 \
                   --set craneAgent.image.repository=gocrane/crane-agent \
                   --set craneAgent.image.tag=pr-557-042d169 \
                   --set cranedDashboard.image.repository=gocrane/dashboard \
                   --set cranedDashboard.image.tag=pr-557-042d169 crane/crane

Coding Registry

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

Image Pull Command
crane-agent:pr-557-042d169 docker pull finops-docker.pkg.coding.net/gocrane/crane/crane-agent:pr-557-042d169
dashboard:pr-557-042d169 docker pull finops-docker.pkg.coding.net/gocrane/crane/dashboard:pr-557-042d169
metric-adapter:pr-557-042d169 docker pull finops-docker.pkg.coding.net/gocrane/crane/metric-adapter:pr-557-042d169
craned:pr-557-042d169 docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:pr-557-042d169

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-557-042d169 \
                   --set metricAdapter.image.repository=finops-docker.pkg.coding.net/gocrane/crane/metric-adapter \
                   --set metricAdapter.image.tag=pr-557-042d169 \
                   --set craneAgent.image.repository=finops-docker.pkg.coding.net/gocrane/crane/crane-agent \
                   --set craneAgent.image.tag=pr-557-042d169 \
                   --set cranedDashboard.image.repository=finops-docker.pkg.coding.net/gocrane/crane/dashboard \
                   --set cranedDashboard.image.tag=pr-557-042d169 crane/crane

Ghcr Registry

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

Image Pull Command
crane-agent:pr-557-042d169 docker pull ghcr.io/gocrane/crane/crane-agent:pr-557-042d169
dashboard:pr-557-042d169 docker pull ghcr.io/gocrane/crane/dashboard:pr-557-042d169
metric-adapter:pr-557-042d169 docker pull ghcr.io/gocrane/crane/metric-adapter:pr-557-042d169
craned:pr-557-042d169 docker pull ghcr.io/gocrane/crane/craned:pr-557-042d169

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-557-042d169 \
                   --set metricAdapter.image.repository=ghcr.io/gocrane/crane/metric-adapter \
                   --set metricAdapter.image.tag=pr-557-042d169 \
                   --set craneAgent.image.repository=ghcr.io/gocrane/crane/crane-agent \
                   --set craneAgent.image.tag=pr-557-042d169 \
                   --set cranedDashboard.image.repository=ghcr.io/gocrane/crane/dashboard \
                   --set cranedDashboard.image.tag=pr-557-042d169 crane/crane

@chenkaiyue
Copy link
Contributor Author

@mfanjie We can take this pr as standard, this pr includes all 3 features.

@chenkaiyue
Copy link
Contributor Author

Mem usage test:
#554 (comment)

@chenkaiyue
Copy link
Contributor Author

Mem percent test:
#557 (comment)

@yan234280533
Copy link

/LGTM

@chenkaiyue chenkaiyue merged commit cd75bf2 into gocrane:main Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants