rladmin node addr set
Sets a node's internal IP address.
Sets the internal IP address of a node. You can only set the internal IP address when the node is down. See Change internal IP address for detailed instructions.
rladmin node <ID> addr set <IP address>
Parameters
Parameter | Type/Value | Description |
---|---|---|
node | integer | Sets the internal IP address of the specified node |
addr | IP address | Sets the node's internal IP address to the specified IP address |
Returns
Returns Updated successfully
if the IP address was set. Otherwise, it returns an error.
Use rladmin status nodes
to verify the internal IP address was changed.
Example
$ rladmin status nodes
CLUSTER NODES:
NODE:ID ROLE ADDRESS EXTERNAL_ADDRESS HOSTNAME SHARDS CORES FREE_RAM PROVISIONAL_RAM VERSION STATUS
*node:1 master 192.0.2.2 3d99db1fdf4b 5/100 6 16.06GB/19.54GB 12.46GB/16.02GB 6.2.12-37 OK
node:2 slave 192.0.2.3 fc7a3d332458 0/100 6 -/19.54GB -/16.02GB 6.2.12-37 DOWN, last seen 33s ago
node:3 slave 192.0.2.4 b87cc06c830f 5/120 6 16.06GB/19.54GB 12.46GB/16.02GB 6.2.12-37 OK
$ rladmin node 2 addr set 192.0.2.5
Updated successfully.
$ rladmin status nodes
CLUSTER NODES:
NODE:ID ROLE ADDRESS EXTERNAL_ADDRESS HOSTNAME SHARDS CORES FREE_RAM PROVISIONAL_RAM VERSION STATUS
*node:1 master 192.0.2.2 3d99db1fdf4b 5/100 6 14.78GB/19.54GB 11.18GB/16.02GB 6.2.12-37 OK
node:2 slave 192.0.2.5 fc7a3d332458 0/100 6 14.78GB/19.54GB 11.26GB/16.02GB 6.2.12-37 OK
node:3 slave 192.0.2.4 b87cc06c830f 5/120 6 14.78GB/19.54GB 11.18GB/16.02GB 6.2.12-37 OK