Oracle 5.0 Reference Manual page 1558

Table of Contents

Advertisement

Configuring the data nodes and SQL nodes.
simple. The configuration file should be located in the
editor. (Create the file if it does not exist.) For example:
shell>
vi /etc/my.cnf
Note
We show
just as well.
For each data node and SQL node in our example setup,
[mysqld]
# Options for mysqld process:
ndbcluster
[mysql_cluster]
# Options for MySQL Cluster processes:
ndb-connectstring=192.168.0.10
After entering the preceding information, save this file and exit the text editor. Do this for the machines
hosting data node "A", data node "B", and the SQL node.
Important
Once you have started a
connectstring
sections of the
CREATE TABLE
the cluster. Otherwise, these statements will fail with an error. This is by design.
Configuring the management node.
create the directory in which the configuration file can be found and then to create the file itself. For
example (running as root):
shell>
mkdir /var/lib/mysql-cluster
shell>
cd /var/lib/mysql-cluster
shell>
vi config.ini
For our representative setup, the
[ndbd default]
# Options affecting ndbd processes on all data nodes:
NoOfReplicas=2
# Number of replicas
DataMemory=80M
# How much memory to allocate for data storage
IndexMemory=18M
# How much memory to allocate for index storage
# For DataMemory and IndexMemory, we have used the
# default values. Since the "world" database takes up
# only about 500KB, this should be more than enough for
# this example Cluster setup.
[tcp default]
# TCP/IP options:
portnumber=2202
# This the default; however, you can use any
# port that is free for all the hosts in the cluster
# Note: It is recommended that you do not specify the port
# number at all and simply allow the default value to be used
# instead
[ndb_mgmd]
# Management process options:
hostname=192.168.0.10
datadir=/var/lib/mysql-cluster
[ndbd]
# Options for data node "A":
Initial Configuration of MySQL Cluster
being used here to create the file, but any text editor should work
vi
# run NDB storage engine
# location of management server
mysqld
parameters in the
file as shown previously, you cannot execute any
my.cnf
or
ALTER TABLE
The first step in configuring the management node is to
file should read as follows:
config.ini
# Hostname or IP address of MGM node
# Directory for MGM node log files
# (one [ndbd] section per data node)
1538
The
file needed for the data nodes is fairly
my.cnf
directory and can be edited using any text
/etc
should look like this:
my.cnf
process with the
ndbcluster
and
[mysqld]
[mysql_cluster]
statements without having actually started
and
ndb-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents