-
Notifications
You must be signed in to change notification settings - Fork 147
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
Adjust memory requests and limits for elastic-agent when run in Kubernetes cluster #5614
Adjust memory requests and limits for elastic-agent when run in Kubernetes cluster #5614
Conversation
This pull request does not have a backport label. Could you fix it @MichaelKatsoulis? 🙏
|
|
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.
Hey @MichaelKatsoulis 👋 could you check the failures in CI? I think that some other files also need the change of the limits
@pchila do you have any idea why these build kite integrations tests are failing? It is not obvious to me. |
@MichaelKatsoulis Not sure why I got pulled in this PR as there are already a lot of knowledgeable people involved, the reason for the integration tests failure on this PR is that those same tests are currently broken also on main and investigation is ongoing. You should update your branch once main is green again and check the outcome of those tests again. If your PR has sensitive time constraints so that you need to merge it before main becomes green again I guess you can present your case to one of the repo admins for a force merge |
@pchila I pulled you in cause it seemed to me that you have worked a lot with those failing integrations tests. Thanks for your time and information. |
Quality Gate passedIssues Measures |
…netes cluster (#5614) (#5657) * Adjust memory requests and limits for elastic-agent when run in Kubernetes cluster (cherry picked from commit e06e786) Co-authored-by: Michael Katsoulis <[email protected]> Co-authored-by: Andrew Gizas <[email protected]>
…netes cluster (#5614) (#5656) * Adjust memory requests and limits for elastic-agent when run in Kubernetes cluster (cherry picked from commit e06e786) Co-authored-by: Michael Katsoulis <[email protected]>
What does this PR do?
This PR adjusts the default memory requests and limits for elastic-agent when it runs in a Kubernetes cluster.
The new requests and limits will be
These will be adequate even in big load (tested with 95 pods per node).
Why is it important?
In latest elastic-agent versions the baseline memory consumption is higher, thus adding Kubernetes and system
integration leads to often OOM killed pods.
The previous memory limit set was 700Mb
After investigation with various number of pods we have seen that in ^8.15.* versions
the memory consumption can reach from 750 to 950 Mb.
This varies depending on the number of pods a single elastic agent has to monitor.
For example:
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
The inadequate memory limits lead to elastic-agent getting often OOM killed in newer versions.
How to test this PR locally
Deploy Elastic Agent with system and Kubernetes integration following the Kibana instructions and watch the
memory consumption of the pod with
watch "kubectl top pod -n kube-system"
and its status.Related issues