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

fix: add recommended resource allocation #699

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Conversation

comqx
Copy link

@comqx comqx commented Feb 21, 2023

What type of PR is this?

fix

What this PR does / why we need it:

The resource configuration can be adjusted

Which issue(s) this PR fixes:

Fixes #
#698

Special notes for your reviewer:

@github-actions github-actions bot added area:recommendation deploy documentation Improvements or additions to documentation examples labels Feb 21, 2023
@comqx comqx changed the title add recommended resource allocation fix: add recommended resource allocation Feb 21, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 21, 2023

🎉 Successfully Build Images.
Now Support ARM Platforms.
Comment Post Time: 2023-02-22 19:45
Git Version: 61beeee

Docker Registry

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

Image Pull Command
crane-agent:pr-699-61beeee docker pull gocrane/crane-agent:pr-699-61beeee
dashboard:pr-699-61beeee docker pull gocrane/dashboard:pr-699-61beeee
metric-adapter:pr-699-61beeee docker pull gocrane/metric-adapter:pr-699-61beeee
craned:pr-699-61beeee docker pull gocrane/craned:pr-699-61beeee

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

Coding Registry

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

Image Pull Command
crane-agent:pr-699-61beeee docker pull finops-docker.pkg.coding.net/gocrane/crane/crane-agent:pr-699-61beeee
dashboard:pr-699-61beeee docker pull finops-docker.pkg.coding.net/gocrane/crane/dashboard:pr-699-61beeee
metric-adapter:pr-699-61beeee docker pull finops-docker.pkg.coding.net/gocrane/crane/metric-adapter:pr-699-61beeee
craned:pr-699-61beeee docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:pr-699-61beeee

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

Ghcr Registry

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

Image Pull Command
crane-agent:pr-699-61beeee docker pull ghcr.io/gocrane/crane/crane-agent:pr-699-61beeee
dashboard:pr-699-61beeee docker pull ghcr.io/gocrane/crane/dashboard:pr-699-61beeee
metric-adapter:pr-699-61beeee docker pull ghcr.io/gocrane/crane/metric-adapter:pr-699-61beeee
craned:pr-699-61beeee docker pull ghcr.io/gocrane/crane/craned:pr-699-61beeee

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

@@ -115,6 +115,13 @@ data:
apiVersion: apps/v1
- kind: StatefulSet
apiVersion: apps/v1
config:
Copy link
Member

Choose a reason for hiding this comment

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

no needed

@@ -13,6 +13,13 @@ recommenders:
apiVersion: apps/v1
- kind: StatefulSet
apiVersion: apps/v1
config:
Copy link
Member

Choose a reason for hiding this comment

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

also no needed

HalfLife: "24h",
BucketSize: "0.1",
MaxValue: "100",
HalfLife: rr.Recommender.Config["cpu-histogram-half-life"],
Copy link
Member

Choose a reason for hiding this comment

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

please refer to other configuration's implement in register.go

HalfLife: "48h",
BucketSize: "104857600",
MaxValue: "104857600000",
HalfLife: rr.Recommender.Config["mem-histogram-half-life"],
Copy link
Member

Choose a reason for hiding this comment

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

the same above

@@ -166,10 +166,17 @@ data:
apiVersion: apps/v1
- kind: StatefulSet
apiVersion: apps/v1
config: # settings for recommender
Copy link
Member

Choose a reason for hiding this comment

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

@@ -166,6 +166,13 @@ data:
apiVersion: apps/v1
- kind: StatefulSet
apiVersion: apps/v1
config: # settings for recommender
Copy link
Member

Choose a reason for hiding this comment

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

the same above

@comqx
Copy link
Author

comqx commented Feb 22, 2023

All adjustments have been made according to the specification

Signed-off-by: qixiang-liu <18311166263@163.com>
@qmhu qmhu merged commit e0d6320 into gocrane:main Feb 22, 2023
@comqx comqx deleted the feat-extconfig branch February 23, 2023 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:recommendation documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants