My system is currently at Centos 8 and my /var/log/pacemaker/pacemaker.log file is flooding with GB of data and most of the error messages shows the below message. These messages are more than 1000 in numbers and they are filling up like almost 10-15 GB of data in a matter of 10 minutes
Oct 13 12:10:46 vm01 pacemaker-attrd [23173] (qb_ipcs_us_connection_acceptor) error: Could not accept client connection: Too many open files in system (23)
Oct 13 12:10:46 vm01 pacemaker-attrd [23173] (qb_ipcs_us_connection_acceptor) error: Could not accept client connection: Too many open files in system (23)
Earlier in my environment I was using Centos 7 and I never saw this log flooding. After upgrading to Centos 8 this issue started
Below is the ulimit output from Centos 8
[root@vm01 ~]# ulimit -n
65536
Problem is that this issue occurs randomly at a given day and I always have to manually empty the /var/log/pacemaker/pacemaker.log files in order to ensure that system doesn't halt after reaching 100% storage
Output of lsof when this issue occured.
[root@vm01 ~]# lsof | wc -l
416113
I've been told to modify the following lines on /etc/security/limits.conf, which is to change the 65536 to 524288
[root@vm01 ~]# cat /etc/security/limits.conf | grep root
root hard nofile 1048576
root soft nofile 65536
One more change is to make the following change on /etc/sysctl.conf , which is to again change 65536 to 524288, followed by runing /sbin/sysctl -p
[root@vm01 ~]# cat /etc/sysctl.conf | grep -i fs.file
fs.file-max = 65536
Kindly assist me on this problem and also let me know if the change for sysctl.conf and limits.conf can be applied on the environment to fix this