Skip to content
Discussion options

You must be logged in to vote

I don't see a way to mark one of the comments as the "answer" here, so I'll re-post this for clarity.

The underlying problem is that containerd made a change which sets the nofile limit to infinity on the service. This trickles down to all the child containers. Some services such as MySQL and apparently something within Airflow attempt to pre-allocate resources based on the number of potentially open files. Therefore, when the limit is set to infinity, they allocate huge amounts of memory on startup in an attempt to pre-optimize.

All of this together means that if you have a relatively new version of containerd, then certain container images will cause memory exhaustion as described in th…

Replies: 6 comments 22 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
20 replies
@Blizzke
Comment options

@calebstewart
Comment options

@calebstewart
Comment options

@Blizzke
Comment options

@potiuk
Comment options

potiuk Feb 28, 2023
Collaborator

Comment options

You must be logged in to vote
0 replies
Answer selected by calebstewart
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@calebstewart
Comment options

@potiuk
Comment options

potiuk Mar 2, 2023
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants