Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Mar 1, 2023

This PR synchronizes to the main version of python-daemon
(e38f05a5780626637e7ff10a08f9ed354acbe399) as of 03.03.2023.

This version has been tested and solves the problem where
starting python-daemon inside newer containerd with unlimited
nofile limits uses up the whole available memory.

It is added on top of #29845 that vendors-in 2.3.2 version of the package.

This one and #29845 should be removed and replaced with >= requirement
of python-daemon once it is released.

Fixes: #29841


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk potiuk requested a review from dstandish as a code owner March 1, 2023 22:19
@boring-cyborg boring-cyborg bot added area:CLI area:webserver Webserver related Issues labels Mar 1, 2023
@potiuk potiuk changed the title Fix infinite nofiles from containerd Fix memory exhaution in containers resulting from infinite nofile Mar 1, 2023
@potiuk potiuk added this to the Airflow 2.5.2 milestone Mar 1, 2023
@potiuk potiuk force-pushed the fix-infinite-nofiles-from-containerd branch from 6f11195 to fde1eb3 Compare March 1, 2023 22:37
@potiuk
Copy link
Member Author

potiuk commented Mar 2, 2023

Might be not needed - seems that a new version of python_daemon is coming with improved memory management in this case. See https://pagure.io/python-daemon/issue/72

@potiuk potiuk force-pushed the fix-infinite-nofiles-from-containerd branch 2 times, most recently from c3990d1 to c9eaf4f Compare March 3, 2023 08:54
@potiuk potiuk marked this pull request as draft March 3, 2023 08:54
@potiuk potiuk changed the title Fix memory exhaution in containers resulting from infinite nofile Refactor ‘_get_candidate_file_descriptor_ranges’ to use ‘range’ objects. Mar 3, 2023
This PR vendors-in 2.3.2 version of the `python-daemon` package in
order to fix the apache#29841 issue resulting from containerd configure
infinite nofile as default.
@potiuk potiuk force-pushed the fix-infinite-nofiles-from-containerd branch from c9eaf4f to 28efc53 Compare March 3, 2023 10:58
This PR synchronizes to the main version of python-daemon
(e38f05a5780626637e7ff10a08f9ed354acbe399) as of 03.03.2023.

This version has been tested and solves the problem where
starting python-daemon inside newer containerd with unlimited
nofile limits uses up the whole available memory.

It is added on top of apache#29845 that vendors-in 2.3.2 version of the package.

This one and apache#29845 should be removed and replaced with >= requirement
of python-daemon once it is released.

Fixes: apache#29841
@potiuk potiuk force-pushed the fix-infinite-nofiles-from-containerd branch from 28efc53 to b45c4db Compare March 3, 2023 18:27
@potiuk potiuk changed the title Refactor ‘_get_candidate_file_descriptor_ranges’ to use ‘range’ objects. Fix memory exhaution with new containerd] Mar 3, 2023
@potiuk potiuk changed the title Fix memory exhaution with new containerd] Fix memory exhaution with new containerd Mar 3, 2023
@potiuk
Copy link
Member Author

potiuk commented Mar 4, 2023

Closed in favour of #29916

@potiuk potiuk closed this Mar 4, 2023
@potiuk potiuk deleted the fix-infinite-nofiles-from-containerd branch March 7, 2023 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI area:webserver Webserver related Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

high memory leak, cannot start even webserver

1 participant