You must set up system hostnames in a manner that is consistent with Momentum; however, this can be difficult to do in an Amazon Web Services (AWS) environment.
Momentum's installation requires that each node is able to resolve its own hostname (e.g., the value of $HOSTNAME), as well as the hostnames of all nodes in the cluster. We recommend you use fully qualified domain names (FQDNs) for these hostnames.
Warning
Failure to use consistent and well-resolved hostnames will result in various installation problems and errors.
Run the following commands if your current hostnames are not FQDNs and do not resolve cleanly.
Note
The following solution is run using basic tools, but you may want to use advanced solutions such as Puppet and cloud-config.
-
Change the output of
hostname
.hostname
hostname -f
-
Manually edit the
/etc/sysconfig/network
file so its HOSTNAME field matches the output ofhostname -f
.NETWORKING=yes HOSTNAME='mymta1.localnet.example.com'
-
Reboot the system. You may also choose to do this:
source /etc/sysconfig/network
-
Confirm your new hostname resolves successfully.
dig +short $HOSTNAME
-
Either edit the
/etc/hosts
file on all systems in the cluster to match this convention or configure your Domain Name Server accordingly.