Description
In complex network environments, it is sometimes required to segregate application and database servers into separate networks. Occasionally, these networks are not directly routable and traffic must be sent over a load balancer VIP. This situation is handled by specifying hostnames for the Couchbase nodes and then remapping them via DNS or /etc/hosts files on the application servers to point to individual VIPs per Couchbase node. It would be preferable if this remapping could be done at the application level as to avoid managing host-level or 3rd party configurations.
The specific request is to intercept the host entries in the Couchbase cluster map and comparing them to a locally configured mapping prior to issuing an inetAddress() call within the SDK.