Closed
Conversation
We were missing the new issues and the new pr templates.
Porting patch from @fearful-symmetry elastic/beats#32580 > There's a bug on certain debian versions: > https://discuss.linuxcontainers.org/t/debian-jessie-containers-have-extremely-low-performance/1272 > basically, apt-get has a bug where will try to iterate through every possible FD as set by the NOFILE ulimit. > On certain docker installs, docker will set the ulimit to a value > 10^9, which means apt-get will take >1 hour. > This runs across all possible debian platforms, since there's no real harm in it.
5 tasks
Contributor
Author
|
@AndersonQ Can you check this one? |
Member
|
I think you'll also want this follow up fix included: https://github.com/elastic/beats/pull/32582/files |
Contributor
Author
|
@cmacknz thanks, I was still waiting for the local build :( |
Contributor
💔 Build Failed
Expand to view the summary
Build stats
Test stats 🧪
Steps errors
Expand to view the steps failures
|
Contributor
🌐 Coverage report
|
AndersonQ
approved these changes
Aug 4, 2022
6 tasks
Contributor
Author
|
fixed in #856 |
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.
Port of elastic/beats#32580
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.