1. Home
  2. Docs
  3. ClusterControl
  4. Requirements
  5. Host Configurations

Host Configurations

It is recommended for users to set up a proper host definition file in /etc/hosts file. The file should be identical on all servers in your cluster. Otherwise, your database cluster might not work as expected with ClusterControl. Below is an example of a host definition file:

127.0.0.1     localhost.localdomain localhost
10.0.1.10     clustercontrol clustercontrol.example.com
10.0.1.11     server1 server1.example.com
10.0.1.12     server2 server2.example.com

You need to separate the 127.0.0.1 entry from your real hostname, specifying it only to localhost or localhost.localdomain. To verify whether you have set up the hostname correctly, ensure the following command returns the primary IP address:

$ hostname -I
10.0.1.10 # This is good. IP address returned is neither 127.0.0.1 nor 127.0.1.1

 

Was this article helpful to you? Yes No 1