Class: EC2MultiRegionTranslator

policies/addressResolution~EC2MultiRegionTranslator()

AddressTranslator implementation for multi-region EC2 deployments where clients are also deployed in EC2.

Its distinctive feature is that it translates addresses according to the location of the Cassandra host:

  • addresses in different EC2 regions (than the client) are unchanged
  • addresses in the same EC2 region are translated to private IPs

This optimizes network costs, because Amazon charges more for communication over public IPs.

Constructor

new EC2MultiRegionTranslator()

Source:

Methods

logError(address, err)

Log method called to log errors that occurred while performing dns resolution. You can assign your own method to the class instance to do proper logging.

Parameters:
Name Type Description
address String
err Error
Source:

translate()

Addresses in the same EC2 region are translated to private IPs and addresses in different EC2 regions (than the client) are unchanged

Source: