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

HPA controller sends unecessary updates #47077

Closed
DirectXMan12 opened this issue Jun 6, 2017 · 5 comments
Closed

HPA controller sends unecessary updates #47077

DirectXMan12 opened this issue Jun 6, 2017 · 5 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/autoscaling Categorizes an issue or PR as relevant to SIG Autoscaling.

Comments

@DirectXMan12
Copy link
Contributor

BUG: the HPA controller submits updates every update interval, even if nothing has changed. In clusters with large numbers of HPAs, as well as clusters with smaller HPA sync periods, this can cause an unnecessarily high volume of writes.

The HPA controller should only send updates if it actually has a change to the HPA status object.

@DirectXMan12
Copy link
Contributor Author

cc @kubernetes/sig-autoscaling-bugs @derekwaynecarr

@k8s-ci-robot k8s-ci-robot added sig/autoscaling Categorizes an issue or PR as relevant to SIG Autoscaling. kind/bug Categorizes issue or PR as related to a bug. labels Jun 6, 2017
@k8s-github-robot
Copy link

@DirectXMan12 There are no sig labels on this issue. Please add a sig label by:
(1) mentioning a sig: @kubernetes/sig-<team-name>-misc
(2) specifying the label manually: /sig <label>

Note: method (1) will trigger a notification to the team. You can find the team list here and label list here

@k8s-github-robot k8s-github-robot added needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jun 6, 2017
@fgrzadkowski
Copy link
Contributor

@DirectXMan12 Aren't we always updating 'observedGeneration' field?

@DirectXMan12
Copy link
Contributor Author

@fgrzadkowski we don't actually seem to do anything with that field. There's nothing in the HPA controller about it.

@DirectXMan12
Copy link
Contributor Author

/assign @DirectXMan12

k8s-github-robot pushed a commit that referenced this issue Jun 8, 2017
Automatic merge from submit-queue (batch tested with PRs 46979, 47078, 47138, 46916)

HPA: only send updates when the status has changed

This commit only sends updates if the status has actually changed.
Since the HPA runs at a regular interval, this should reduce the volume
of writes, especially on short HPA intervals with relatively constant
metrics.

Fixes #47077

**Release note**:
```release-note
The HorizontalPodAutoscaler controller will now only send updates when it has new status information, reducing the number of writes caused by the controller.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/autoscaling Categorizes an issue or PR as relevant to SIG Autoscaling.
Projects
None yet
Development

No branches or pull requests

4 participants