-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add ulimit setting to debian containers in mage build #32580
Add ulimit setting to debian containers in mage build #32580
Conversation
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
@@ -55,6 +55,7 @@ https://github.com/elastic/beats/compare/v8.2.0\...main[Check the HEAD diff] | |||
|
|||
- Fix counter for number of events published in `httpjson` input. {pull}31993[31993] | |||
- Fix handling of Checkpoint event for R81. {issue}32380[32380] {pull}32458[32458] | |||
- Fix a hang on `apt-get update` stage in packaging. {pull}32580[32580] |
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.
- Fix a hang on `apt-get update` stage in packaging. {pull}32580[32580] |
I don't think we need a changelog entry for this because it isn't user facing. This could go in the developer changelog though.
@AndersonQ this might be the root cause of the issue I remember you experiencing some time ago with @ph it is likely worth porting this to the agent repository. |
* add ulimit to debian containers * add changelog
I believe we should backport this to 7.17 as well. |
* add ulimit to debian containers * add changelog (cherry picked from commit ee6f470)
Also backport to 8.3 and 8.4 |
* add ulimit to debian containers * add changelog (cherry picked from commit ee6f470)
* add ulimit to debian containers * add changelog (cherry picked from commit ee6f470)
I will make the same changes on elastic agent, it use the same code but the file aren't shared yet. |
…e build (#32590) * Add ulimit setting to debian containers in mage build (#32580) * add ulimit to debian containers * add changelog (cherry picked from commit ee6f470) * Fix the changelog Co-authored-by: Alex K <[email protected]> Co-authored-by: Denis Rechkunov <[email protected]>
* add ulimit to debian containers * add changelog
What does this PR do?
After a considerable amount of googling and
strace
yesterday, I learned that there's a bug in certain older versions ofapt-get
in debian, where it'll try to iterate through all possible FDs as set by internal linux system limits. This results in some amusingstrace
output:This only happens on certain docker installs where the docker daemon won't set the
NOFILE
ulimit in its containers.This fix just adds a
ulimit
flag to the docker invocation when needed.Why is it important?
On systems that hit this bug,
mage package
on filebeat can take up to an hour, purely due to theapt-get update
operation.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.