mariadb/support-files
Daniel Black a35cde8cd8 MDEV-25513: raise systemd LimitNOFILE limits to match server defaults
Quoting MDEV reporter Daniel Lewart:

Starting MariaDB with default configuration causes the following problems:

    "[Warning] Could not increase number of max_open_files to more than 16384 (request: 32186)"
    silently reduces table_open_cache_instances from 8 (default) to 4

Default Server System Variables:

    extra_max_connections = 1
    max_connections = 151
    table_open_cache = 2000
    table_open_cache_instances = 8
    thread_pool_size = 4

LimitNOFILE=16834 is in the following files:

    support-files/mariadb.service.in
    support-files/mariadb@.service.in

Looking at sql/mysqld.cc lines 3837-3917:
wanted_files= (extra_files + max_connections + extra_max_connections +
tc_size * 2 * tc_instances);
wanted_files+= threadpool_size;

Plugging in the default values:
wanted_files = (30 + 151 + 1 + 2000 * 2 * 8 + 4) = 32186

However, systemd configuration has LimitNOFILE = 16384, which is far smaller.

I suggest increasing LimitNOFILE to 32768.
2021-04-27 08:17:40 +10:00
..
dtrace Update FSF Address 2019-05-11 21:29:06 +03:00
MacOSX Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
policy Merge 10.1 into 10.2 2019-02-02 11:40:02 +02:00
rpm MDEV-25240 minor upgrade does not perform server restart 2021-03-29 12:19:57 +07:00
binary-configure.sh
build-tags Don't create tags for .xz files 2017-06-30 22:31:37 +03:00
ccfilter Fixed compiler warnings and test failures found by buildbot 2016-06-24 02:25:14 +03:00
CMakeLists.txt MDEV-19208 mariadb.pc: install into libdir 2020-03-05 10:53:16 +02:00
compiler_warnings.supp Merge branch '10.1' into 10.2 2017-03-30 12:48:42 +02:00
db.opt Added new states to be able to better diagnose where server hangs. 2014-05-03 19:12:17 +03:00
magic
mariadb.pc.in mariadb.pc: plugindir is used 2021-03-18 14:35:55 +11:00
mariadb.service.in MDEV-25513: raise systemd LimitNOFILE limits to match server defaults 2021-04-27 08:17:40 +10:00
mariadb@.service.in MDEV-25513: raise systemd LimitNOFILE limits to match server defaults 2021-04-27 08:17:40 +10:00
my-huge.cnf.sh MDEV-15448 Remove "innodb_additional_mem_pool_size" setting from my-innodb-heavy-4G.cnf file 2018-03-03 01:59:52 +02:00
my-innodb-heavy-4G.cnf.sh MDEV-15448 Remove "innodb_additional_mem_pool_size" setting from my-innodb-heavy-4G.cnf file 2018-03-03 01:59:52 +02:00
my-large.cnf.sh MDEV-15448 Remove "innodb_additional_mem_pool_size" setting from my-innodb-heavy-4G.cnf file 2018-03-03 01:59:52 +02:00
my-medium.cnf.sh MDEV-15448 Remove "innodb_additional_mem_pool_size" setting from my-innodb-heavy-4G.cnf file 2018-03-03 01:59:52 +02:00
my-small.cnf.sh MDEV-15448 Remove "innodb_additional_mem_pool_size" setting from my-innodb-heavy-4G.cnf file 2018-03-03 01:59:52 +02:00
mysql-log-rotate.sh Merge remote-tracking branch 'origin/5.5' into 10.1 2019-09-24 11:18:39 +04:00
mysql-multi.server.sh spelling fixes 2017-03-07 13:38:06 +04:00
mysql.m4 Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.server-sys5.sh
mysql.server.sh Merge branch '10.1' into 10.2 2019-07-26 07:03:39 +02:00
mysqld_multi.server.sh
sysusers.conf.in Generate and install sysusers and tmpfiles configuration 2017-12-20 12:54:19 +02:00
tmpfiles.conf.in Generate and install sysusers and tmpfiles configuration 2017-12-20 12:54:19 +02:00
use_galera_new_cluster.conf systemd: mariadb@bootstrap - clear ExecStartPre and ExecStartPost 2020-09-22 15:37:44 +10:00
wsrep.cnf.sh MDEV-17428: Update wsrep_max_ws_rows and wsrep_max_ws_size values in wsrep.cnf.sh 2019-02-21 09:19:18 +02:00
wsrep_notify.sh MDEV-6247: Merge 10.0-galera to 10.1. 2014-08-26 15:43:46 +03:00