As the systemd integration keeps on getting forward. It is hardly to be ignored by us MySQL folks :)
Lets have a look into a simple problem, you are not going to solve like you used to solve it. (At least on Centos7 installing the MariaDB package)
Increasing table_open_cache was only a configuration
issue. As mysqld was started as root and then
switching to the unix user mysql. On Centos7 this
was not working anymore. As MariaDB/MySQL ist startet with a
service file starting the process as user mysql:
[Service]
Type=simple
User=mysql
Group=mysql
..
As not root (having the right capability) it will be not able to change the open files limit. In the error log you are going to find something like:
150303 11:57:02 [Warning] Changed limits: max_open_files: 1024
max_connections: 214 table_cache: 400
Reading the …
[Read more]