Check mysql-innodb-buffer-pool-instances
Overview
Checks the InnoDB buffer pool instance configuration in MySQL/MariaDB. Logic is taken from MySQLTuner script:mysql_innodb(), v1.9.8.
Hints:
MariaDB: Applies only to versions < 10.5.1.
Fact Sheet
Check Plugin Download |
|
Check Interval Recommendation |
Once a day |
Can be called without parameters |
Yes |
Compiled for |
Linux, Windows |
Requirements |
User with no privileges, locked down to |
3rd Party Python modules |
|
Help
usage: mysql-innodb-buffer-pool-instances [-h] [-V] [--always-ok]
[--defaults-file DEFAULTS_FILE]
[--defaults-group DEFAULTS_GROUP]
[--timeout TIMEOUT]
Checks the InnoDB buffer pool instance configuration in MySQL/MariaDB.
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--always-ok Always returns OK.
--defaults-file DEFAULTS_FILE
Specifies a cnf file to read parameters like user,
host and password from (instead of specifying them on
the command line), for example
`/var/spool/icinga2/.my.cnf`. Default:
/var/spool/icinga2/.my.cnf
--defaults-group DEFAULTS_GROUP
Group/section to read from in the cnf file. Default:
client
--timeout TIMEOUT Network timeout in seconds. Default: 3 (seconds)
Usage Examples
./mysql-innodb-buffer-pool-instances --defaults-file=/var/spool/icinga2/.my.cnf
Output:
8 InnoDB buffer pool instances. innodb_buffer_pool_size <= 1G and innodb_buffer_pool_instances !=1 [WARNING]. Set innodb_buffer_pool_instances to 1.
States
WARN if
innodb_buffer_pool_instances
> 64.WARN if
innodb_buffer_pool_size
> 1 GB andinnodb_buffer_pool_instances
<>min(innodb_buffer_pool_size in GB, 64 GB)
.WARN if
innodb_buffer_pool_size
<= 1 GB andinnodb_buffer_pool_instances
<> 1.
Perfdata / Metrics
Name |
Type |
Description |
---|---|---|
mysql_innodb_buffer_pool_instances |
Number |
If innodb_buffer_pool_size is set to more than 1GB, innodb_buffer_pool_instances divides the InnoDB buffer pool into this many instances. |
mysql_innodb_buffer_pool_size |
Bytes |
InnoDB buffer pool size in bytes. The primary value to adjust on a database server with entirely/primarily InnoDB tables, can be set up to 80% of the total memory in these environments. |
Credits, License
Authors: Linuxfabrik GmbH, Zurich
License: The Unlicense, see LICENSE file.
Credits:
heavily inspired by MySQLTuner (https://github.com/major/MySQLTuner-perl)