+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ A replication heartbeat mechanism has been added to facilitate
+ monitoring. This provides an alternative to checking log files,
+ making it possible to detect in real time when a slave has
+ failed.
+
+
+
+ Configuration of heartbeats is done via a new
+ MASTER_HEARTBEAT_PERIOD =
+ interval clause for the
+ CHANGE MASTER TO statement (see
+ ); monitoring can be done by
+ checking the values of the status variables
+ Slave_heartbeat_period and
+ Slave_received_heartbeats (see
+ ).
+
+
+
+ The addition of replication heartbeats addresses a number of
+ issues:
+
+
+
+
+ Relay logs were rotated every
+ slave_net_timeout seconds even if no
+ statements were being replicated. (Bug #24035)
+
+
+
+
+ SHOW SLAVE STATUS displayed an
+ incorrect value for
+ seconds_behind_master following a
+ FLUSH LOGS statement. (Bug #29309)
+
+
+
+
+ Replication master-slave connections used
+ slave_net_timeout for connection
+ timeouts. (Bug #30932)
+
+
+
+
+
+
+
+
+
+
- mysqld processes did not always detect cluster shutdown, leading
- to issues with CLuster replication and schema distribution.
+ mysqld processes did not always detect
+ cluster shutdown, leading to issues with Cluster replication and
+ schema distribution.
@@ -78640,34 +78720,6 @@
<logentry entrytype="bug">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Relay logs were rotated every
- slave_net_timeout seconds even if no
- statements were being replicated.
-
-
-
Binlog_cache_disk_useThe number of transactions that used a temporary file instead of the
- temporary binary log cache
+ temporary binary log cache
@@ -34,6 +34,7 @@
Created_tmp_disk_tablesThe number of temporary tables on disk created automatically by the
- server while executing statements
+ server while executing statements
@@ -1815,7 +1816,7 @@ Delayed_errorsThe number of rows written with INSERT DELAYED for which some error
- occurred
+ occurred
@@ -2022,7 +2023,7 @@ Handler_rollbackThe number of requests for a storage engine to perform a rollback
- operation
+ operation
@@ -2053,7 +2054,7 @@ Handler_savepoint_rollbackThe number of requests for a storage engine to roll back to a
- savepoint
+ savepoint
@@ -2099,7 +2100,7 @@ Key_blocks_not_flushedThe number of key blocks in the key cache that have changed but have
- not yet been flushed to disk
+ not yet been flushed to disk
@@ -2207,20 +2208,20 @@ Last_query_costThe total cost of the last compiled query as computed by the query
- optimizer
+ optimizer
-
+
<value default="-1"/>
-
+
-
+
<value default="0"/>
-
+
@@ -2233,7 +2234,7 @@ Max_used_connectionsThe maximum number of connections that have been in use
- simultaneously since the server started
+ simultaneously since the server started
@@ -2249,14 +2250,14 @@ Ndb_number_of_data_nodesIf the server is part of a MySQL Cluster, the value of this variable
- is the number of data nodes in the cluster
+ is the number of data nodes in the cluster
If the server is part of a MySQL Cluster
- involved in cluster replication, the value of this variable
- indicates the number of times that conflict resolution based on
- "greater timestamp wins" has been applied
+ involved in cluster replication, the value of this variable
+ indicates the number of times that conflict resolution based on
+ "greater timestamp wins" has been applied
-
+
<value default="0"/>
-
+
@@ -2289,16 +2290,16 @@ Ndb_conflict_fn_oldIf the server is part of a MySQL Cluster
- involved in cluster replication, the value of this variable
- indicates the number of times that "same timestamp wins" conflict
- resolution has been applied
+ involved in cluster replication, the value of this variable
+ indicates the number of times that "same timestamp wins" conflict
+ resolution has been applied
-
+
<value default="0"/>
-
+
@@ -2459,7 +2460,7 @@ Qcache_lowmem_prunesThe number of queries that were deleted from the query cache because
- of low memory
+ of low memory
@@ -2475,7 +2476,7 @@ Qcache_not_cachedThe number of non-cached queries (not cacheable, or not cached due
- to the query_cache_type setting)
+ to the query_cache_type setting)
@@ -2549,7 +2550,7 @@ Select_full_joinThe number of joins that perform table scans because they do not use
- indexes
+ indexes
@@ -2595,7 +2596,7 @@ Select_range_checkThe number of joins without keys that check for key usage after each
- row
+ row
@@ -2622,11 +2623,26 @@
</option>
+
+
+ Slave_heartbeat_period
+ The time, in seconds, that elapses
+ between replication heartbeats
+
+
+
+
+
+
+
+
Slave_open_temp_tablesThe number of temporary tables that the slave SQL thread currently
- has open
+ has open
@@ -2638,11 +2654,27 @@
</option>
+
+
+ Slave_received_heartbeats
+ The number of replication heartbeats
+ received by a replication slave since the last time the slave was
+ restarted or reset
+
+
+
+
+
+
+
+
+
+
Slave_retried_transactionsThe total number of times since startup that the replication slave
- SQL thread has retried transactions
+ SQL thread has retried transactions
@@ -2672,7 +2704,7 @@ Slow_launch_threads
The number of threads that have taken more than slow_launch_time
- seconds to create
+ seconds to create
@@ -2688,7 +2720,7 @@ Slow_queriesThe number of queries that have taken more than long_query_time
- seconds
+ seconds
@@ -2779,7 +2811,7 @@ Table_locks_waitedThe number of times that a table lock could not be acquired
- immediately and a wait was needed
+ immediately and a wait was needed
@@ -2795,9 +2827,9 @@ Tc_log_max_pages_usedWhen the memory-mapped implementation of the log that is used by
- mysqld acts as the transaction coordinator for recovery of internal XA
- transactions,this variable indicates the largest number of pages used for the log since the
- server started
+ mysqld acts as the transaction coordinator for recovery of internal XA
+ transactions,this variable indicates the largest number of pages used for the log since the
+ server started
@@ -2813,7 +2845,7 @@
Tc_log_page_sizeThe page size used for the memory-mapped implementation of the XA
- recovery log
+ recovery log
@@ -2829,8 +2861,8 @@ Tc_log_page_waitsFor the memory-mapped implementation of the recovery log, this
- variable increments each time the server was not able to commit a transaction and had to wait
- for a free page in the log
+ variable increments each time the server was not able to commit a transaction and had to wait
+ for a free page in the log
@@ -2918,8 +2950,8 @@
</option>
<option command="mysqld" section="server" id="Uptime_since_flush_status">
-<!-- This one is Community only! -->
-<!-- <xrefto id="option_mysqld_Uptime_since_flush_status"/> -->
+ <!-- This one is Community only! -->
+ <!-- <xrefto id="option_mysqld_Uptime_since_flush_status"/> -->
Uptime_since_flush_statusThe number of seconds since the most recent FLUSH STATUS @@ -2940,9 +2972,9 @@
@@ -2955,15 +2987,15 @@ allow-suspicious-udfsAllows use of UDFs consisting of only one symbol xxx() without
- corresponding xxx_init() or xxx_deinit()
+ corresponding xxx_init() or xxx_deinit()
@@ -3096,7 +3128,7 @@ basedirPath to installation directory. All paths are usually resolved
- relative to this
+ relative to this
@@ -3121,9 +3153,9 @@
- logged to the binary log
+ logged to the binary log
@@ -3380,16 +3412,16 @@ binlog_cache_sizeThe size of the cache to hold the SQL statements for the binary log
- during a transaction
+ during a transaction
crash_binlog_innodbUsed only for testing, to crash when writing Nth event to binlog @@ -3896,7 +3928,7 @@
+ outversion="4.1.1"/>
@@ -3980,9 +4012,9 @@
-
+
<value default="0"/>
-
+
@@ -3992,7 +4024,7 @@
</option>
<option command="mysqld" section="server" id="defaults-extra-file">
-<!-- this is actually a general option -->
+ <!-- this is actually a general option -->
defaults-extra-fileLoad additional options from file
</option>
<option command="mysqld" section="server" id="defaults-group-suffix">
-<!-- this is actually a general option -->
+ <!-- this is actually a general option -->
defaults-group-suffixOption group suffix value @@ -4024,7 +4056,7 @@
</option>
<option command="mysqld" section="server" id="defaults-file">
-<!-- this is actually a general option -->
+ <!-- this is actually a general option -->
defaults-fileLoads defaults from specific file @@ -4049,12 +4081,12 @@
-
+
-
+
@@ -4076,17 +4108,17 @@ delayed_insert_limitAfter inserting delayed_insert_limit rows, the INSERT DELAYED
- handler will check if there are any SELECT statements pending. If so, it allows these to
- execute before continuing
+ handler will check if there are any SELECT statements pending. If so, it allows these to
+ execute before continuing
-
+
<value default="100"/>
-
+
@@ -4099,16 +4131,16 @@ delayed_insert_timeoutHow many seconds an INSERT DELAYED thread should wait for INSERT
- statements before terminating
@@ -4245,14 +4277,14 @@ Push supported query conditions to the storage engine
+ setvar="engine_condition_pushdown"/>
-
+
<value default="OFF"/>
-
+
@@ -4279,20 +4311,20 @@ event-schedulerEnable/disable and start/stop the event scheduler. Note that this
- variable underwent significant changes in behavior and permitted values in MySQL 5.1.11 and
- 5.1.12
+ variable underwent significant changes in behavior and permitted values in MySQL 5.1.11 and
+ 5.1.12
@@ -4321,16 +4353,16 @@ expire_logs_daysIf non-zero, binary logs will be purged after expire_logs_days days;
- possible purges happen at startup and at binary log rotation
+ possible purges happen at startup and at binary log rotation
@@ -4450,7 +4482,7 @@ ft_max_word_lenThe maximum length of the word to be included in a FULLTEXT index.
- Note: FULLTEXT indexes must be rebuilt after changing this variable
+ Note: FULLTEXT indexes must be rebuilt after changing this variable
@@ -4468,16 +4500,16 @@ ft_min_word_lenThe minimum length of the word to be included in a FULLTEXT index.
- Note: FULLTEXT indexes must be rebuilt after changing this variable
+ Note: FULLTEXT indexes must be rebuilt after changing this variable
identityThis variable is a synonym for the LAST_INSERT_ID variable. It
- exists for compatibility with other database systems
+ exists for compatibility with other database systems
@@ -4689,22 +4721,22 @@