1> Lets say we have nodejs configuration as below
const cassandra = require("cassandra-driver"); const clientOptions = { contactPoints: ["host1", "host2"], keyspace: "test"
In above case lets say we have 2 datacenters. host1 in housed in DataCenter1 and host2 in DataCenter2.
So incase of nodejs configuration should we use Contactpoints
contactPoints: ["host1", "host2"] for Client near DC1
And
contactPoints: ["host2", "host1"] for client near DC2??
So that Client near DC2 will connect to host2 first rather than host1??
[Edited with second question posted in #8622 and third question posted in #8623]