HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Update Database IP

Overview

If the IP of a node in a cluster changes due to a third party, the PTK cannot dynamically sense the change, so the operator needs to use the PTK to manually change the IP of the cluster to ensure normal management of the cluster.

Command

ptk cluster -n <CLUSTER_NAME> refresh --replace-ip OLD_IP=NEW_IP

option:

option name option type description
--replace-ip String Array List of IPs to be updated, mapping of old and new key-value pairs

QA

Is it possible for two nodes to exchange IPs?

Yes. The command is as follows:

ptk cluster -n <CLUSTER_NAME> refresh --replace-ip DATANODE_IP1=DATANODE_IP2 --replace-ip DATANODE_IP2=DATANODE_IP1
Copyright © 2011-2024 www.enmotech.com All rights reserved.