Checking slave status
Hello, is it possible to create developer studio to get slave status? And if replication break (from the status reply) is it possible to force mysql shutdown the service?
-
Hi
Here is an example to read the properties and print them out:
https://gist.github.com/freddielunchbird/d0eef43a5dfa6e643b9979e19eda2250
To shutdown a node, i must check with the devs; i could not find this command implemented. But it is a very small command to add.
BR
johan -
Hi,
yes it could be by using the 'system' function on the host object.
function main(){var hosts = cluster::hosts();var host = hosts[0];var retval;retval = host.system("ls -lha /home");if (!retval["success"]){error("ERROR: ", retval["errorMessage"]);}print("Result: ", retval["result"]);return retval["success"];}
Please sign in to leave a comment.
Comments
3 comments