January 2019
Intermediate to advanced
286 pages
7h 41m
English
If you want to verify that an instance is good enough to join a cluster, you can use the cluster.checkInstanceState() function. This function validates a GTID and compares it to GTIDs already processed by a cluster. It also checks whether an instance that has processed transactions can be added to a cluster:
mysql-js> cluster.checkInstanceState('cluster_admin@node4:3306')
The output of the preceding function can be any of the following: