Click or drag to resize

ILoadBalancingPolicyDistance Method

Returns the distance assigned by this policy to the provided host.

The distance of an host influence how much connections are kept to the node (see HostDistance). A policy should assign a * LOCAL distance to nodes that are susceptible to be returned first by newQueryPlan and it is useless for newQueryPlan to return hosts to which it assigns an IGNORED distance.

The host distance is primarily used to prevent keeping too many connections to host in remote datacenters when the policy itself always picks host in the local datacenter first.

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
HostDistance Distance(
	Host host
)

Parameters

host
Type: DseHost
the host of which to return the distance of.

Return Value

Type: HostDistance
the HostDistance to host.
See Also