The distance to a Cassandra node as assigned by a
com.datastax.driver.core.policies.LoadBalancingPolicy (through
its
* distance method). The distance assigned to an host
influence how many connections the driver maintains towards this host. If for
a given host the assigned
HostDistance is
Local or
Remote, some connections will be maintained by the driver to
this host. More active connections will be kept to
Local host
than to a
Remote one (and thus well behaving
LoadBalancingPolicy should assign a
Remote distance
only to hosts that are the less often queried).
However, if an host is
assigned the distance Ignored, no connection to that host will
maintained active. In other words, Ignored should be assigned to
hosts that should not be used by this driver (because they are in a remote
datacenter for instance).
Namespace: CassandraAssembly: Cassandra (in Cassandra.dll) Version: 3.0.9 (git 5ca22bb)
Syntax Members
| Member name | Value | Description |
---|
| Local | 0 | |
| Remote | 1 | |
| Ignored | 2 | |
See Also