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 workload selector for evpa #285

Conversation

kitianFresh
Copy link
Contributor

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #284

Special notes for your reviewer:

@kitianFresh kitianFresh force-pushed the feature/use-workoadinfo-to-query-container-for-metricserver branch 2 times, most recently from 5537351 to 59a713a Compare April 26, 2022 13:02
@kitianFresh kitianFresh force-pushed the feature/use-workoadinfo-to-query-container-for-metricserver branch from 59a713a to 59deb96 Compare April 27, 2022 03:48
tsList, err = utils.QueryPredictedValues(e.Predictor, caller, memConfig, memoryMetricNamer)

var errs []error
// first register cpu & memory, or the memory will be not registered before the cpu prediction succeed
Copy link
Member

Choose a reason for hiding this comment

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

Would you please make this commend more clearer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would you please make this commend more clearer.

ok. originally, we call utils.QueryPredictedValues it will do register & predict. then it failed for cpu, then it will be always return directly, but the memory is not registered forever before the cpu is succeed.

so, for each predicting, we should first to register what you need to predict, then do predicting. because evpa maybe has multiple metrics for predicting, so we first register all of them, then get predicted value by reconciling

I will make it clear more

pkg/autoscaling/estimator/percentile.go Show resolved Hide resolved
@yufeiyu
Copy link
Contributor

yufeiyu commented Apr 27, 2022

LGTM

@qmhu
Copy link
Member

qmhu commented Apr 28, 2022

/LGTM

@kitianFresh kitianFresh merged commit 07afecd into gocrane:main Apr 28, 2022
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.

Use workload selector to select pods metrics when use metric server
3 participants