MySQL Cluster Manager 8.4.1 User Manual

4.1 mcmd, the MySQL Cluster Manager Agent

mcmd is the MySQL Cluster Manager agent program. Invoking this executable starts the MySQL Cluster Manager Agent, to which you can connect using the mcm client (see Section 4.3, “Starting the MySQL Cluster Manager Client” and Chapter 5, MySQL Cluster Manager Client Commands for more information).

You can modify the behavior of the agent by specifying one or more of the options discussed in this section. Depending on the option of interest, there are up to three ways to set it:

  1. Include the option directly on the command line when invoking mcmd. This can be done for all options that has Yes under the Cmd-Line column in Table 4.1 MySQL Cluster Manager Agent (mcmd) Option Summary. Some options can only be specified by this method on the command line (for example, --config and --bootstrap).

    When specifying an agent configuration option on the command line using this method, the name of the option is prefixed with two leading dash characters (--); for example, --mcmd-user=johndoe. See the Command-Line Format for each option given in the option description table.

  2. Include the option in the agent configuration file. This can be done for all options that has Yes under the Option File column in Table 4.1 MySQL Cluster Manager Agent (mcmd) Option Summary. These rules apply:

    • The name of the option should not be prefixed with dashes, or any other characters.

    • Any hyphens in the option names should be changed to underscores.

    • The format of the configuration file follows that of the MySQL Router configuration file; see Configuration File Syntax for an explanation of the file format. An option must be specified in the correct section in the configuration file; see Table 4.1, “MySQL Cluster Manager Agent (mcmd) Option Summary” for which section each option belongs to.

    • Each option must be specified on a separate line. You can comment out a line by inserting a leading hash character (#).

  3. Any options configurable in the configuration file (i.e., by method 2 above), with the exception of mcmd_password, can be set or overridden at the mcmd command line by specifying the option in the format of --section_name.option=value, where section_name is name of the section in the configuration file that the option belongs to. For example, --mcmd.bind_port=12345 and --logger.level=DEBUG.

The following table contains a summary of agent options that are read on startup by mcmd. More detailed information about each of these options can be found in the option descriptions.

Table 4.1 MySQL Cluster Manager Agent (mcmd) Option Summary

Name Cmd-Line Option File Configuration File Section
bind_address - Yes mcmd
bind-port - Yes mcmd
bootstrap Yes - -
config Yes - -
copy-port - Yes mcmd
core-file Yes - -
data-folder Yes Yes DEFAULT
extra-config Yes - -
filename - Yes logger, syslog, filelog, eventlog
help Yes - -
initial Yes - -
level - Yes logger
logging_folder - Yes DEFAULT
max_total_connections - Yes DEFAULT
mcmd_password - Yes mcmd
mcmd-user - Yes mcmd
pid-file Yes Yes DEFAULT
sinks - Yes DEFAULT
ssl_ca - Yes mcmd
ssl_cert - Yes mcmd
ssl_cipher - Yes mcmd
ssl_key - Yes mcmd
ssl_mode - Yes mcmd
unknown_config_option - Yes DEFAULT
version Yes - -
xcom-port - Yes mcmd

MySQL Cluster Manager Agent (mcmd) Option Descriptions

The following list contains descriptions of each configuration option available for use with mcmd, including allowed and default values. Options with their Type unmentioned need only be specified in order to take effect— you should not try to set a value for them.