Here is a working configuration.
Hello, all.
Here is a configuration I got to work with MySQL Max 5.0.18.
I have two management servers named "emerald" and "ruby".
I have two data nodes named "quartz" and "amber".
I have two SQL nodes named "jade" and "coral".
Here is the /var/lib/mysql-cluster/config.ini file for emerald and ruby:
(Note that even though quartz and amber are data nodes, the management nodes are configured to allow connections from the API for the purpose of restoring backups with ndb_restore. Note also that the IDs are out of order becuase of the way I added machines. I had to assign IDs explicitly when setting up two management nodes).
[NDBD DEFAULT]
NoOfReplicas=2
DataMemory=200M
IndexMemory=100M
[NDB_MGMD]
id=1
hostname=emerald
datadir=/var/lib/mysql-cluster
[NDBD]
id=2
hostname=quartz
datadir=/usr/local/mysql/data
[NDBD]
id=3
hostname=amber
datadir=/usr/local/mysql/data
[MYSQLD]
id=4
hostname=jade
[MYSQLD]
id=5
hostname=coral
[MYSQLD]
id=6
hostname=quartz
[MYSQLD]
id=7
hostname=amber
[NDB_MGMD]
id=8
hostname=ruby
datadir=/var/lib/mysql-cluster
Here is the my.cnf file for jade, coral, amber and quartz:
[MYSQLD]
ndbcluster
ndb-connectstring="emerald,ruby"
[MYSQL_CLUSTER]
ndb-connectstring="emerald,ruby"
Everything works as you would expect:
1) The data nodes and SQL nodes connect to whichever management server is available.
2) If both are started, both show the connections and they show a connection to each other.
3) Either can control any of the nodes and the changes are reflected in both right away in both.
4) Status messages are sent to both.
Note that the configuration files on both management nodes need to be the same.
-Joe
Edited 1 time(s). Last edit at 02/18/2006 10:38PM by Joseph Kouyoumjian.
Subject
Views
Written By
Posted
5927
November 30, 2004 11:14PM
2350
December 04, 2004 04:11PM
2235
March 15, 2005 12:05PM
2014
November 11, 2005 06:42AM
2124
November 13, 2005 05:49PM
2208
November 14, 2005 07:23AM
2098
November 14, 2005 05:02PM
2046
November 21, 2005 02:15AM
4516
November 21, 2005 05:29AM
4673
January 13, 2006 06:23PM
2099
January 13, 2006 06:27PM
1971
November 24, 2005 02:35AM
2141
November 24, 2005 03:01AM
2006
November 24, 2005 11:31AM
1958
November 28, 2005 02:37AM
3647
November 29, 2005 02:39AM
2202
November 29, 2005 02:49AM
2025
November 29, 2005 04:59AM
2562
December 01, 2005 08:30AM
2000
December 01, 2005 06:05PM
Here is a working configuration.
2288
February 18, 2006 10:20PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.