From: Andrew Morgan Date: February 20 2012 8:56am Subject: RE: MySQL Cluster External Arbitration List-Archive: http://lists.mysql.com/cluster/8255 Message-Id: <090c010c-99d4-4b9a-b4cb-7edccc460de8@default> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi Chris, One use case for this was Oracle Solaris Cluster agent for MySQL - http://w= ww.oracle.com/technetwork/server-storage/solaris-cluster/overview/index.htm= l - you might find some good best practices in that agent. Regards, Andrew. > -----Original Message----- > From: Chris Jones [mailto:cpjones44@stripped] > Sent: 19 February 2012 23:31 > To: cluster@stripped > Subject: MySQL Cluster External Arbitration >=20 > Hi there, >=20 > I've just finished setting up my first MySQL Cluster, and have been impre= ssed > at how easy it was to do so. >=20 > I have a question about how arbitration works, in particular external > arbitration. Reading through the documentation at > http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-ndbd- > definition.html#ndbparam-ndbd-arbitration, > and various posts on the web, I understand it to be a mechanism where > none of the MySQL nodes will act as the arbitrator in the event of a "spl= it- > brain" scenario, and will wait for some kind of external application to a= ct as > arbitrator. >=20 > I my understanding correct? >=20 > If it is, how do these external applications interact with the cluster? > Does it simply run some commands to tell those nodes it chooses to shut > down, and other commands to tell the other nodes to stay up? What are > some examples of these "external applications"? What are the commands > that you need to run to tell the cluster to shut down, but more important= ly > what are the commands issued to tell the nodes the external arbitrator ha= s > decided to keep those alive. >=20 > The reason I ask is that I plan to have a multi-site MySQL Cluster where = I can > write an application of my own that will determine which set of nodes to > keep alive and which to turn off in the event that my links will go down.= In my > tests, I have created one management node and one data/API node at each > site. Whilst the links I have between my sites are quite stable, there is= still a > possibility that it could go down, and I would like to know how I can > determine which nodes to keep alive instead of letting MySQL decide. >=20 > Is anyone able to shed any light on this or point me to some documentatio= n > on how these external applications can act as a MySQL Cluster arbitrator. >=20 > Regards, > Chris.