The terms master and slave have historically been used in replication, but the terms terms primary and replica are now preferred. The old terms are used still used in parts of the documentation, and in MariaDB commands, although MariaDB 10.5 has begun the process of renaming. The documentation process is ongoing. See MDEV-18777 to follow progress on this effort.
The following status variables are useful in binary logging and replication. See Server Status Variables for a complete list of status variables that can be viewed with SHOW STATUS.
See also the Full list of MariaDB options, system and status variables.
Binlog_bytes_writtennumeric Binlog_cache_disk_useFLUSH STATUS. numeric Binlog_cache_useFLUSH STATUS. numeric Binlog_commitsnumeric Binlog_group_commit_trigger_countnumeric Binlog_group_commit_trigger_lock_waitnumeric Binlog_group_commit_trigger_timeoutnumeric Binlog_group_commitsnumeric Binlog_snapshot_filestring Binlog_snapshot_positionnumeric Binlog_stmt_cache_disk_useFLUSH STATUS. numeric Binlog_stmt_cache_useFLUSH STATUS. numeric Com_change_masternumeric Com_show_binlog_statusnumeric Com_show_master_statusnumeric Com_show_new_masternumeric MariaDB 5.5 Com_show_slave_hostsnumeric Com_show_slave_statusnumeric Com_slave_startnumeric MariaDB 10.0 Com_slave_stopnumeric MariaDB 10.0 Com_start_all_slavesnumeric Com_start_slavenumeric Com_stop_all_slavesnumeric Com_stop_slavenumeric Master_gtid_wait_countnumeric Master_gtid_wait_timenumeric Master_gtid_wait_timeoutsnumeric Rpl_statusRpl_transactions_multi_enginemysql.gtid_slave_pos. These are transactions that were already cross-engine, independent of the GTID position update introduced by replication. The global value can be flushed by FLUSH STATUS. numeric Slave_connectionsnumeric Slave_heartbeat_periodnumeric Slave_open_temp_tablesnumeric Slave_received_heartbeatsnumeric Slave_retried_transactionsFLUSH STATUS. numeric Slave_runningnumeric Slave_skipped_errorsnumeric Slaves_connectednumeric Slaves_runningnumeric Transactions_gtid_foreign_enginegtid_slave_pos table had to choose a storage engine that did not otherwise participate in the transaction. This can indicate that setting gtid_pos_auto_engines might be useful. The global value can be flushed by FLUSH STATUS. numeric Transactions_multi_engineFLUSH STATUS. numeric
© 2023 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/replication-and-binary-log-status-variables/