Comments on: Impressions from MySQL conf 2011, part III: BoF Replication https://shlomi-noach.github.io/blog/mysql/impressions-from-mysql-conf-2011-part-iii-bof-replication Blog by Shlomi Noach Mon, 09 Jan 2012 10:24:15 +0000 hourly 1 https://wordpress.org/?v=5.3.3 By: shlomi https://shlomi-noach.github.io/blog/mysql/impressions-from-mysql-conf-2011-part-iii-bof-replication/comment-page-1#comment-65635 Mon, 09 Jan 2012 10:24:15 +0000 https://shlomi-noach.github.io/blog/?p=3528#comment-65635 @Mark,
Great! Thank for letting me know.
The SHOW SLAVE HOSTS in 5.6 + 5.6 are huge improvements to the 5.1 status.

]]>
By: Mark Leith https://shlomi-noach.github.io/blog/mysql/impressions-from-mysql-conf-2011-part-iii-bof-replication/comment-page-1#comment-65633 Mon, 09 Jan 2012 10:17:50 +0000 https://shlomi-noach.github.io/blog/?p=3528#comment-65633 Hi Shlomi,

As of 5.5 you are no longer required to properly configure the report_host option:

“Displays a list of replication slaves currently registered with the master. (Before MySQL 5.5.3, only slaves started with the –report-host=host_name option are visible in this list.)”

http://dev.mysql.com/doc/refman/5.5/en/show-slave-hosts.html

And.. I feel your pain with replication topology – to do this properly is quite a chore (we jump through a few hoops in MEM to do this as well).

We were lucky enough to have the replication team’s ear however, and 5.6 answers some prayers – each instance has a UUID automatically created for it on startup now, and that is then peppered through SHOW VARIABLES (server_uuid), SHOW SLAVE STATUS (Master_UUID) and SHOW SLAVE HOSTS (Slave_UUID):

http://dev.mysql.com/doc/refman/5.6/en/show-slave-status.html
http://dev.mysql.com/doc/refman/5.6/en/show-slave-hosts.html

You can just walk the uuid chain, assuming you are getting data for all of the servers in the topology. SHOW SLAVE HOSTS can tell you the ones you don’t know about consistently now as well.

Cheers,

Mark

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/impressions-from-mysql-conf-2011-part-iii-bof-replication/comment-page-1#comment-37445 Tue, 19 Apr 2011 10:59:15 +0000 https://shlomi-noach.github.io/blog/?p=3528#comment-37445 Giuseppe,
Thanks! I was aware of the I_S tables implementation, but not of the MySQL Community Replication Monitor.

]]>
By: Giuseppe Maxia https://shlomi-noach.github.io/blog/mysql/impressions-from-mysql-conf-2011-part-iii-bof-replication/comment-page-1#comment-37400 Tue, 19 Apr 2011 05:55:49 +0000 https://shlomi-noach.github.io/blog/?p=3528#comment-37400 Shlomi,
You can do some topology discovery today, although it requires a few hacks:
http://datacharmer.blogspot.com/2008/08/introducing-mysql-community-driven.html

]]>