We are using the Flink operator in HA mode with a total of 3 replicas. Recently we enabled autoscaler at the Operator level (to target all jobs).
Behavior before enabling autoscaler - As expected, one Flink operator replica pod was the leader and the remaining two standbys. Verified via logs that only one replica was actually tracking and reconciling jobs, other replicas had some activity but mainly around reporting metrics.
After enabling autoscaler - All three replicas seem to be tracking/reconciling jobs. Verified this from the log
Resource fully reconciled, nothing to do...
Also,
sum(flink_k8soperator_namespace_Count)
now reports 3 times the actual value which seems in line with all three replicas being active now.
Why are we seeing this behavior change? Isn't the expected behavior should be one leader and remaining standby replicas?
I was not able to find anything related in the docs that could explain this.