Starting with version 4.9, the Apache Software Foundation owns and maintains the NodeJS driver. For the latest version, visit github.com/apache/cassandra-nodejs-driver
A data-center aware Round-robin load balancing policy.
This policy provides round-robin queries over the node of the local
data center. It also includes in the query plans returned a configurable
number of hosts in the remote data centers, but those are always tried
after the local nodes. In other words, this policy guarantees that no
host in a remote data center will be queried unless no host in the local
data center can be reached.
Deprecated: the number of host per remote datacenter that the policy will
yield in a newQueryPlan after the local nodes.
Note that this parameter is deprecated and will be removed in the next major version. Handling data center
outages is better suited at a service level rather than within an application client.
It returns an iterator that yields local nodes first and remotes nodes afterwards.
The amount of remote nodes returned will depend on the usedHostsPerRemoteDc