-
Notifications
You must be signed in to change notification settings - Fork 447
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
KEDA documentation around number of replicas supported for metrics server is contradictory #1450
Comments
It is not because you can, that it is supported :) Metric server only has 1 replica that will really do anything, if you add more they are just in standby mode until the other one goes down. But @zroubalik / @JorTurFer can verify my thoughts |
Correct, unless you add the cli flag mentioned in the screenshot. |
I see, so it's essentially the same situation as the operator, where only one replica does work and the other is a standby? In that case, why would the "Support Replicas" value for the operator be 2? |
As for the operator, having more replicas improves the HA but they won't balance the load. I mean, if you have 2 replicas for each component, only one of each will work (operator runs with leader election and metrics server is called reusing the socket by the control plane) but in case of disruption where you lose a node and the new pods can't be scheduled, the second replica (already scheduled, up and running) can take the control and keep the system running |
Thanks all! I actually tried deploying two metrics-server pods without setting
This makes me think that both metrics-server pods are doing useful work even without
We're running keda 2.8 on K8s 1.22. |
Metrics server doesn't have leader election, all the instances are functional. It's the control plane who calls to a single instance based on the cli flag. I don't have information about how different providers configure this, so maybe it's enabled in your clusters |
Thanks @JorTurFer, that makes a lot of sense. I believe https://keda.sh/docs/2.14/operate/cluster/#configure-leader-election needs to be updated then, since it suggests configuring leader election parameters for the metrics-server, which doesn't use leader election at all. |
you're totally right, those leader election envs don't apply to the metrics server. Are you willing to open a PR with the change? |
Yup! |
I think we are good to close, no? |
Under https://keda.sh/docs/2.14/operate/cluster/#high-availability, there is a table like so:
For the "Metrics Server" deployment, the "Support Replicas" column has the value "1", which reads as only one replica is supported. However, the "Note" column mentions that "You can run multiple replicas of our metrics sever", which indicates that multiple replicas are supported.
It should be clarified exactly how many replicas are supported and perhaps the language for the "Support Replicas" column should be updated.
The text was updated successfully, but these errors were encountered: