From 031f741296a2d2f17ab12fcb2f4948a5ac3e1f18 Mon Sep 17 00:00:00 2001 From: Jean-Marie RENOUARD Date: Mon, 19 Mar 2018 17:08:12 +0100 Subject: [PATCH] Some information about replication --- mysqltuner.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 8d6bc0a..268ad3f 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1843,15 +1843,19 @@ sub get_replication_status { . scalar( keys %myslaves ) . " server(s)."; } - + infoprint "Binlog format: ". $myvar{'binlog_format'}; + infoprint "XA support enabled: ". $myvar{'innodb_support_xa'}; + infoprint "Semi synchronous replication Master: ". $myvar{'rpl_semi_sync_master_enabled'}; + infoprint "Semi synchronous replication Slave: ". $myvar{'rpl_semi_sync_slave_enabled'}; if ( scalar( keys %myrepl ) == 0 and scalar( keys %myslaves ) == 0 ) { - infoprint "This is a standalone server."; + infoprint "This is a standalone server"; return; } if ( scalar( keys %myrepl ) == 0 ) { - infoprint "No replication setup for this server."; + infoprint "No replication setup for this server or replication not started."; return; } + $result{'Replication'}{'status'} = \%myrepl; my ($io_running) = $myrepl{'Slave_IO_Running'}; debugprint "IO RUNNING: $io_running ";