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

Fix HPA settings to make them more reactive #721

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

L3n41c
Copy link
Member

@L3n41c L3n41c commented Mar 28, 2024

What does this PR do?

  • In the spec of HorizontalPodAutoscaler, use Value instead of AverageValue because the query in the DatadogMetric is already computing an average (avg: operator at the beginning of the query).
    As a result, the total number of TPS was wrongly divided twice by the number of pods (once by datadog because of the avg operator in the query and once by the HPA itself)
  • Reduce the stabilization windows because:

Which scenarios this will impact?

  • aws/eks
  • aws/kindvm

Motivation

We noticed some flaky failures of the testHPA in the past.

Additional Notes

This graph shows the behavior of the HPA before and after this change.
image

@L3n41c L3n41c requested a review from a team as a code owner March 28, 2024 14:02
@L3n41c
Copy link
Member Author

L3n41c commented Mar 28, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Mar 28, 2024

🚂 MergeQueue

Pull request added to the queue.

This build is going to start soon! (estimated merge in less than 22m)

Use /merge -c to cancel this operation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants