Open christopherkeller opened 4 years ago
This is a little more complicated.
The override file is not correct, it needs to be renamed from /etc/sysctl.d/90-override.conf
to /etc/sysctl.d/datanexus-override.conf
. This is so it occurs lexographically after the CentOS default of 99-sysctl.conf
and gets picked up.
The contents are:
fs.file-max=100000
Set virtual memory max map:
sysctl -w vm.max_map_count=256000
echo 'vm.max_map_count=256000' >> /etc/sysctl.conf
brokers should have the default file-max set to 100000 at a minimum. This isn't present in the other applications (not sure if there is harm), but for now, implement it only in the broker code.
/sbin/sysctl -w fs.file-max=100000
fs.file-max = 100000