MySQL 8.0 Reference Manual Including MySQL NDB Cluster 8.0

25.5.4 ndb_mgmd — The NDB Cluster Management Server Daemon

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.

All options that can be used with ndb_mgmd are shown in the following table. Additional descriptions follow the table.

Table 25.26 Command-line options used with the program ndb_mgmd

Format Description Added, Deprecated, or Removed

--bind-address=host

Local bind address

(Supported in all NDB releases based on MySQL 8.0)

--character-sets-dir=path

Directory containing character sets

REMOVED: 8.0.31

--cluster-config-suffix=name

Override defaults group suffix when reading cluster_config sections in my.cnf file; used in testing

ADDED: 8.0.24

--config-cache[=TRUE|FALSE]

Enable management server configuration cache; true by default

(Supported in all NDB releases based on MySQL 8.0)

--config-file=file,

-f file

Specify cluster configuration file; also specify --reload or --initial to override configuration cache if present

(Supported in all NDB releases based on MySQL 8.0)

--configdir=directory,

--config-dir=directory

Specify cluster management server configuration cache directory

(Supported in all NDB releases based on MySQL 8.0)

--connect-retries=#

Number of times to retry connection before giving up

REMOVED: 8.0.31

--connect-retry-delay=#

Number of seconds to wait between attempts to contact management server

REMOVED: 8.0.31

--connect-string=connection_string,

-c connection_string

Same as --ndb-connectstring

(Supported in all NDB releases based on MySQL 8.0)

--core-file

Write core file on error; used in debugging

REMOVED: 8.0.31

--daemon,

-d

Run ndb_mgmd in daemon mode (default)

(Supported in all NDB releases based on MySQL 8.0)

--defaults-extra-file=path

Read given file after global files are read

(Supported in all NDB releases based on MySQL 8.0)

--defaults-file=path

Read default options from given file only

(Supported in all NDB releases based on MySQL 8.0)

--defaults-group-suffix=string

Also read groups with concat(group, suffix)

(Supported in all NDB releases based on MySQL 8.0)

--help,

-?

Display help text and exit

(Supported in all NDB releases based on MySQL 8.0)

--initial

Causes management server to reload configuration data from configuration file, bypassing configuration cache

(Supported in all NDB releases based on MySQL 8.0)

--install[=name]

Used to install management server process as Windows service; does not apply on other platforms

(Supported in all NDB releases based on MySQL 8.0)

--interactive

Run ndb_mgmd in interactive mode (not officially supported in production; for testing purposes only)

(Supported in all NDB releases based on MySQL 8.0)

--log-name=name

Name to use when writing cluster log messages applying to this node

(Supported in all NDB releases based on MySQL 8.0)

--login-path=path

Read given path from login file

(Supported in all NDB releases based on MySQL 8.0)

--mycnf

Read cluster configuration data from my.cnf file

(Supported in all NDB releases based on MySQL 8.0)

--ndb-connectstring=connection_string,

-c connection_string

Set connect string for connecting to ndb_mgmd. Syntax: "[nodeid=id;][host=]hostname[:port]". Overrides entries in NDB_CONNECTSTRING and my.cnf

(Supported in all NDB releases based on MySQL 8.0)

--ndb-mgmd-host=connection_string,

-c connection_string

Same as --ndb-connectstring

(Supported in all NDB releases based on MySQL 8.0)

--ndb-nodeid=#

Set node ID for this node, overriding any ID set by --ndb-connectstring

(Supported in all NDB releases based on MySQL 8.0)

--ndb-optimized-node-selection

Enable optimizations for selection of nodes for transactions. Enabled by default; use --skip-ndb-optimized-node-selection to disable

REMOVED: 8.0.31

--no-defaults

Do not read default options from any option file other than login file

(Supported in all NDB releases based on MySQL 8.0)

--no-nodeid-checks

Do not perform any node ID checks

(Supported in all NDB releases based on MySQL 8.0)

--nodaemon

Do not run ndb_mgmd as a daemon

(Supported in all NDB releases based on MySQL 8.0)

--nowait-nodes=list

Do not wait for management nodes specified when starting this management server; requires --ndb-nodeid option

(Supported in all NDB releases based on MySQL 8.0)

--print-defaults

Print program argument list and exit

(Supported in all NDB releases based on MySQL 8.0)

--print-full-config,

-P

Print full configuration and exit

(Supported in all NDB releases based on MySQL 8.0)

--reload

Causes management server to compare configuration file with configuration cache

(Supported in all NDB releases based on MySQL 8.0)

--remove[=name]

Used to remove management server process that was previously installed as Windows service, optionally specifying name of service to be removed; does not apply on other platforms

(Supported in all NDB releases based on MySQL 8.0)

--skip-config-file

Do not use configuration file

(Supported in all NDB releases based on MySQL 8.0)

--usage,

-?

Display help text and exit; same as --help

(Supported in all NDB releases based on MySQL 8.0)

--verbose,

-v

Write additional information to log

(Supported in all NDB releases based on MySQL 8.0)

--version,

-V

Display version information and exit

(Supported in all NDB releases based on MySQL 8.0)


It is not strictly necessary to specify a connection string when starting the management server. However, if you are using more than one management server, a connection string should be provided and each node in the cluster should specify its node ID explicitly.

See Section 25.4.3.3, “NDB Cluster Connection Strings”, for information about using connection strings. Section 25.5.4, “ndb_mgmd — The NDB Cluster Management Server Daemon”, describes other options for ndb_mgmd.

The following files are created or used by ndb_mgmd in its starting directory, and are placed in the DataDir as specified in the config.ini configuration file. In the list that follows, node_id is the unique node identifier.