In the last recipe, we covered the tuning parameters for Ceph MON, OSD, and clients. In this recipe, we will cover a few general tuning parameters which can be applied to the operating system, which are as follows:
- kernel.pid_max: This is a Linux kernel parameter that is responsible for the maximum number of threads and process IDs. By default, the Linux kernel has a relatively small kernel.pid_max value. You should configure this parameter with a higher value on Ceph nodes hosting several OSDs, typically more than 20 OSDs. This setting helps spawn multiple threads for faster recovery and rebalancing. To use this parameter, execute the following command from the root user:
# echo 4194303 > /proc/sys/kernel/pid_max ...