Skip to content
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

Increase open files limit #41345

Merged
merged 2 commits into from
Sep 16, 2022
Merged

Increase open files limit #41345

merged 2 commits into from
Sep 16, 2022

Conversation

ekonkov
Copy link
Contributor

@ekonkov ekonkov commented Sep 15, 2022

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 15, 2022
@nikitamikhaylov nikitamikhaylov added can be tested Allows running workflows for external contributors pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Sep 15, 2022
@alexey-milovidov
Copy link
Member

This is not a bug fix.
It will be backported only to version 22.8 and only due to a special request from a customer.

@alexey-milovidov alexey-milovidov self-assigned this Sep 16, 2022
@nikitamikhaylov
Copy link
Member

Customer needs it to be backported in 22.6

@nikitamikhaylov nikitamikhaylov merged commit ce0508e into ClickHouse:master Sep 16, 2022
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Sep 16, 2022
nikitamikhaylov pushed a commit that referenced this pull request Sep 16, 2022
Co-authored-by: robot-clickhouse <robot-clickhouse@clickhouse.com>
nikitamikhaylov pushed a commit that referenced this pull request Sep 16, 2022
Co-authored-by: robot-clickhouse <robot-clickhouse@clickhouse.com>
nikitamikhaylov pushed a commit that referenced this pull request Sep 16, 2022
Co-authored-by: robot-clickhouse <robot-clickhouse@clickhouse.com>
"{0}\tsoft\tnofile\t262144\n"
"{0}\thard\tnofile\t262144\n", user);
"{0}\tsoft\tnofile\t1048576\n"
"{0}\thard\tnofile\t1048576\n", user);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think nowadays systemd is kind of defacto standard.

And for systemd it is better to use LimitNOFILE=1048576 systemd unit directive.
Yes systemd does interpret /etc/security too, but only if it has been configured with PAM (although I guess all major distributives does so), and limits from the unit (LimitNOFILE, ...) will override these.

And right now limit in systemd is 500K -

yokofly added a commit to timeplus-io/proton that referenced this pull request Apr 10, 2024
1. increase open files limit. ClickHouse/ClickHouse#41345
2. use stringview instead char*
3. maybe better for throw exception
4. try take a hardlink first before copy. ClickHouse/ClickHouse#48578
jovezhong added a commit to timeplus-io/proton that referenced this pull request Apr 10, 2024
…the locked /usr/bin (#651)

* Update Install.cpp

/usr/bin is locked on Mac. Change it to /usr/local/bin. This should also work on Linux

* 2 more usr/bin to usr/local/bin

* minor clean:
1. increase open files limit. ClickHouse/ClickHouse#41345
2. use stringview instead char*
3. maybe better for throw exception
4. try take a hardlink first before copy. ClickHouse/ClickHouse#48578

* conditional compile

* fix the incorrect usage, the default is usr/bin otherwise only tag for macOS

---------

Co-authored-by: yoko <haohang.shi@timeplus.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be tested Allows running workflows for external contributors pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-not-for-changelog This PR should not be mentioned in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants