'\" t .\" Title: ndbd .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 03/11/2024 .\" Manual: MySQL Database System .\" Source: MySQL 8.4 .\" Language: English .\" .TH "NDBD" "8" "03/11/2024" "MySQL 8\&.4" "MySQL Database System" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ndbd \- the NDB Cluster data node daemon .SH "SYNOPSIS" .HP \w'\fBndbd\ \fR\fB\fIoptions\fR\fR\ 'u \fBndbd \fR\fB\fIoptions\fR\fR .SH "DESCRIPTION" .PP \fBndbd\fR is the process that is used to handle all the data in tables using the NDB Cluster storage engine\&. This is the process that empowers a data node to accomplish distributed transaction handling, node recovery, checkpointing to disk, online backup, and related tasks\&. .PP In an NDB Cluster, a set of \fBndbd\fR processes cooperate in handling data\&. These processes can execute on the same computer (host) or on different computers\&. The correspondences between data nodes and Cluster hosts is completely configurable\&. .PP Options that can be used with \fBndbd\fR are shown in the following table\&. Additional descriptions follow the table\&. .PP .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .PP All of these options also apply to the multithreaded version of this program (\fBndbmtd\fR) and you may substitute \(lq\fBndbmtd\fR\(rq for \(lq\fBndbd\fR\(rq wherever the latter occurs in this section\&. .sp .5v .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-bind\-address\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --bind-address=name T} T{ Type T}:T{ String T} T{ Default Value T}:T{ T} .TE .sp 1 Causes \fBndbd\fR to bind to a specific network interface (host name or IP address)\&. This option has no default value\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-character\-sets\-dir\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --character-sets-dir=path T} .TE .sp 1 Directory containing character sets\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-connect\-delay=\fR\fB\fI#\fR\fR .TS allbox tab(:); lB l lB l lB l lB l lB l lB l. T{ Command-Line Format T}:T{ --connect-delay=# T} T{ Deprecated T}:T{ Yes T} T{ Type T}:T{ Numeric T} T{ Default Value T}:T{ 5 T} T{ Minimum Value T}:T{ 0 T} T{ Maximum Value T}:T{ 3600 T} .TE .sp 1 Determines the time to wait between attempts to contact a management server when starting (the number of attempts is controlled by the \fB\-\-connect\-retries\fR option)\&. The default is 5 seconds\&. .sp This option is deprecated, and is subject to removal in a future release of NDB Cluster\&. Use \fB\-\-connect\-retry\-delay\fR instead\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-connect\-retries=\fR\fB\fI#\fR\fR .TS allbox tab(:); lB l lB l lB l lB l lB l. T{ Command-Line Format T}:T{ --connect-retries=# T} T{ Type T}:T{ Numeric T} T{ Default Value T}:T{ 12 T} T{ Minimum Value T}:T{ -1 T} T{ Maximum Value T}:T{ 65535 T} .TE .sp 1 Set the number of times to retry a connection before giving up; 0 means 1 attempt only (and no retries)\&. The default is 12 attempts\&. The time to wait between attempts is controlled by the \fB\-\-connect\-retry\-delay\fR option\&. .sp It is also possible to set this option to \-1, in which case, the data node process continues indefinitely to try to connect\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-connect\-retry\-delay=\fR\fB\fI#\fR\fR .TS allbox tab(:); lB l lB l lB l lB l lB l. T{ Command-Line Format T}:T{ --connect-retry-delay=# T} T{ Type T}:T{ Numeric T} T{ Default Value T}:T{ 5 T} T{ Minimum Value T}:T{ 0 T} T{ Maximum Value T}:T{ 4294967295 T} .TE .sp 1 Determines the time to wait between attempts to contact a management server when starting (the time between attempts is controlled by the \fB\-\-connect\-retries\fR option)\&. The default is 5 seconds\&. .sp This option takes the place of the \fB\-\-connect\-delay\fR option, which is now deprecated and subject to removal in a future release of NDB Cluster\&. .sp The short form \fB\-r\fR for this option is also deprecated, and thus subject to removal\&. Use the long form instead\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-connect\-string\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --connect-string=connection_string T} T{ Type T}:T{ String T} T{ Default Value T}:T{ [none] T} .TE .sp 1 Same as \fB\-\-ndb\-connectstring\fR\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-core\-file\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --core-file T} .TE .sp 1 Write core file on error; used in debugging\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-daemon\fR, \fB\-d\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --daemon T} .TE .sp 1 Instructs \fBndbd\fR or \fBndbmtd\fR to execute as a daemon process\&. This is the default behavior\&. \fB\-\-nodaemon\fR can be used to prevent the process from running as a daemon\&. .sp This option has no effect when running \fBndbd\fR or \fBndbmtd\fR on Windows platforms\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-defaults\-extra\-file\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --defaults-extra-file=path T} T{ Type T}:T{ String T} T{ Default Value T}:T{ [none] T} .TE .sp 1 Read given file after global files are read\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-defaults\-file\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --defaults-file=path T} T{ Type T}:T{ String T} T{ Default Value T}:T{ [none] T} .TE .sp 1 Read default options from given file only\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-defaults\-group\-suffix\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --defaults-group-suffix=string T} T{ Type T}:T{ String T} T{ Default Value T}:T{ [none] T} .TE .sp 1 Also read groups with concat(group, suffix)\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-filesystem\-password\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --filesystem-password=password T} .TE .sp 1 Pass the filesystem encryption and decryption password to the data node process using stdin, tty, or the my\&.cnf file\&. .sp Requires EncryptedFileSystem = 1\&. .sp For more information, see Section\ \&25.6.14, \(lqFile System Encryption for NDB Cluster\(rq\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-filesystem\-password\-from\-stdin\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --filesystem-password-from-stdin={TRUE|FALSE} T} .TE .sp 1 Pass the filesystem encryption and decryption password to the data node process from stdin (only)\&. .sp Requires EncryptedFileSystem = 1\&. .sp For more information, see Section\ \&25.6.14, \(lqFile System Encryption for NDB Cluster\(rq\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-foreground\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --foreground T} .TE .sp 1 Causes \fBndbd\fR or \fBndbmtd\fR to execute as a foreground process, primarily for debugging purposes\&. This option implies the \fB\-\-nodaemon\fR option\&. .sp This option has no effect when running \fBndbd\fR or \fBndbmtd\fR on Windows platforms\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-help\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --help T} .TE .sp 1 Display help text and exit\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-initial\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --initial T} .TE .sp 1 Instructs \fBndbd\fR to perform an initial start\&. An initial start erases any files created for recovery purposes by earlier instances of \fBndbd\fR\&. It also re\-creates recovery log files\&. On some operating systems, this process can take a substantial amount of time\&. .sp The option also causes the removal of all data files associated with Disk Data tablespaces and undo log files associated with log file groups that existed previously on this data node (see Section\ \&25.6.11, \(lqNDB Cluster Disk Data Tables\(rq)\&. .sp An \fB\-\-initial\fR start is to be used \fIonly\fR when starting the \fBndbd\fR process under very special circumstances; this is because this option causes all files to be removed from the NDB Cluster file system and all redo log files to be re\-created\&. These circumstances are listed here: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} When performing a software upgrade which has changed the contents of any files\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} When restarting the node with a new version of \fBndbd\fR\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} As a measure of last resort when for some reason the node restart or system restart repeatedly fails\&. In this case, be aware that this node can no longer be used to restore data due to the destruction of the data files\&. .RE .sp .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBWarning\fR .ps -1 .br To avoid the possibility of eventual data loss, it is recommended that you \fInot\fR use the \fB\-\-initial\fR option together with StopOnError = 0\&. Instead, set StopOnError to 0 in config\&.ini only after the cluster has been started, then restart the data nodes normally\(emthat is, without the \fB\-\-initial\fR option\&. See the description of the StopOnError parameter for a detailed explanation of this issue\&. (Bug #24945638) .sp .5v .RE Use of this option prevents the StartPartialTimeout and StartPartitionedTimeout configuration parameters from having any effect\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBImportant\fR .ps -1 .br This option does \fInot\fR affect backup files that have already been created by the affected node\&. .sp This option also has no effect on recovery of data by a data node that is just starting (or restarting) from data nodes that are already running (unless they also were started with \fB\-\-initial\fR, as part of an initial restart)\&. This recovery of data occurs automatically, and requires no user intervention in an NDB Cluster that is running normally\&. .sp .5v .RE It is permissible to use this option when starting the cluster for the very first time (that is, before any data node files have been created); however, it is \fInot\fR necessary to do so\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-initial\-start\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --initial-start T} .TE .sp 1 This option is used when performing a partial initial start of the cluster\&. Each node should be started with this option, as well as \fB\-\-nowait\-nodes\fR\&. .sp Suppose that you have a 4\-node cluster whose data nodes have the IDs 2, 3, 4, and 5, and you wish to perform a partial initial start using only nodes 2, 4, and 5\(emthat is, omitting node 3: .sp .if n \{\ .RS 4 .\} .nf $> \fBndbd \-\-ndb\-nodeid=2 \-\-nowait\-nodes=3 \-\-initial\-start\fR $> \fBndbd \-\-ndb\-nodeid=4 \-\-nowait\-nodes=3 \-\-initial\-start\fR $> \fBndbd \-\-ndb\-nodeid=5 \-\-nowait\-nodes=3 \-\-initial\-start\fR .fi .if n \{\ .RE .\} .sp When using this option, you must also specify the node ID for the data node being started with the \fB\-\-ndb\-nodeid\fR option\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBImportant\fR .ps -1 .br Do not confuse this option with the \fB\-\-nowait\-nodes\fR option for \fBndb_mgmd\fR, which can be used to enable a cluster configured with multiple management servers to be started without all management servers being online\&. .sp .5v .RE .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-install[=\fR\fB\fIname\fR\fR\fB]\fR .TS allbox tab(:); lB l lB l lB l lB l. T{ Command-Line Format T}:T{ --install[=name] T} T{ Platform Specific T}:T{ Windows T} T{ Type T}:T{ String T} T{ Default Value T}:T{ ndbd T} .TE .sp 1 Causes \fBndbd\fR to be installed as a Windows service\&. Optionally, you can specify a name for the service; if not set, the service name defaults to ndbd\&. Although it is preferable to specify other \fBndbd\fR program options in a my\&.ini or my\&.cnf configuration file, it is possible to use together with \fB\-\-install\fR\&. However, in such cases, the \fB\-\-install\fR option must be specified first, before any other options are given, for the Windows service installation to succeed\&. .sp It is generally not advisable to use this option together with the \fB\-\-initial\fR option, since this causes the data node file system to be wiped and rebuilt every time the service is stopped and started\&. Extreme care should also be taken if you intend to use any of the other \fBndbd\fR options that affect the starting of data nodes\(emincluding \fB\-\-initial\-start\fR, \fB\-\-nostart\fR, and \fB\-\-nowait\-nodes\fR\(emtogether with \fB\-\-install\fR, and you should make absolutely certain you fully understand and allow for any possible consequences of doing so\&. .sp The \fB\-\-install\fR option has no effect on non\-Windows platforms\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-logbuffer\-size=\fR\fB\fI#\fR\fR .TS allbox tab(:); lB l lB l lB l lB l lB l. T{ Command-Line Format T}:T{ --logbuffer-size=# T} T{ Type T}:T{ Integer T} T{ Default Value T}:T{ 32768 T} T{ Minimum Value T}:T{ 2048 T} T{ Maximum Value T}:T{ 4294967295 T} .TE .sp 1 Sets the size of the data node log buffer\&. When debugging with high amounts of extra logging, it is possible for the log buffer to run out of space if there are too many log messages, in which case some log messages can be lost\&. This should not occur during normal operations\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-login\-path\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --login-path=path T} T{ Type T}:T{ String T} T{ Default Value T}:T{ [none] T} .TE .sp 1 Read given path from login file\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-no\-login\-paths\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --no-login-paths T} .TE .sp 1 Skips reading options from the login path file\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-ndb\-connectstring\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --ndb-connectstring=connection_string T} T{ Type T}:T{ String T} T{ Default Value T}:T{ [none] T} .TE .sp 1 Set connection string for connecting to \fBndb_mgmd\fR\&. Syntax: [nodeid=\fIid\fR;][host=]\fIhostname\fR[:\fIport\fR]\&. Overrides entries in NDB_CONNECTSTRING and my\&.cnf\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-ndb\-mgmd\-host\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --ndb-mgmd-host=connection_string T} T{ Type T}:T{ String T} T{ Default Value T}:T{ [none] T} .TE .sp 1 Same as \fB\-\-ndb\-connectstring\fR\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-ndb\-mgm\-tls\fR .TS allbox tab(:); lB l lB l lB l lB l. T{ Command-Line Format T}:T{ --ndb-mgm-tls=level T} T{ Type T}:T{ Enumeration T} T{ Default Value T}:T{ relaxed T} T{ Valid Values T}:T{ .PP relaxed .PP strict T} .TE .sp 1 Sets the level of TLS support required to connect to the management server; one of relaxed or strict\&. relaxed (the default) means that a TLS connection is attempted, but success is not required; strict means that TLS is required to connect\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-ndb\-nodeid\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --ndb-nodeid=# T} T{ Type T}:T{ Integer T} T{ Default Value T}:T{ [none] T} .TE .sp 1 Set node ID for this node, overriding any ID set by \-\-ndb\-connectstring\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-ndb\-optimized\-node\-selection\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --ndb-optimized-node-selection T} .TE .sp 1 Enable optimizations for selection of nodes for transactions\&. Enabled by default; use \fB\-\-skip\-ndb\-optimized\-node\-selection\fR to disable\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-ndb\-tls\-search\-path\fR .TS allbox tab(:); lB l lB l lB l lB l. T{ Command-Line Format T}:T{ --ndb-tls-search-path=list T} T{ Type T}:T{ Path name T} T{ Default Value (Unix) T}:T{ $HOME/ndb-tls T} T{ Default Value (Windows) T}:T{ $HOMEDIR/ndb-tls T} .TE .sp 1 Specify a list of directories to search for a CA file\&. On Unix platforms, the directory names are separated by colons (:); on Windows systems, the semicolon character (;) is used as the separator\&. A directory reference may be relative or absolute; it may contain one or more environment variables, each denoted by a prefixed dollar sign ($), and expanded prior to use\&. .sp Searching begins with the leftmost named directory and proceeds from left to right until a file is found\&. An empty string denotes an empty search path, which causes all searches to fail\&. A string consisting of a single dot (\&.) indicates that the search path limited to the current working directory\&. .sp If no search path is supplied, the compiled\-in default value is used\&. This value depends on the platform used: On Windows, this is \endb\-tls; on other platforms (including Linux), it is $HOME/ndb\-tls\&. This can be overridden by compiling NDB Cluster using \fB\-DWITH_NDB_TLS_SEARCH_PATH\fR\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-nodaemon\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --nodaemon T} .TE .sp 1 Prevents \fBndbd\fR or \fBndbmtd\fR from executing as a daemon process\&. This option overrides the \fB\-\-daemon\fR option\&. This is useful for redirecting output to the screen when debugging the binary\&. .sp The default behavior for \fBndbd\fR and \fBndbmtd\fR on Windows is to run in the foreground, making this option unnecessary on Windows platforms, where it has no effect\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-no\-defaults\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --no-defaults T} .TE .sp 1 Do not read default options from any option file other than login file\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-nostart\fR, \fB\-n\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --nostart T} .TE .sp 1 Instructs \fBndbd\fR not to start automatically\&. When this option is used, \fBndbd\fR connects to the management server, obtains configuration data from it, and initializes communication objects\&. However, it does not actually start the execution engine until specifically requested to do so by the management server\&. This can be accomplished by issuing the proper START command in the management client (see Section\ \&25.6.1, \(lqCommands in the NDB Cluster Management Client\(rq)\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-nowait\-nodes=\fR\fB\fInode_id_1\fR\fR\fB[, \fR\fB\fInode_id_2\fR\fR\fB[, \&.\&.\&.]]\fR .TS allbox tab(:); lB l lB l lB l. T{ Command-Line Format T}:T{ --nowait-nodes=list T} T{ Type T}:T{ String T} T{ Default Value T}:T{ T} .TE .sp 1 This option takes a list of data nodes for which the cluster does not wait, prior to starting\&. .sp This can be used to start the cluster in a partitioned state\&. For example, to start the cluster with only half of the data nodes (nodes 2, 3, 4, and 5) running in a 4\-node cluster, you can start each \fBndbd\fR process with \fB\-\-nowait\-nodes=3,5\fR\&. In this case, the cluster starts as soon as nodes 2 and 4 connect, and does \fInot\fR wait StartPartitionedTimeout milliseconds for nodes 3 and 5 to connect as it would otherwise\&. .sp If you wanted to start up the same cluster as in the previous example without one \fBndbd\fR (say, for example, that the host machine for node 3 has suffered a hardware failure) then start nodes 2, 4, and 5 with \fB\-\-nowait\-nodes=3\fR\&. Then the cluster starts as soon as nodes 2, 4, and 5 connect, and does not wait for node 3 to start\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-print\-defaults\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --print-defaults T} .TE .sp 1 Print program argument list and exit\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-remove[=\fR\fB\fIname\fR\fR\fB]\fR .TS allbox tab(:); lB l lB l lB l lB l. T{ Command-Line Format T}:T{ --remove[=name] T} T{ Platform Specific T}:T{ Windows T} T{ Type T}:T{ String T} T{ Default Value T}:T{ ndbd T} .TE .sp 1 Causes an \fBndbd\fR process that was previously installed as a Windows service to be removed\&. Optionally, you can specify a name for the service to be uninstalled; if not set, the service name defaults to ndbd\&. .sp The \fB\-\-remove\fR option has no effect on non\-Windows platforms\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-usage\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --usage T} .TE .sp 1 Display help text and exit; same as \-\-help\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-verbose\fR, \fB\-v\fR Causes extra debug output to be written to the node log\&. .sp You can also use NODELOG DEBUG ON and NODELOG DEBUG OFF to enable and disable this extra logging while the data node is running\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\-version\fR .TS allbox tab(:); lB l. T{ Command-Line Format T}:T{ --version T} .TE .sp 1 Display version information and exit\&. .RE .PP \fBndbd\fR generates a set of log files which are placed in the directory specified by DataDir in the config\&.ini configuration file\&. .PP These log files are listed below\&. \fInode_id\fR is and represents the node\*(Aqs unique identifier\&. For example, ndb_2_error\&.log is the error log generated by the data node whose node ID is 2\&. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} ndb_\fInode_id\fR_error\&.log is a file containing records of all crashes which the referenced \fBndbd\fR process has encountered\&. Each record in this file contains a brief error string and a reference to a trace file for this crash\&. A typical entry in this file might appear as shown here: .sp .if n \{\ .RS 4 .\} .nf Date/Time: Saturday 30 July 2004 \- 00:20:01 Type of error: error Message: Internal program error (failed ndbrequire) Fault ID: 2341 Problem data: DbtupFixAlloc\&.cpp Object of reference: DBTUP (Line: 173) ProgramName: NDB Kernel ProcessID: 14909 TraceFile: ndb_2_trace\&.log\&.2 ***EOM*** .fi .if n \{\ .RE .\} .sp Listings of possible \fBndbd\fR exit codes and messages generated when a data node process shuts down prematurely can be found in \m[blue]\fBData Node Error Messages\fR\m[]\&\s-2\u[1]\d\s+2\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBImportant\fR .ps -1 .br \fIThe last entry in the error log file is not necessarily the newest one\fR (nor is it likely to be)\&. Entries in the error log are \fInot\fR listed in chronological order; rather, they correspond to the order of the trace files as determined in the ndb_\fInode_id\fR_trace\&.log\&.next file (see below)\&. Error log entries are thus overwritten in a cyclical and not sequential fashion\&. .sp .5v .RE .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} ndb_\fInode_id\fR_trace\&.log\&.\fItrace_id\fR is a trace file describing exactly what happened just before the error occurred\&. This information is useful for analysis by the NDB Cluster development team\&. .sp It is possible to configure the number of these trace files that are created before old files are overwritten\&. \fItrace_id\fR is a number which is incremented for each successive trace file\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} ndb_\fInode_id\fR_trace\&.log\&.next is the file that keeps track of the next trace file number to be assigned\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} ndb_\fInode_id\fR_out\&.log is a file containing any data output by the \fBndbd\fR process\&. This file is created only if \fBndbd\fR is started as a daemon, which is the default behavior\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} ndb_\fInode_id\fR\&.pid is a file containing the process ID of the \fBndbd\fR process when started as a daemon\&. It also functions as a lock file to avoid the starting of nodes with the same identifier\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} ndb_\fInode_id\fR_signal\&.log is a file used only in debug versions of \fBndbd\fR, where it is possible to trace all incoming, outgoing, and internal messages with their data in the \fBndbd\fR process\&. .RE .PP It is recommended not to use a directory mounted through NFS because in some environments this can cause problems whereby the lock on the \&.pid file remains in effect even after the process has terminated\&. .PP To start \fBndbd\fR, it may also be necessary to specify the host name of the management server and the port on which it is listening\&. Optionally, one may also specify the node ID that the process is to use\&. .sp .if n \{\ .RS 4 .\} .nf $> \fBndbd \-\-connect\-string="nodeid=2;host=ndb_mgmd\&.mysql\&.com:1186"\fR .fi .if n \{\ .RE .\} .PP See Section\ \&25.4.3.3, \(lqNDB Cluster Connection Strings\(rq, for additional information about this issue\&. For more information about data node configuration parameters, see Section\ \&25.4.3.6, \(lqDefining NDB Cluster Data Nodes\(rq\&. .PP When \fBndbd\fR starts, it actually initiates two processes\&. The first of these is called the \(lqangel process\(rq; its only job is to discover when the execution process has been completed, and then to restart the \fBndbd\fR process if it is configured to do so\&. Thus, if you attempt to kill \fBndbd\fR using the Unix \fBkill\fR command, it is necessary to kill both processes, beginning with the angel process\&. The preferred method of terminating an \fBndbd\fR process is to use the management client and stop the process from there\&. .PP The execution process uses one thread for reading, writing, and scanning data, as well as all other activities\&. This thread is implemented asynchronously so that it can easily handle thousands of concurrent actions\&. In addition, a watch\-dog thread supervises the execution thread to make sure that it does not hang in an endless loop\&. A pool of threads handles file I/O, with each thread able to handle one open file\&. Threads can also be used for transporter connections by the transporters in the \fBndbd\fR process\&. In a multi\-processor system performing a large number of operations (including updates), the \fBndbd\fR process can consume up to 2 CPUs if permitted to do so\&. .PP For a machine with many CPUs it is possible to use several \fBndbd\fR processes which belong to different node groups; however, such a configuration is still considered experimental and is not supported for MySQL 8\&.4 in a production setting\&. See Section\ \&25.2.7, \(lqKnown Limitations of NDB Cluster\(rq\&. .SH "COPYRIGHT" .br .PP Copyright \(co 1997, 2024, Oracle and/or its affiliates. .PP 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. .PP 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. .PP 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/. .sp .SH "NOTES" .IP " 1." 4 Data Node Error Messages .RS 4 \%https://dev.mysql.com/doc/ndb-internals/en/ndb-node-error-messages.html .RE .SH "SEE ALSO" For more information, please refer to the MySQL Reference Manual, which may already be installed locally and which is also available online at http://dev.mysql.com/doc/. .SH AUTHOR Oracle Corporation (http://dev.mysql.com/).