open_files_limit with systemd on Centos 7 & Fedora for MySQL / MariaDB

Ulimit is set via the service now.

Create the folder for the service name, in this case MariaDB.service.d
mkdir /etc/systemd/system/mariadb.service.d

Then create limits.conf and set the file limits.
/etc/systemd/system/mariadb.service.d/limits.conf
File Contents:
[Service]
LimitNOFILE=24000

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.