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

Customize metrics and support scale to zero functionality #15645

Open
testwhygh opened this issue Dec 3, 2024 · 4 comments
Open

Customize metrics and support scale to zero functionality #15645

testwhygh opened this issue Dec 3, 2024 · 4 comments
Labels
kind/question Further information is requested

Comments

@testwhygh
Copy link

Ask your question here:

Hello, in knative doc, it says KPA supports scale to zero functionality, does not support CPU-based autoscaling. And HPA does not support scale to zero functionality, but supports CPU-based autoscaling.
If I want to customize metrics such as cpu-based autoscaling while maintaining the ability to scale to 0, what should I do ?
Thanks.

@testwhygh testwhygh added the kind/question Further information is requested label Dec 3, 2024
@skonto
Copy link
Contributor

skonto commented Dec 3, 2024

Hi @testwhygh pls take a look at autoscaler-keda, still Alpha status though. HPA does not scale from/to zero, KEDA does offer that for custom metrics.

@testwhygh
Copy link
Author

Hi @testwhygh pls take a look at autoscaler-keda, still Alpha status though. HPA does not scale from/to zero, KEDA does offer that for custom metrics.

Amazing, your extension integrates KEDA into Knative. Because KEDA can scale to 0 and supports customize metrics, after using this extension, Knative also has the above capabilities. Is that right?

@testwhygh
Copy link
Author

Hi @testwhygh pls take a look at autoscaler-keda, still Alpha status though. HPA does not scale from/to zero, KEDA does offer that for custom metrics.

We have deploy Keda in our cluster and found that controlling deployments by KPA and KEDA at the same time will cause conflicts. Does this extension replace KPA/HPA with KEDA?

@skonto
Copy link
Contributor

skonto commented Dec 6, 2024

This extension is meant to replace the hpa autoscaler only. The custom metrics support in Serving for KPA was abandoned years ago due to no demand back then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants