rantav/hector — Issue #372: Support multiple ip addresses per host name
Author: abirkmanis
Created: 2011-12-19 17:50:50+00:00
State: open

A common case for operations is to use DNS for load balancing and failover, mapping a single host name to multiple ips.
Currently, CassandraHost uses InetAddress.getByName(), which gets only on of the ips.

I suggest using InetAddress.getAllByName() (apparently it should be called outside of CassandraHost constructor) so that every host name in a connection string passed to CassandraHostConfigurator potentially gives rise to multiple instances of CassandraHost.

A nice-to-have is to continue calling InetAddress.getAllByName() periodically in order to detect removed/added ips (this is important for applications running 24/7 for weeks).