此内容没有您所选择的语言版本。

3.2.5. ConsistentHashFactory


3.2.5.1. TopologyAwareConsistentHashFactory and TopologyAwareSyncConsistentHashFactory

The TopologyAwareConsistentHashFactory implementation enables Server Hinting. This attempts to distribute segments based on the topology information in the Transport configuration.
The TopologyAwareConsistentHashFactory implementation can be selected by setting one or more of the parameters in the transport configuration.
The TopologyAwareSyncConsistentHashFactory implementation can also be selected via the hash configuration:
<hash consistentHashFactory="org.infinispan.distribution.ch.TopologyAwareSyncConsistentHashFactory"/>

This configuration guarantees caches with the same members have the same consistent hash, and if the machineId, rackId, or siteId attributes are specified in the transport configuration it also spreads backup copies across physical machines/racks/data centers.
It has a potential drawback in that it can move a greater number of segments than necessary during re-balancing. This can be mitigated by using a larger number of segments.
Another potential drawback is that the segments are not distributed as evenly as possible, and actually using a very large number of segments can make the distribution of segments worse.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.