Adding Storage Hosts to a Cluster
A Storage host usually refers to a storage node. This section describes how to verify the running of NebulaGraph in a cluster.
After connecting to the NebulaGraph service using nebula-console, run the following command:
1 | nebula> ADD HOSTS; |
Syntax:
1 2 | nebula> ADD HOSTS <ip>:<port> [,<ip>:<port> ...]; nebula> ADD HOSTS "<hostname>":<port> [,"<hostname>":<port> ...]; |
- The added storage hosts take effect after the next heartbeat cycle. To ensure data synchronization, wait for two heartbeat cycles (20 seconds) and then run the SHOW HOSTS command to check whether the hosts are online.
- Make sure that the IP address and port number are the same as those in the configuration file. For example, the default IP address and port number in standalone deployment are 127.0.0.1:9779.
- When using a domain name, enclose it in quotation marks, for example, ADD HOSTS "foo-bar":9779.
- Ensure that the Storage host to be added is not used by any other clusters; otherwise, the addition will fail.
Parent topic: Running and Verification