add DCLocalRoundRobin host selection policy - #1956
Conversation
|
Adding a whole new type for this seems unnecessary, we just need a new boolean field on the existing policy like Also, there's nothing in the integration test suite that verifies that the driver will be able to successfully connect and initialize with the scenario you're describing. Unfortunately this would require a cluster with two datacenters and the cluster we create for CI only has one datacenter. Maybe we could change the CI cluster to have two datacenters though. |
|
In my app I finished not with fork of this driver, but with this custom selection policy: And use it like this: |
We already have code dealing with several datacenters and fallback to not preferred one and no tests for it |
As requested in #956 we need an option to not fallback to remote datacenter in DCAware host selection policy.
Unfortunately we first try to connect to remote datacenter host and receive local hosts there. So the way with HostFilter does not work for us. It seems that such host selection policy should work for us...