Hello team,
During settings up Master-Standby Replication for Postgres according to the ‘Private Cloud Install-Config Guide’, even if there are two NIC devices on both master/standby servers which can communicate with each other, it seems to use always the one communicating with MS server or the IP from /etc/hosts by default. And if we specify the IP of the second NIC at the following steps of ‘Set up Master-Standby Replication for Postgres’ in the guide,
“Enter server ip of master” and “Enter server ip of standby”
the installation fails with
ERROR: postgres server is down or does not seem be 'slave'
Continue anyhow y/(n) y
Error: Cannot get status of postgres server
I would like to know how we can specify the IP addresses of specific NIC on master/standby postgres servers replication. And then we see the output of the curl command:
curl http://<MS ServerIP>:8080/v1/servers
such as;
...
"externalHostName" : "localhost",
"externalIP" : <PS ServerIP>,
"internalHostName" : "localhost",
"internalIP" : <PS ServerIP>,
...
"type" : [ "postgres-server" ],
Where can we specify the externalIP/internalIP above?