-
Notifications
You must be signed in to change notification settings - Fork 144
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
Ulimit debian #849
Ulimit debian #849
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.
@AndersonQ Can you check this one? |
I think you'll also want this follow up fix included: https://github.com/elastic/beats/pull/32582/files |
@cmacknz thanks, I was still waiting for the local build :( |
💔 Build Failed
Expand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
🌐 Coverage report
|
fixed in #856 |
Port of elastic/beats#32580
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
.