Bug #44746 NoOfReplicas should default be 2
Submitted: 8 May 2009 12:40 Modified: 11 Aug 2009 11:02
Reporter: Jan S Berg Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S4 (Feature request)
Version:mysql-5.1-telco-6.3 OS:Any
Assigned to: Magnus Blåudd
Tags: 6.3.20
Triage: Needs Triage: D5 (Feature request) / R1 (None/Negligible) / E1 (None/Negligible)

[8 May 2009 12:40] Jan S Berg
Description:
Today you need to be explicit about how many replicas you want to start Cluster with.
(Set NoOfReplicas=2 in the config.ini  file)

From a ease of use perspective, and that most users want to use 2, I suggest to have a default value of 2.

If this setting is not in the config.ini file, cluster will not start.

How to repeat:
Start cluster with a config.ini that does NOT contain:

NoOfReplicas

And cluster does not start
[8 May 2009 14:13] Magnus Blåudd
Many positive reactions when I asked about this on IRC. My conclusion is that we should do it and since all users already have it set in their config -> we can do it in 6.3
[8 May 2009 14:53] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/73659
[18 May 2009 12:15] Bugs System
Pushed into 5.1.34-ndb-6.3.25 (revid:magnus.blaudd@sun.com-20090518121246-zp3gju1pobzcb0x8) (version source revid:magnus.blaudd@sun.com-20090518121214-fpxa3ba8g0xdncv7) (merge vers: 5.1.34-ndb-6.3.25) (pib:6)
[18 May 2009 13:12] Bugs System
Pushed into 5.1.34-ndb-7.0.6 (revid:magnus.blaudd@sun.com-20090518130935-dtpb708as2r6fzn6) (version source revid:magnus.blaudd@sun.com-20090518121313-bajhjq3qrvdpd6f3) (merge vers: 5.1.34-ndb-7.0.6) (pib:6)
[11 Aug 2009 11:02] Jon Stephens
Documented bugfix/feature change in the NDB-6.3.25 and 7.0.6 changelogs as follows:

        Previously, the configuration parameter NoOfReplicas had no
        default value. Now the default for NoOfReplicas is 2, which is
        the recommended value in most settings.

Also updated descriptions of NoOfReplicas in manual.