-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Increase open files limit #41345
Conversation
This is not a bug fix. |
Customer needs it to be backported in 22.6 |
"{0}\tsoft\tnofile\t262144\n" | ||
"{0}\thard\tnofile\t262144\n", user); | ||
"{0}\tsoft\tnofile\t1048576\n" | ||
"{0}\thard\tnofile\t1048576\n", user); |
There was a problem hiding this comment.
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 -
LimitNOFILE=500000 |
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
…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>
Changelog category (leave one):