Need a load balancing policy that takes the server node's latency into account
Hi, it looks the gocql driver has never include a load balancing policy that takes in the server node's latency into account, like the old LatencyAwarePolicy in the cassandra-java-driver 3.x, now in the latest cassandra-java-driver 4.x there is a separate LatencySensitiveLoadBalancingPolicy which adds the latency sensitivity in the client side based on the DefaultLoadBalancingPolicy, wondering is it ok for gocql to add the similar counterpart because this can add some smartness in the client to temporarily avoid the server node(s) with high latencies, thanks!
cc: @joao-r-reis
I'm neutral on this, if anyone wants to work on a PR I can take a look at it but it would probably benefit from a wider community discussion on the ASF slack (cassandra-drivers channel) or the Apache Cassandra dev mailing list
Thank you for the reply! let me try to start a thread discussion(haven't done that before).
- We need to make sure that Timeouts are properly counted
- Does Cassandra suffer from LWT congestion when LWT queries for the same partition scheduled on different nodes ? If so, we need to figure out what to do with LWT queries in such case.
- We need to figure out how to properly marry it with DC/Rack and token aware policies