Skip to content

Support to adjust the maximum open files on containerize env #8208

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ntk148v
Copy link

@ntk148v ntk148v commented Apr 16, 2025

Enable users to modify the maximum number of open file descriptors by setting the THANOS_ULIMIT_NOFILES environment variable, as in Kubernetes environment, adjusting this value can be challenging.

@ntk148v ntk148v force-pushed the feat/ulimit branch 4 times, most recently from f6a761e to b0e9a6d Compare April 22, 2025 02:47
Copy link
Member

@GiedriusS GiedriusS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add usage of THANOS_ULIMIT_NOFILES in some e2e test with a very small value to ensure that it works?

Enable users to modify the maximum number of open file descriptors
by setting the THANOS_ULIMIT_NOFILES environment variable as in
Kubernetes environment, adjusting this value can be challenging.

Signed-off-by: Kien Nguyen Tuan <[email protected]>
@ntk148v
Copy link
Author

ntk148v commented Apr 26, 2025

@GiedriusS I've added a testcase for this, set an extremely low value to expect an error when be firing.

@ntk148v
Copy link
Author

ntk148v commented Apr 30, 2025

@GiedriusS some test cases are randomly failed, I can't figure out why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants