Details
Description
In Arch Linux we have packages for MariaDB and Galera. Running MariaDB with Galera enabled used to work just fine, but broke with recent systemd updates. The breakage was caused with this systemd change: main: bump fs.nr_open + fs.max-file to their largest possible values
Starting mariadb.service results in an out of memory exception within seconds. This can be worked around by lowering fs.nr_open. Looks like any data structure is multiplied with the maximum open files and allocated instantly.
This has been reported to Arch Linux bugs tracker (FS#61433 - systemd-240 galera_recovery killed by OOM) and systemd isssue tracker (systemd 240 fails to start mariadb + galera on Arch Linux).