HomeMogDBMogDB StackUqbar
v1.1

Documentation:v1.1

Supported Versions:

Other Versions:

MogHA Installation and Uninstallation

PTK supports the MogHA installation process in prerequisite that the user provides a legal MogHA configuration file. Before MogHA is installed, PTK verifies the configuration file.

Pre-Installation Verification

  • Verify whether the cluster status is normal.
  • Verify whether there is MogHA running on the target server.

Verification Content

  • Verify whether db_user is null and consistent with the database user in a cluster.

  • Verify whether db_port is null and consistent with the database port in a cluster and whether the port is occupied.

  • Verify whether db_datadir is null and consistent with the database directory in a cluster.

  • Verify whether agent_port is null and meets the port specifications and whether the port is occupied.

  • Verify whether there are two or more servers where MogHA is to be installed.

  • Verify the pinglist and hosts fields in a zone.

  • Verify the lite_mode mode.

Deployment Mode

MogHA is deployed in two modes, including the lite mode and the non-lite mode.

  • For the lite mode, MogHA is installed on only a primary node and a synchronous standby node. If there are multiple synchronous standby nodes, you need to choose one for installation. If there is only one synchronous standby node, MogHA is installed on it by default.

  • For the non-lite mode, MogHA is installed on all nodes in a cluster.

Generation of a Configuration File Template

PTK provides a template command to help users automatically generate a MogHA configuration file.

ptk template mogha -n CLUSTER_NAME [-o node.conf] [--port 8081]

Installation Command

ptk cluster -n CLUSTER_NAME install-mogha -d INSTALL_DIR -c node.conf [-p MOGHA_PACKAGE]

Uninstallation Command

ptk cluster -n CLUSTER_NAME uninstall-mogha
Copyright © 2011-2024 www.enmotech.com All rights reserved.