<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MySQL Cluster fault tolerance &#8211; impact of deployment decisions</title>
	<atom:link href="http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/</link>
	<description>MySQL Cluster database &#38; MySQL Replication</description>
	<lastBuildDate>Sat, 06 Mar 2010 12:00:32 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Richard Lloyd</title>
		<link>http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/comment-page-1/#comment-2464</link>
		<dc:creator>Richard Lloyd</dc:creator>
		<pubDate>Tue, 17 Nov 2009 19:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.clusterdb.com/?p=328#comment-2464</guid>
		<description>I&#039;ve set up MySQL Cluster with the minimal &quot;classic&quot; number of nodes (two data nodes, 1 management node - all 3 on separate servers), but with just a single (same) switch for all 3 servers.

One significant problem is that if you hit the scenario in example 6 (management node is up, both data nodes are down) which can happen if you reboot the switch, MySQL Cluster by default doesn&#039;t attempt to automatically restart the cluster when the switch returns.

Is there a way to configure MySQL Cluster so that when the data nodes can see each other and the management node too (e.g. when the network connection is restored to all 3), then it automatically restarts the cluster? You&#039;d hope it would be something perhaps the management node would do if the data nodes can&#039;t manage this.

My quick and dirty workaround is to check the output of &quot;ndb_mgm -e show&quot; every 30 seconds, parse it and decide whether the cluster needs restarting on one or both of the data nodes. Surely there&#039;s a better solution than this (I know, redundant switches are one possible fix, but I&#039;d still like a software solution too)?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve set up MySQL Cluster with the minimal &#8220;classic&#8221; number of nodes (two data nodes, 1 management node &#8211; all 3 on separate servers), but with just a single (same) switch for all 3 servers.</p>
<p>One significant problem is that if you hit the scenario in example 6 (management node is up, both data nodes are down) which can happen if you reboot the switch, MySQL Cluster by default doesn&#8217;t attempt to automatically restart the cluster when the switch returns.</p>
<p>Is there a way to configure MySQL Cluster so that when the data nodes can see each other and the management node too (e.g. when the network connection is restored to all 3), then it automatically restarts the cluster? You&#8217;d hope it would be something perhaps the management node would do if the data nodes can&#8217;t manage this.</p>
<p>My quick and dirty workaround is to check the output of &#8220;ndb_mgm -e show&#8221; every 30 seconds, parse it and decide whether the cluster needs restarting on one or both of the data nodes. Surely there&#8217;s a better solution than this (I know, redundant switches are one possible fix, but I&#8217;d still like a software solution too)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/comment-page-1/#comment-234</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 31 Jul 2009 11:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.clusterdb.com/?p=328#comment-234</guid>
		<description>Hi Paul,

 I tried building a Cluster with your config.ini and the same command to launch the ndbds and Nodegroups 0 &amp; 1 were created automatically.

Just to check, are you starting up the Cluster from scratch or are you trying to add a new node group to an existing Cluster?

