I have four nodes in private network with IP’s
And also each node has public IP/hostname
Currently I’ve configured cluster to use hostnames.
Everything is ok and all clients have access to cluster.
And nodes communicate with each other by hostnames - by public network. And it’s slower than private network.
If I configure cluster using private IP’s, clients that’re not in private network will not be able to access the cluster.
How should I configure cluster to make nodes communicate with each other by private network and allow client from public network access it?