Bondy can accumulate a large number of open file handles during operation. The creation of numerous data files is normal, and the storage backend performs periodic merges of data file collections to avoid accumulating file handles.
To accommodate this you should increase the open files limit on your system. We recommend setting a soft limit of 65536 and a hard limit of 200000.
Most operating systems can check and change the open-files limit for the current shell session using the ulimit
command.
Start by checking the current open file limit values with:
ulimit -Hn # Hard limitulimit -Sn # Soft limit
Set the limit by using:
ulimit -n 200000
This configuration persists only for the duration of your shell session. To change the limit on a system-wide, permanent basis read the following sections.
On most Linux distributions, the total limit for open files is controlled by sysctl
.
If you installed Bondy from a binary package, you will need to the add the following settings to the /etc/security/limits.conf
file for the bondy
user:
/etc/security/limits.confbondy soft nofile 65536bondy hard nofile 200000
You can enable PAM-based user limits so that non-root users, such as the bondy
user, may specify a higher value for maximum open files.
Edit /etc/pam.d/common-session
and add the following line:
/etc/pam.d/common-sessionsession required pam_limits.so
Save and close the file.
If /etc/pam.d/common-session-noninteractive
exists, append the same line as above.
Then, edit /etc/security/limits.conf
and append the following lines to the file:
/etc/security/limits.confsoft nofile 65536hard nofile 200000
Save and close the file.
(Optional) If you will be accessing the Bondy nodes via secure shell (SSH), you should also edit /etc/ssh/sshd_config
and set the following line:
/etc/ssh/sshd_configUseLogin yes
Restart the machine so the limits take effect and verify that the new limits are set with the following command:
ulimit -a
And set its value to yes as shown here:
/ETC/SSH/SSHD_CONFIG UseLogin yes 6. Restart the machine so the limits take effect and verify that the new limits are set with the following command:
SHELL ulimit -a
To increase the open file limit on Solaris, add the following line to the /etc/system file
:
/etc/systemset rlim_fd_max=200000