Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Configure DCAwareRoundRobinPolicy to consider remote hosts #80

Open
jameswren opened this issue May 30, 2018 · 0 comments
Open

Configure DCAwareRoundRobinPolicy to consider remote hosts #80

jameswren opened this issue May 30, 2018 · 0 comments

Comments

@jameswren
Copy link

Expected Behaviour

When no local hosts are available, remote hosts are used.


Actual Behaviour

When no local hosts are available, remote hosts are not used.


Suggested fix

Configure withUsedHostsPerRemoteDc on the cluster builder's LoadBalancingPolicy:

CassandraMigration.kt#L289
https://docs.datastax.com/en/latest-java-driver-api/com/datastax/driver/core/policies/DCAwareRoundRobinPolicy.Builder.html#withUsedHostsPerRemoteDc-int-

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant