HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Manage Cluster VIP

This document only describes how to manage VIPs for clusters with CM. For MogHA VIP configuration, please refer to this document.

What is a VIP

VIP stands for virtual IP, which does not correspond to a specific server or NIC, and can be bound to any server in the same network segment. Therefore, using a virtual IP to connect to the database service ensures that when the database is switched and the VIP is bound to a new primary node, there is no need to change the configuration of the service, which ensures the continuity of the service.

Prerequisites

When using load-cm-vip to operate on a cluster, the cluster must have CM installed.

Operation of VIP

PTK provides the functions of installing, uninstalling, and refreshing VIPs.

Operation command:

ptk cluster -n <CLUSTER_NAME> load-cm-vip --action ACTION --vip VIP

Options:

option name option type description
--action String Action type for cm-vip, currently only support [install, uninstall, refresh]
--vip String The value of VIP, only required for install.

QA

How to check if the installation is successful after installing VIP?

  1. Check to see if the install command reported any errors.
  2. Run ptk cluster -n <CLUSTER_NAME> status and see if the value of active_vip column is as expected.

Does load-cm-vip have version requirements for MogDB?

There is a limitation that this command can only be executed on VIPs if the MogDB version >= 5.0.4.

How can I manage VIP with CM commands?

You can refer to this document to use CM commands to manage VIP.

Does cluster scale-in and scale-out affect VIPs?

No. If you use PTK to scale in or out a cluster, if VIP has been configured, PTK will refresh the cluster VIP configuration once to ensure that CM is configured correctly and available.

What is the maximum number of VIPs that can be configured?

The number of VIPs that can be configured depends on the number of network segments currently used by the cluster.

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