Skip to content

Conversation

jmrenouard
Copy link
Collaborator

wsrep_slave_threads deprecated in mySQL 8.0+

#819 In major/MySQLTuner-perl;· nblount opened on Feb 9

Uninitialized value error wsrep_causal_reads (MySQL8.3 and Galera4)

#818 In major/MySQLTuner-perl;· nblount opened on Feb 9
PASSWORD() function used on 8.0

#815 In major/MySQLTuner-perl;· fmonts opened on Jan 11

innodb_buffer_pool_instances suggestion

#811 In major/MySQLTuner-perl;· PRR24 opened on Dec 15, 2024

google-labs-jules bot and others added 8 commits October 6, 2025 21:52
The `wsrep_causal_reads` variable has been deprecated in newer versions of Galera Cluster and replaced with `wsrep_sync_wait`. This change updates the `mysqltuner.pl` script to handle both variables gracefully.

The script now checks for `wsrep_causal_reads` first, and if it's not defined, it falls back to checking for `wsrep_sync_wait`. This ensures that the script provides accurate information for different Galera versions without producing warnings for uninitialized variables.

Additionally, this change includes minor code quality improvements identified by `perlcritic`, such as using `IO::Interactive` for checking terminal interactivity and using lexical filehandles.
The recommendation for innodb_buffer_pool_instances is now capped by the number of CPU cores. This prevents recommending a value that is too high for the available hardware, which is a common performance pitfall.

An informational message is displayed when the recommendation is capped by the CPU core count.
The `wsrep_causal_reads` variable has been deprecated in newer versions of Galera Cluster and replaced with `wsrep_sync_wait`. This change updates the `mysqltuner.pl` script to handle both variables gracefully.

The script now checks for `wsrep_causal_reads` first, and if it's not defined, it falls back to checking for `wsrep_sync_wait`. This ensures that the script provides accurate information for different Galera versions without producing warnings for uninitialized variables.
Fix uninitialized value warning for wsrep_causal_reads
…iaDB.

A new subroutine, `mariadb_query_cache_info`, has been added to check for the presence and status of the `QUERY_CACHE_INFO` plugin. If the plugin is active, the script will now display the contents of the `information_schema.query_cache_info` table, providing insights into the queries currently held in the query cache.

This feature is specific to MariaDB and will be skipped on other MySQL-based systems.
…nces

Improve innodb_buffer_pool_instances recommendation
feat: Add Query Cache Info plugin support for MariaDB
@jmrenouard jmrenouard merged commit 5bc8fe2 into major:master Oct 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant