If I set both routing policy to true which CPP driver allows me to do that then which one will take effect.
cass_cluster_set_token_aware_routing(cluster, cass_true);
cass_cluster_set_latency_aware_routing(cluster, cass_true);
I have following questions
Q1)
Are both of TokenAwareRouting and LatencyAwareRouting true effective?
Q2)
If both of true is effective, how CPP driver behave to select cassandra nodes in routing policy?
I would like to know LatencyAwareRouting will be applied among nodes with the token affected not with all nodes in the ring or etc.
Q3)
If LatencyAwareRouting is true, is dynamic_snitch_badness_threshold(cassandra.yaml) setting effective?
If answer yes, how CPP driver routing policy will be?
Q4)
If TokenAwareRouting is true, is dynamic_snitch_badness_threshold(cassandra.yaml) setting effective?
If answer yes, how CPP driver routing policy will be?
Regards,
Arun
Hi,
If I set both routing policy to true which CPP driver allows me to do that then which one will take effect.
cass_cluster_set_token_aware_routing(cluster, cass_true);
cass_cluster_set_latency_aware_routing(cluster, cass_true);
I have following questions
Q1)
Are both of TokenAwareRouting and LatencyAwareRouting true effective?
Q2)
If both of true is effective, how CPP driver behave to select cassandra nodes in routing policy?
I would like to know LatencyAwareRouting will be applied among nodes with the token affected not with all nodes in the ring or etc.
Q3)
If LatencyAwareRouting is true, is dynamic_snitch_badness_threshold(cassandra.yaml) setting effective?
If answer yes, how CPP driver routing policy will be?
Q4)
If TokenAwareRouting is true, is dynamic_snitch_badness_threshold(cassandra.yaml) setting effective?
If answer yes, how CPP driver routing policy will be?
Regards,
Arun
--
You received this message because you are subscribed to the Google Groups "DataStax C++ Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-user+unsubscribe@lists.datastax.com.
Hi Mike,Thanks for replying.I have additional questions.If it applies token aware first then it will match only one node right as token will be hashed to only one node. So if this node has high latency then latency aware will be applied and query may hit to the node which is not affected by token aware.
Is my understanding correct?How token aware is applied for batch query. Batch may have multiple query with multiple partition keys on different table. So which key is considered to choose coordinator.