class EC2MultiRegion
This policy resolves private ips of the hosts in the same datacenter and public ips of hosts in other datacenters.
- Note
- Initializing this policy is not necessary, you should just pass
:ec_multi_region
to the:address_resolution
option ofCassandra.cluster
Inherits
Object
Methods
resolve
(address)Returns ip address after a double DNS lookup. First, it will get hostname from a given ip, then resolve the resulting hostname. This policy works because AWS public hostnames resolve to a private ip address within the same datacenter.