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

Algo: Introduce support for pods metric query as workload external query & other tweaks #85

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

zqzten
Copy link
Member

@zqzten zqzten commented Dec 14, 2023

What type of PR is this?

/kind feature
/kind algorithm

What this PR does / why we need it:

This PR introduces support for pods metric query as workload external query.

Previously, the workload external query is only used as a special case of external metric query for ready replicas history query in the predictive portrait algorithm. After some thoughts, I found its semantics more close to pods metric query because it gathers metric of workload's pods just like the workload resource query for the resource metric query under history query cases. This change can also bring unified behavior for pods and external metric query.

This PR also contains some other tweaks for the algorithm scripts, please see changes for details.

Signed-off-by: Zach Zhu <zzqshu@126.com>
Signed-off-by: Zach Zhu <zzqshu@126.com>
Signed-off-by: Zach Zhu <zzqshu@126.com>
@zqzten zqzten added kind/feature Categorizes issue or PR as related to a new feature or enhancements of an existing feature. kind/algorithm Categorizes issue or PR as related to algorithm. labels Dec 14, 2023
@zqzten zqzten added this to the algorithm-v0.2 milestone Dec 14, 2023
@dayko2019 dayko2019 merged commit 660a4b3 into traas-stack:main Dec 15, 2023
2 checks passed
@zqzten zqzten deleted the algorithm branch December 15, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/algorithm Categorizes issue or PR as related to algorithm. kind/feature Categorizes issue or PR as related to a new feature or enhancements of an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants