I am trying to setup SolrCloud on ec2. I have 3 instances and I've installed zookeeper and solr instance on each of them.
Here is my questions:
1) Should I use the private or public IP for the "SOLR_HOST" in the solr.in.sh file? Seems like no matter what I put for that field, it will use the ec2 public IP as solr host and I am afraid that the intercommunication between the solr instance or zookeeper will be charged as bandwidth for this case.
2) For the zookeeper configuration file, should I use private or public IP?
Theoretically should work with public IP, but I advice you to use private IP and make sure that all nodes are in the same private subnet. Please test that nodes can access each other. To access your master nodes, the best practice is to have an edge node with public IP that is also part of the same private network or use reverse NAT instance.
If you don't want to struggle use this: https://bitnami.com/stack/solr/cloud/aws