Skip to main content
QUICK REVIEW

[论文解读] DistCache: Provable Load Balancing for Large-Scale Storage Systems with Distributed Caching

Zaoxing Liu, Zhihao Bai|arXiv (Cornell University)|Jan 23, 2019
Caching and Content DeliveryComputer Science参考文献 54被引用 56
一句话总结

DistCache 提供可证明的负载均衡用于大规模存储,通过联合设计多层分布式缓存、独立哈希分区和 power-of-two-choices 路由实现线性吞吐量扩展。

ABSTRACT

Load balancing is critical for distributed storage to meet strict service-level objectives (SLOs). It has been shown that a fast cache can guarantee load balancing for a clustered storage system. However, when the system scales out to multiple clusters, the fast cache itself would become the bottleneck. Traditional mechanisms like cache partition and cache replication either result in load imbalance between cache nodes or have high overhead for cache coherence. We present DistCache, a new distributed caching mechanism that provides provable load balancing for large-scale storage systems. DistCache co-designs cache allocation with cache topology and query routing. The key idea is to partition the hot objects with independent hash functions between cache nodes in different layers, and to adaptively route queries with the power-of-two-choices. We prove that DistCache enables the cache throughput to increase linearly with the number of cache nodes, by unifying techniques from expander graphs, network flows, and queuing theory. DistCache is a general solution that can be applied to many storage systems. We demonstrate the benefits of DistCache by providing the design, implementation, and evaluation of the use case for emerging switch-based caching.

研究动机与目标

  • 在跨越多个集群的大规模分布式存储中推动可扩展负载均衡的需求。
  • 提出一种在不产生高一致性开销的情况下实现负载平衡的缓存机制。
  • 与拓扑结构和查询路由共同设计缓存分配,以实现可证明的吞吐量保证。
  • 展示一个具体的基于交换机的缓存用例,并提供一个可扩展的系统设计。

提出的方法

  • 使用独立哈希函数在两层缓存之间分区热对象。
  • 在线使用 power-of-two-choices 路由对查询进行负载均衡,以在没有中心协调的情况下实现平衡。
  • 提供一个数学模型,在广泛条件下证明存在可行分配(完美匹配)。
  • 利用扩张图、网络流和排队理论进行分析,显示缓存吞吐量随节点数量呈线性扩展。
  • 描述一个两阶段缓存一致性更新协议及其低开销。
  • 给出一个与 Redis 集成的具体的基于交换机的缓存系统与原型。

实验结果

研究问题

  • RQ1DistCache 是否能为大规模、多集群存储系统提供可证明的负载均衡?
  • RQ2跨两层的独立哈希分区和在线的 power-of-two-choices 路由如何在尽量降低一致性开销的同时实现负载平衡?
  • RQ3在何种条件下,系统能实现随缓存节点数量近似线性的吞吐量扩展?
  • RQ4如何在基于交换机的缓存中实现 DistCache 并与现有键值存储集成?

主要发现

  • 在足够大的系统中,在广泛工作负载下,以高概率存在可行的分配(完美匹配)来吸收最热对象的查询。
  • DistCache 使跨层缓存吞吐量随缓存节点数量呈线性扩展。
  • power-of-two-choices 路由在没有中央控制器的情况下提供一个分布式、在线且接近最优的解。
  • 具有独立哈希的两层缓存设计可以平衡集群间和集群内的负载并降低一致性开销。
  • 一个具体的基于交换机的缓存架构和原型展示了实际应用性和较低的一致性开销。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。