-
Notifications
You must be signed in to change notification settings - Fork 600
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
Make autoscaler leader aware #6814
Conversation
The autoscaler runs in every controller replica [1], it tries to scale down on every replica after the given refresh period, and sometimes the 2 replicas don't agree on which value to use for the new replicas since the state is lister/cache based, leading to a too fast scale up or down behavior or sometime not converging. (also because of knative#6733) [1] https://github.com/knative/eventing/blob/1092472f440586099d6a5cbf1d3234bb36431af4/pkg/scheduler/statefulset/autoscaler.go#L85-L103 Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
0f0260d
to
0e207a0
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #6814 +/- ##
=======================================
Coverage 80.45% 80.46%
=======================================
Files 236 236
Lines 12213 12237 +24
=======================================
+ Hits 9826 9846 +20
- Misses 1896 1899 +3
- Partials 491 492 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
/cc @matzew |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matzew, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes knative#6732 The autoscaler runs in every controller replica [1], it tries to scale down on every replica after the given refresh period, and sometimes the 2 replicas don't agree on which value to use for the new replicas since the state is lister/cache based, leading to a too fast scale up or down behavior or sometime not converging. (also because of knative#6733) Implementations should be using knative/pkg#2675 for enabling leader-aware autoscaler. (PR knative/pkg#2688) [1] https://github.com/knative/eventing/blob/1092472f440586099d6a5cbf1d3234bb36431af4/pkg/scheduler/statefulset/autoscaler.go#L85-L103 Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Fixes knative#6732 The autoscaler runs in every controller replica [1], it tries to scale down on every replica after the given refresh period, and sometimes the 2 replicas don't agree on which value to use for the new replicas since the state is lister/cache based, leading to a too fast scale up or down behavior or sometime not converging. (also because of knative#6733) Implementations should be using knative/pkg#2675 for enabling leader-aware autoscaler. (PR knative/pkg#2688) [1] https://github.com/knative/eventing/blob/1092472f440586099d6a5cbf1d3234bb36431af4/pkg/scheduler/statefulset/autoscaler.go#L85-L103 Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Fixes #6732
The autoscaler runs in every controller replica [1], it tries
to scale down on every replica after the given refresh period,
and sometimes the 2 replicas don't agree on which value to use
for the new replicas since the state is lister/cache based,
leading to a too fast scale up or down behavior or sometime
not converging.
(also because of #6733)
Implementations should be using knative/pkg#2675
for enabling leader-aware autoscaler. (PR knative/pkg#2688)
[1]
eventing/pkg/scheduler/statefulset/autoscaler.go
Lines 85 to 103 in 1092472