Add ulimit setting to debian containers in mage build#32580
Merged
fearful-symmetry merged 2 commits intoelastic:mainfrom Aug 2, 2022
Merged
Add ulimit setting to debian containers in mage build#32580fearful-symmetry merged 2 commits intoelastic:mainfrom
fearful-symmetry merged 2 commits intoelastic:mainfrom
Conversation
Contributor
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Contributor
cmacknz
reviewed
Aug 2, 2022
|
|
||
| - 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] |
Member
There was a problem hiding this comment.
Suggested change
| - 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.
Member
|
@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. |
cmacknz
approved these changes
Aug 2, 2022
andrewvc
pushed a commit
to andrewvc/beats
that referenced
this pull request
Aug 3, 2022
* add ulimit to debian containers * add changelog
Contributor
|
I believe we should backport this to 7.17 as well. |
mergify bot
pushed a commit
that referenced
this pull request
Aug 3, 2022
* add ulimit to debian containers * add changelog (cherry picked from commit ee6f470)
Member
|
Also backport to 8.3 and 8.4 |
mergify bot
pushed a commit
that referenced
this pull request
Aug 3, 2022
* add ulimit to debian containers * add changelog (cherry picked from commit ee6f470)
mergify bot
pushed a commit
that referenced
this pull request
Aug 3, 2022
* add ulimit to debian containers * add changelog (cherry picked from commit ee6f470)
Contributor
|
I will make the same changes on elastic agent, it use the same code but the file aren't shared yet. |
Contributor
6 tasks
gpop63
pushed a commit
that referenced
this pull request
Aug 24, 2022
…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 <8418476+fearful-symmetry@users.noreply.github.com> Co-authored-by: Denis Rechkunov <denis.rechkunov@elastic.co>
chrisberkhout
pushed a commit
that referenced
this pull request
Jun 1, 2023
* add ulimit to debian containers * add changelog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
After a considerable amount of googling and
straceyesterday, I learned that there's a bug in certain older versions ofapt-getin debian, where it'll try to iterate through all possible FDs as set by internal linux system limits. This results in some amusingstraceoutput:This only happens on certain docker installs where the docker daemon won't set the
NOFILEulimit in its containers.This fix just adds a
ulimitflag to the docker invocation when needed.Why is it important?
On systems that hit this bug,
mage packageon filebeat can take up to an hour, purely due to theapt-get updateoperation.Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.