HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Install CM

CM(Cluster Manager) is a database high-availability management software developed for MogDB. PTK supports to install CM together with the --install-cm option in the command line when installing MogDB database cluster. PTK also provides the function of installing CM to facilitate the standalone installation if CM is not installed when installing database cluster.

Search For Installer

By default, if you do not specify a CM installer, PTK searches for the CM installer in the database cluster's tools directory ($GPHOME), because normally the installer that PTK unpacks after installing the database cluster stays in this directory. If the CM installer is found, the installation will be completed automatically.

By default, the installation directory of CM will be installed to the cm directory under the global.base_dir directory in the cluster configuration file. If you have not configured the global.base_dir directory, or if you want to specify the installation directory, you need to specify it with the --cmdir parameter.

The installation command is as follows:

ptk cluster -n <CLUSTER_NAME> install-cm

Specify Local Installer

ptk cluster -n <CLUSTER_NAME> install-cm -p <installer path>

Configure the Parameters of CM Agent or CM Server

If you want to change the default configuration in the configuration file of CM agent or CM server when installing CM, you can specify it via --agent-conf and -server-conf in the command line, and you need to specify it multiple times to configure multiple parameters:

ptk cluster -n <CLUSTER_NAME> install-cm --agent-conf <KEY1>=<VALUE1> --agent-conf <KEY2>=<VALUE2> --server-conf <KEY3>=<VALUE3> --server-conf <KEY4>=<VALUE4>

More parameters can be found in the install-cm command documentation.

Copyright © 2011-2024 www.enmotech.com All rights reserved.