One other thing you can try is that you can explicitly specify  NG by adding &quot;NodeGroup=1&quot; to the relevant ndbd sections of config.ini (if you&#039;ve run the Cluster previously then you&#039;ll need to start the ndbds with the --initial option which will also erase any data you&#039;ve added to the database).

Andrew.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p> I tried building a Cluster with your config.ini and the same command to launch the ndbds and Nodegroups 0 &amp; 1 were created automatically.</p>
<p>Just to check, are you starting up the Cluster from scratch or are you trying to add a new node group to an existing Cluster?</p>
<p>One other thing you can try is that you can explicitly specify  NG by adding &#8220;NodeGroup=1&#8243; to the relevant ndbd sections of config.ini (if you&#8217;ve run the Cluster previously then you&#8217;ll need to start the ndbds with the &#8211;initial option which will also erase any data you&#8217;ve added to the database).</p>
<p>Andrew.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paulkeogh</title>
		<link>http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/comment-page-1/#comment-232</link>
		<dc:creator>paulkeogh</dc:creator>
		<pubDate>Fri, 31 Jul 2009 09:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.clusterdb.com/?p=328#comment-232</guid>
		<description>The command line for the ndbd is;

/usr/sbin/ndbd -c 10.1.101.23:1186 --nodaemon --ndb-nodeid=2

and config.ini is;

[ndbd default]
noofreplicas=2
datadir=/var/lib/mysql/data/mysqlcluster/

[ndb_mgmd default]
datadir=/var/lib/mysql/data/mysqlcluster/

[ndbd]
hostname=10.1.101.23
id=2

[ndbd]
hostname=10.1.101.31 
id=3

[ndbd]
hostname=10.1.101.23
id=22

[ndbd]
hostname=10.1.101.31 
id=33

[ndb_mgmd]
id = 1
hostname=10.1.101.23

[mysqld]
id=4
hostname=10.1.101.23

[mysqld]
id=5
hostname=10.1.101.31</description>
		<content:encoded><![CDATA[<p>The command line for the ndbd is;</p>
<p>/usr/sbin/ndbd -c 10.1.101.23:1186 &#8211;nodaemon &#8211;ndb-nodeid=2</p>
<p>and config.ini is;</p>
<p>[ndbd default]<br />
noofreplicas=2<br />
datadir=/var/lib/mysql/data/mysqlcluster/</p>
<p>[ndb_mgmd default]<br />
datadir=/var/lib/mysql/data/mysqlcluster/</p>
<p>[ndbd]<br />
hostname=10.1.101.23<br />
id=2</p>
<p>[ndbd]<br />
hostname=10.1.101.31<br />
id=3</p>
<p>[ndbd]<br />
hostname=10.1.101.23<br />
id=22</p>
<p>[ndbd]<br />
hostname=10.1.101.31<br />
id=33</p>
<p>[ndb_mgmd]<br />
id = 1<br />
hostname=10.1.101.23</p>
<p>[mysqld]<br />
id=4<br />
hostname=10.1.101.23</p>
<p>[mysqld]<br />
id=5<br />
hostname=10.1.101.31</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/comment-page-1/#comment-209</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 29 Jul 2009 14:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.clusterdb.com/?p=328#comment-209</guid>
		<description>Hi Paul,

 I&#039;d have expected Node Group 1 to be formed automatically - could you please post your config.ini file and the command lines you used to launch your ndbd processes?</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p> I&#8217;d have expected Node Group 1 to be formed automatically &#8211; could you please post your config.ini file and the command lines you used to launch your ndbd processes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Keogh</title>
		<link>http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/comment-page-1/#comment-207</link>
		<dc:creator>Paul Keogh</dc:creator>
		<pubDate>Wed, 29 Jul 2009 11:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.clusterdb.com/?p=328#comment-207</guid>
		<description>When I update my config.ini as you suggest and start the cluster I see;

ndb_mgm&gt; show
Cluster Configuration
---------------------
[ndbd(NDB)]     4 node(s)
id=2    @10.1.101.23  (mysql-5.1.34 ndb-7.0.6, Nodegroup: 0)
id=3    @10.1.101.31  (mysql-5.1.34 ndb-7.0.6, Nodegroup: 0, Master)
id=22   @10.1.101.23  (mysql-5.1.34 ndb-7.0.6, no nodegroup)
id=33   @10.1.101.31  (mysql-5.1.34 ndb-7.0.6, no nodegroup)

[ndb_mgmd(MGM)] 1 node(s)
id=1    @10.1.101.23  (mysql-5.1.34 ndb-7.0.6)

[mysqld(API)]   2 node(s)
id=4    @10.1.101.23  (mysql-5.1.34 ndb-7.0.6)
id=5    @10.1.101.31  (mysql-5.1.34 ndb-7.0.6)

I then execute;

create nodegroup 22,33

and it creates the nodegroup 1 just fine. 

Is this correct ? I had thought I could create the 2 nodegroups just from the static configuration without having to issue the create nodegroup command?</description>
		<content:encoded><![CDATA[<p>When I update my config.ini as you suggest and start the cluster I see;</p>
<p>ndb_mgm&gt; show<br />
Cluster Configuration<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[ndbd(NDB)]     4 node(s)<br />
id=2    @10.1.101.23  (mysql-5.1.34 ndb-7.0.6, Nodegroup: 0)<br />
id=3    @10.1.101.31  (mysql-5.1.34 ndb-7.0.6, Nodegroup: 0, Master)<br />
id=22   @10.1.101.23  (mysql-5.1.34 ndb-7.0.6, no nodegroup)<br />
id=33   @10.1.101.31  (mysql-5.1.34 ndb-7.0.6, no nodegroup)</p>
<p>[ndb_mgmd(MGM)] 1 node(s)<br />
id=1    @10.1.101.23  (mysql-5.1.34 ndb-7.0.6)</p>
<p>[mysqld(API)]   2 node(s)<br />
id=4    @10.1.101.23  (mysql-5.1.34 ndb-7.0.6)<br />
id=5    @10.1.101.31  (mysql-5.1.34 ndb-7.0.6)</p>
<p>I then execute;</p>
<p>create nodegroup 22,33</p>
<p>and it creates the nodegroup 1 just fine. </p>
<p>Is this correct ? I had thought I could create the 2 nodegroups just from the static configuration without having to issue the create nodegroup command?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/comment-page-1/#comment-197</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 28 Jul 2009 19:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.clusterdb.com/?p=328#comment-197</guid>
		<description>Thanks for pointing out the typo in example 7 - I&#039;ve fixed it now.

You can take a look at http://www.clusterdb.com/mysql-cluster/deploying-mysql-cluster-over-multiple-hosts/ for an example of how to configure a node group. In that example, the node group is defined implicitly...

By setting noofreplicas=2 in config.ini I specify that there should be two data nodes in each node group.

I then define [ndbd] sections in config.ini, for each one specifying which host it should run on. The bit that&#039;s implicit is that Cluster looks at the order of those [ndbd] sections to decide which data nodes to place in which node groups - as there were only 2 specified, they&#039;re both placed into Node Group 0. If there were 4 [ndbd] sections then the first 2 would form NG0 and the second 2 NG1. If there were 6 [ndbd] sections then the fith and sixth sections would form NG2....

If you want to play around with the make up of nodegroups (or when using on-line add-node) there are CREATE NODEGROUP and DROP NODEGROUP commands within the ndb_mgm tool.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing out the typo in example 7 &#8211; I&#8217;ve fixed it now.</p>
<p>You can take a look at <a href="http://www.clusterdb.com/mysql-cluster/deploying-mysql-cluster-over-multiple-hosts/" rel="nofollow">http://www.clusterdb.com/mysql-cluster/deploying-mysql-cluster-over-multiple-hosts/</a> for an example of how to configure a node group. In that example, the node group is defined implicitly&#8230;</p>
<p>By setting noofreplicas=2 in config.ini I specify that there should be two data nodes in each node group.</p>
<p>I then define [ndbd] sections in config.ini, for each one specifying which host it should run on. The bit that&#8217;s implicit is that Cluster looks at the order of those [ndbd] sections to decide which data nodes to place in which node groups &#8211; as there were only 2 specified, they&#8217;re both placed into Node Group 0. If there were 4 [ndbd] sections then the first 2 would form NG0 and the second 2 NG1. If there were 6 [ndbd] sections then the fith and sixth sections would form NG2&#8230;.</p>
<p>If you want to play around with the make up of nodegroups (or when using on-line add-node) there are CREATE NODEGROUP and DROP NODEGROUP commands within the ndb_mgm tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paulkeogh</title>
		<link>http://www.clusterdb.com/mysql-cluster/mysql-cluster-fault-tolerance-impact-of-deployment-decisions/comment-page-1/#comment-190</link>
		<dc:creator>paulkeogh</dc:creator>
		<pubDate>Tue, 28 Jul 2009 10:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.clusterdb.com/?p=328#comment-190</guid>
		<description>Excellent article thanks.

Can you point me at a link that describes how to configure nodegroups ? For example, how exactly do you set up the configuration shown in Fig. 3 ?

In example 7, should&#039;n it read

&quot;The surviving data node from NG2 forms a community with the one from NG1&quot;  ?</description>
		<content:encoded><![CDATA[<p>Excellent article thanks.</p>
<p>Can you point me at a link that describes how to configure nodegroups ? For example, how exactly do you set up the configuration shown in Fig. 3 ?</p>
<p>In example 7, should&#8217;n it read</p>
<p>&#8220;The surviving data node from NG2 forms a community with the one from NG1&#8243;  ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
