DCAwareRoundRobinPolicy Methods |
The DCAwareRoundRobinPolicy type exposes the following members.
Name | Description | |
---|---|---|
Distance |
Return the HostDistance for the provided host. This policy consider nodes in the local datacenter as Local. For each remote datacenter, it considers a configurable number of hosts as Remote and the rest is Ignored. To configure how many host in each remote datacenter is considered Remote. | |
Initialize | ||
NewQueryPlan |
Returns the hosts to use for a new query. The returned plan will always try each known host in the local datacenter first, and then, if none of the local host is reachable, will try up to a configurable number of other host per remote datacenter. The order of the local node in the returned query plan will follow a Round-robin algorithm. |