I'm just being curious. Are Cassandra drivers aware of the topology? Meaning that the driver knows which rack is the closest one and which node is most likely to hold the data and has a low latency to reduce response time of requests? Or is every driver aware of this? Which libraries would you recommend?
我只是好奇。 Cassandra驱动程序是否了解拓扑?这意味着驱动程序知道哪个机架是最接近的机架,哪个节点最有可能保存数据,并且具有低延迟以减少请求的响应时间?或者每个司机都知道这个?你会推荐哪些图书馆?
I really appreciate your help.
我非常感谢你的帮助。
1 个解决方案
#1
2
All DataStax drivers for Cassandra come with various load balancing options in the form of pluggable policies. Just to give you some examples:
Cassandra的所有DataStax驱动程序都带有可插拔策略形式的各种负载平衡选项。只是给你一些例子:
- smart request routing based on tokens:
TokenAwarePolicy
- DC awareness:
DCAwareRoundRobinPolicy
- latency awareness:
LatencyAwarePolicy
基于令牌的智能请求路由:TokenAwarePolicy
DC意识:DCAwareRoundRobinPolicy
延迟感知:LatencyAwarePolicy
There are probably other drivers that support some of these load balancing options, but I don't know all of them :-).
可能还有其他驱动程序支持其中一些负载均衡选项,但我不知道所有这些:-)。
#1
2
All DataStax drivers for Cassandra come with various load balancing options in the form of pluggable policies. Just to give you some examples:
Cassandra的所有DataStax驱动程序都带有可插拔策略形式的各种负载平衡选项。只是给你一些例子:
- smart request routing based on tokens:
TokenAwarePolicy
- DC awareness:
DCAwareRoundRobinPolicy
- latency awareness:
LatencyAwarePolicy
基于令牌的智能请求路由:TokenAwarePolicy
DC意识:DCAwareRoundRobinPolicy
延迟感知:LatencyAwarePolicy
There are probably other drivers that support some of these load balancing options, but I don't know all of them :-).
可能还有其他驱动程序支持其中一些负载均衡选项,但我不知道所有这些:-)。