2
.\" Title: \fBndb_mgmd\fR
3
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6
.\" Manual: MySQL Database System
10
.TH "\FBNDB_MGMD\FR" "8" "03/01/2010" "MySQL 5\&.1" "MySQL Database System"
11
.\" -----------------------------------------------------------------
12
.\" * set default formatting
13
.\" -----------------------------------------------------------------
14
.\" disable hyphenation
16
.\" disable justification (adjust text to left margin only)
18
.\" -----------------------------------------------------------------
19
.\" * MAIN CONTENT STARTS HERE *
20
.\" -----------------------------------------------------------------
21
.\" ndb_mgmd (MySQL Cluster process)
22
.\" MySQL Cluster: ndb_mgmd process
23
.\" MySQL Cluster: management nodes
24
.\" management nodes (MySQL Cluster)
27
ndb_mgmd \- the MySQL Cluster management server daemon
29
.HP \w'\fBndb_mgmd\ \fR\fB\fIoptions\fR\fR\ 'u
30
\fBndb_mgmd \fR\fB\fIoptions\fR\fR
33
The management server is the process that reads the cluster configuration file and distributes this information to all nodes in the cluster that request it\&. It also maintains a log of cluster activities\&. Management clients can connect to the management server and check the cluster\'s status\&.
34
.\" MySQL Cluster: administration
35
.\" MySQL Cluster: commands
36
.\" command options (MySQL Cluster): ndb_mgmd
37
.\" MySQL Cluster: mgmd process
39
The following table includes options that are specific to the MySQL Cluster management server program
40
\fBndb_mgmd\fR\&. Additional descriptions follow the table\&. For options common to all MySQL Cluster programs, see
41
Section\ \&17.4.2, \(lqOptions Common to MySQL Cluster Programs\(rq\&.
51
.\" --bind-address option (ndb_mgmd)
52
\fB\-\-bind\-address=\fR\fB\fIhost\fR\fR\fB[:\fR\fB\fIport\fR\fR\fB]\fR
61
\fBVersion Introduced\fR
63
5\&.1\&.22\-ndb\-6\&.3\&.2
66
\fBCommand\-Line Format\fR
73
\fBPermitted Values \fR
87
When specified, this option limits management server connections by management clients to clients at the specified host name or IP address (and possibly port, if this is also specified)\&. In such cases, a management client attempting to connect to the management server from any other address fails with the error
88
Unable to setup port: \fIhost\fR:\fIport\fR!
92
is not specified, the management client attempts to use port 1186\&.
94
This option was added in MySQL Cluster NDB 6\&.2\&.5 and MySQL Cluster NDB 6\&.3\&.2\&.
105
.\" --configdir option (ndb_mgmd)
106
\fB\-\-configdir=\fR\fB\fIdirectory\fR\fR
115
\fBVersion Introduced\fR
117
5\&.1\&.30\-ndb\-6\&.4\&.0
120
\fBCommand\-Line Format\fR
122
\-\-configdir=directory
127
\fBPermitted Values \fR
137
$INSTALLDIR/mysql\-cluster
141
Beginning with MySQL Cluster NDB 6\&.4\&.0, configuration data is cached internally rather than being read from the cluster global configuration file each time the management server is started (see
142
Section\ \&17.3.2, \(lqMySQL Cluster Configuration Files\(rq)\&. This option instructs the management server to its configuration cache in the
144
indicated\&. By default, this is a directory named
146
in the MySQL installation directory \(em for example, if you compile and install MySQL Cluster on a Unix system using the default location, this is
147
/usr/local/mysql\-cluster\&.
149
This behavior can be overridden using the
154
\fBndb_mgmd\fR\&. Each of these options is described elsewhere in this section\&.
156
This option is available beginning with MySQL Cluster NDB 6\&.4\&.0\&.
158
Beginning with MySQL Cluster NDB 7\&.0\&.8,
159
\fB\-\-config\-dir\fR
160
is accepted as an alias for
161
\fB\-\-configdir\fR\&.
172
.\" --config-file option (ndb_mgmd)
173
.\" -f option (ndb_mgmd)
174
.\" -c option (ndb_mgmd) (OBSOLETE)
175
\fB\-\-config\-file=\fR\fB\fIfilename\fR\fR,
176
\fB\-f \fR\fB\fIfilename\fR\fR
184
\fBCommand\-Line Format\fR
191
\fBPermitted Values \fR
205
Instructs the management server as to which file it should use for its configuration file\&. By default, the management server looks for a file named
207
in the same directory as the
209
executable; otherwise the file name and location must be specified explicitly\&.
211
Beginning with MySQL Cluster NDB 6\&.4\&.0, this option is ignored unless the management server is forced to read the configuration file, either because
217
option, or because the management server could not find any configuration cache\&. See
218
Section\ \&17.3.2, \(lqMySQL Cluster Configuration Files\(rq, for more information\&.
229
.\" --daemon option (ndb_mgmd)
230
.\" -d option (ndb_mgmd)
240
\fBCommand\-Line Format\fR
247
\fBPermitted Values \fR
263
to start as a daemon process\&. This is the default behavior\&.
265
This option has no effect when running
267
on Windows platforms\&.
278
.\" --initial option (ndb_mgmd)
288
\fBVersion Introduced\fR
290
5\&.1\&.30\-ndb\-6\&.4\&.0
293
\fBCommand\-Line Format\fR
300
\fBPermitted Values \fR
314
Beginning with MySQL Cluster NDB 6\&.4\&.0, configuration data is cached internally rather than being read from the cluster global configuration file each time the management server is started (see
315
Section\ \&17.3.2, \(lqMySQL Cluster Configuration Files\(rq)\&. Using this option overrides this behavior, by forcing the management server to delete any existing cache files, and then to re\-read the configuration data from the cluster configuration file and to build a new cache\&.
317
This differs in two ways from the
321
forces the server to check the configuration file against the cache and reload its data only if the contents of the file are different from the cache\&. Second,
323
does not delete any existing cache files\&.
329
but cannot find a global configuration file, the management server cannot start\&.
331
This option was introduced in MySQL Cluster NDB 6\&.4\&.0\&.
342
.\" --log-name option (ndb_mgmd)
343
\fB\-\-log\-name=\fR\fB\fIname\fR\fR
352
\fBVersion Introduced\fR
354
5\&.1\&.37\-ndb\-7\&.0\&.8
357
\fBCommand\-Line Format\fR
364
\fBPermitted Values \fR
378
Provides a name to be used for this node in the cluster log\&.
380
This option was added in MySQL Cluster NDB 7\&.0\&.8\&.
391
.\" --nodaemon option (ndb_mgmd)
403
\fBCommand\-Line Format\fR
410
\fBPermitted Values \fR
425
\fBPermitted Values \fR
441
not to start as a daemon process\&.
443
As of MySQL Cluster NDB 7\&.0\&.8, the default behavior for
445
on Windows is to run in the foreground, making this option unnecessary on Windows platforms\&. (\m[blue]\fBBug#45588\fR\m[]\&\s-2\u[1]\d\s+2)
456
.\" --print-full-config option (ndb_mgmd)
457
.\" -P option (ndb_mgmd)
458
\fB\-\-print\-full\-config\fR,
467
\fBCommand\-Line Format\fR
469
\-\-print\-full\-config
474
\fBPermitted Values \fR
488
Shows extended information regarding the configuration of the cluster\&. With this option on the command line the
490
process prints information about the cluster setup including an extensive list of the cluster configuration sections as well as parameters and their values\&. Normally used together with the
491
\fB\-\-config\-file\fR
492
(\fB\-f\fR) option\&.
503
.\" --reload option (ndb_mgmd)
513
\fBVersion Introduced\fR
515
5\&.1\&.30\-ndb\-6\&.4\&.0
518
\fBCommand\-Line Format\fR
525
\fBPermitted Values \fR
539
Beginning with MySQL Cluster NDB 6\&.4\&.0, configuration data is stored internally rather than being read from the cluster global configuration file each time the management server is started (see
540
Section\ \&17.3.2, \(lqMySQL Cluster Configuration Files\(rq)\&. Using this option forces the management server to check its internal data store against the cluster configuration file and to reload the configuration if it finds that the configuration file does not match the cache\&. Existing configuration cache files are preserved, but not used\&.
542
This differs in two ways from the
546
causes all cache files to be deleted\&. Second,
548
forces the management server to re\-read the global configuration file and construct a new cache\&.
550
If the management server cannot find a global configuration file, then the
554
This option was introduced in MySQL Cluster NDB 6\&.4\&.0\&.
565
.\" --nowait-nodes option (ndb_mgmd)
566
\fB\-\-nowait\-nodes\fR
576
\fBVersion Introduced\fR
578
5\&.1\&.39\-ndb\-7\&.1\&.0
581
\fBCommand\-Line Format\fR
583
\-\-nowait\-nodes=list
588
\fBPermitted Values \fR
606
When starting a MySQL Cluster is configured with two management nodes and running MySQL Cluster NDB 7\&.0 and later, each management server normally checks to see whether the other
608
is also operational and whether the other management server\'s configuration is identical to its own\&. However, it is sometimes desirable to start the cluster with only one management node (and perhaps to allow the other
610
to be started later)\&. This option causes the management node to bypass any checks for any other management nodes whose node IDs are passed to this option, allowing the cluster to start as though configured to use only the management node that was started\&.
612
For purposes of illustration, consider the following portion of a
614
file (where we have omitted most of the configuration parameters that are not relevant to this example):
622
HostName = 192\&.168\&.0\&.101
625
HostName = 192\&.168\&.0\&.102
628
HostName = 192\&.168\&.0\&.103
631
HostName = 192\&.168\&.0\&.104
634
HostName = 192\&.168\&.0\&.150
637
HostName = 192\&.168\&.0\&.151
640
HostName = 192\&.168\&.0\&.200
643
HostName = 192\&.168\&.0\&.201
649
Assume that you wish to start this cluster using only the management server having node ID
651
and running on the host having the IP address 192\&.168\&.0\&.150\&. (Suppose, for example, that the host computer on which you intend to the other management server is temporarily unavailable due to a hardware failure, and you are waiting for it to be repaired\&.) To start the cluster in this way, use a command line on the machine at 192\&.168\&.0\&.150 to enter the following command:
657
shell> \fBndb_mgmd \-\-ndb\-nodeid=10 \-\-nowait\-nodes=11\fR
663
As shown in the preceding example, when using
664
\fB\-\-nowait\-nodes\fR, you must also use the
665
\fB\-\-ndb\-nodeid\fR
666
option to specify the node ID of this
670
You can then start each of the cluster\'s data nodes in the usual way\&. If you wish to start and use the second management server in addition to the first management server at a later time without restarting the data nodes, you must start each data node with a connectstring that references both management servers, like this:
676
shell> \fBndbd \-c 192\&.168\&.0\&.150,192\&.168\&.0\&.151\fR
682
The same is true with regard to the connectstring used with any
684
processes that you wish to start as MySQL Cluster SQL nodes connected to this cluster\&. See
685
Section\ \&17.3.2.3, \(lqThe MySQL Cluster Connectstring\(rq, for more information\&.
688
\fBndb_mgmd\fR, this option affects the behavior of the management node with regard to other management nodes only\&. Do not confuse it with the
689
\fB\-\-nowait\-nodes\fR
694
in MySQL Cluster NDB 7\&.0 and later) to allow a cluster to start with fewer than its full complement of data nodes; when used with data nodes, this option affects their behavior only with regard to other data nodes\&.
696
Multiple management node IDs may be passed to this option as a comma\-separated list\&. Each node ID must be no less than 1 and no greater than 255\&. In practice, it is quite rare to use more than two management servers for the same MySQL Cluster (or to have any need for doing so); in most cases you need to pass to this option only the single node ID for the one management server that you do not wish to use when starting the cluster\&.
702
.nr an-no-space-flag 1
709
When you later start the
711
management server, its configuration must match that of the management server that is already in use by the cluster\&. Otherwise, it fails the configuration check performed by the existing management server, and does not start\&.
714
This option was introduced in MySQL Cluster NDB 7\&.0\&.10\&.
717
It is not strictly necessary to specify a connectstring when starting the management server\&. However, if you are using more than one management server, a connectstring should be provided and each node in the cluster should specify its node ID explicitly\&.
720
Section\ \&17.3.2.3, \(lqThe MySQL Cluster Connectstring\(rq, for information about using connectstrings\&.
721
\fBndb_mgmd\fR(8), describes other options for
724
The following files are created or used by
726
in its starting directory, and are placed in the
730
configuration file\&. In the list that follows,
732
is the unique node identifier\&.
742
.\" MySQL Cluster: configuration
743
.\" configuring MySQL Cluster
744
.\" config.ini (MySQL Cluster)
746
is the configuration file for the cluster as a whole\&. This file is created by the user and read by the management server\&.
747
Section\ \&17.3, \(lqMySQL Cluster Configuration\(rq, discusses how to set up this file\&.
758
ndb_\fInode_id\fR_cluster\&.log
759
is the cluster events log file\&. Examples of such events include checkpoint startup and completion, node startup events, node failures, and levels of memory usage\&. A complete listing of cluster events with descriptions may be found in
760
Section\ \&17.5, \(lqManagement of MySQL Cluster\(rq\&.
762
When the size of the cluster log reaches one million bytes, the file is renamed to
763
ndb_\fInode_id\fR_cluster\&.log\&.\fIseq_id\fR, where
765
is the sequence number of the cluster log file\&. (For example: If files with the sequence numbers 1, 2, and 3 already exist, the next log file is named using the number
777
ndb_\fInode_id\fR_out\&.log
782
when running the management server as a daemon\&.
793
ndb_\fInode_id\fR\&.pid
794
is the process ID file used when running the management server as a daemon\&.
799
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
801
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
803
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
805
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
811
\%http://bugs.mysql.com/bug.php?id=45588
814
For more information, please refer to the MySQL Reference Manual,
815
which may already be installed locally and which is also available
816
online at http://dev.mysql.com/doc/.
818
Sun Microsystems, Inc. (http://www.mysql.com/).