I am not getting, HostDistance concept means it has LOCAL or REMOTE value. Need to set it while creating connections i.e core/max in pooling options using java API.
Question is
- Do we need to set HostDistance values for each node in cluster? if yes how?
or
- Does it depend on loadBalancing policy? If yes,how?,since we don't specify it in load balancing policy as per my understanding. If no, how it decides HostDistance then?
I read these links
https://docs.datastax.com/en/drivers/java/2.0/com/datastax/driver/core/HostDistance.html
Please correct my understanding. Thanks!