Oracle 5.0 Reference Manual page 1570

Table of Contents

Advertisement

The MySQL Cluster global configuration file is named
at startup and can be placed anywhere. Its location and name are specified by using
on the
file=path_name
by default tries to read a file named
The global configuration file for MySQL Cluster uses INI format, which consists of sections preceded
by section headings (surrounded by square brackets), followed by the appropriate parameter names
and values. One deviation from the standard INI format is that the parameter name and value can be
separated by a colon (":") as well as the equal sign ("="); however, the equal sign is preferred. Another
deviation is that sections are not uniquely identified by section name. Instead, unique sections (such as
two different nodes of the same type) are identified by a unique ID specified as a parameter within the
section.
Default values are defined for most parameters, and can also be specified in config.ini. (Exception:
The
configuration parameter has no default value, and must always be specified
NoOfReplicas
explicitly in the
[ndbd default]
to the section name. For example, an
default
a particular data node, whereas an
data nodes. Suppose that all data nodes should use the same data memory size. To configure them
all, create an
[ndbd default]
size.
The global configuration file must define the computers and nodes involved in the cluster and on which
computers these nodes are located. An example of a simple configuration file for a cluster consisting of
one management server, two data nodes and two MySQL servers is shown here:
# file "config.ini" - 2 data nodes and 2 SQL nodes
# This file is placed in the startup directory of ndb_mgmd (the
# management server)
# The first MySQL Server can be started from any host. The second
# can be started only on the host mysqld_5.mysql.com
[ndbd default]
NoOfReplicas= 2
DataDir= /var/lib/mysql-cluster
[ndb_mgmd]
Hostname= ndb_mgmd.mysql.com
DataDir= /var/lib/mysql-cluster
[ndbd]
HostName= ndbd_2.mysql.com
[ndbd]
HostName= ndbd_3.mysql.com
[mysqld]
[mysqld]
HostName= mysqld_5.mysql.com
Each node has its own section in the
so the preceding configuration file contains two
Note
Do not place comments on the same line as a section heading in the
config.ini
cannot parse the configuration file in such cases.
Sections of the
config.ini
There are six different sections that you can use in the
the following list:
MySQL Cluster Configuration Files
command line. If the configuration file is not specified,
ndb_mgmd
config.ini
section.) To create a default value section, simply add the word
[ndbd]
[ndbd default]
section that contains a
config.ini
[ndbd]
file; this causes the management server not to start because it
File
1550
by default. It is read by
config.ini
located in the current working directory.
section contains parameters that apply to
section contains parameters that apply to all
line to specify the data memory
DataMemory
file. For example, this cluster has two data nodes,
sections defining these nodes.
configuration file, as described in
config.ini
ndb_mgmd
--config-
ndb_mgmd

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents