Skip to main content
QUICK REVIEW

[论文解读] InfiniCache: Exploiting Ephemeral Serverless Functions to Build a Cost-Effective Memory Cache

Ao Wang, Jingyuan Zhang Zhang|arXiv (Cornell University)|Jan 28, 2020
Caching and Content DeliveryComputer Science被引用 20
一句话总结

InfiniCache 提出了一种完全基于临时云函数(如 AWS Lambda)的无服务器内存对象缓存,通过纠删码和智能计费控制实现按使用量计费的弹性扩展。与 AWS ElastiCache 相比,其租户成本降低了 31–96 倍,同时在一小时窗口内保持 95.4% 的数据可用性,并且性能与传统内存缓存相当。

ABSTRACT

Internet-scale web applications are becoming increasingly storage-intensive and rely heavily on in-memory object caching to attain required I/O performance. We argue that the emerging serverless computing paradigm provides a well-suited, cost-effective platform for object caching. We present InfiniCache, a first-of-its-kind in-memory object caching system that is completely built and deployed atop ephemeral serverless functions. InfiniCache exploits and orchestrates serverless functions' memory resources to enable elastic pay-per-use caching. InfiniCache's design combines erasure coding, intelligent billed duration control, and an efficient data backup mechanism to maximize data availability and cost-effectiveness while balancing the risk of losing cached state and performance. We implement InfiniCache on AWS Lambda and show that it: (1) achieves 31 -- 96X tenant-side cost savings compared to AWS ElastiCache for a large-object-only production workload, (2) can effectively provide 95.4% data availability for each one hour window, and (3) enables comparative performance seen in a typical in-memory cache.

研究动机与目标

  • 为解决传统内存键值存储在缓存大对象(MB 到 GB 级)时成本高昂且效率低下的问题。
  • 探索临时无服务器函数是否可作为有状态内存缓存的可行且低成本的平台。
  • 设计一种系统,在最小化成本并缓解函数回收与状态丢失风险的同时,最大化数据可用性和性能。
  • 通过利用函数内存和调用计费机制,在存储层面实现按使用量计费的弹性扩展。

提出的方法

  • 利用无服务器函数的透明函数缓存机制,在调用间保留内存状态,实现无需专用服务器的持久缓存。
  • 应用纠删码以实现对函数回收的容错能力,提升并行带宽利用率,并缓解慢启动(straggler)效应。
  • 实现基于差异同步的数据备份机制,确保函数实例间的一致性和可用性。
  • 通过智能函数调用调度控制计费时长,以在保持性能的同时最小化成本。
  • 编排多个函数,使其作为具有负载均衡和冗余能力的分布式弹性内存缓存。
  • 利用对象级元数据和访问模式指导缓存决策,优化资源使用。

实验结果

研究问题

  • RQ1临时无服务器函数能否有效用于构建可扩展、成本高效的大型对象内存缓存?
  • RQ2尽管无服务器函数具有短暂性和不可预测的回收特性,如何确保数据可用性和容错能力?
  • RQ3纠删码与智能计费控制在保持低延迟和高可用性的同时,能在多大程度上降低系统成本?
  • RQ4基于无服务器的缓存与传统内存缓存(如 AWS ElastiCache)相比,在性能和成本方面表现如何?

主要发现

  • 对于仅包含大对象的生产工作负载,InfiniCache 相较于 AWS ElastiCache 实现了 31–96 倍的租户侧成本降低。
  • 系统在每个一小时窗口内保持 95.4% 的数据可用性,证明其对函数回收具有强大韧性。
  • InfiniCache 提供与传统内存缓存相当的性能,对频繁访问的大对象实现低延迟访问。
  • 纠删码有效缓解了慢启动函数的影响,并以极低的存储开销实现了高效的容错能力。
  • 差异同步备份机制确保了数据的一致性恢复,并减少了冗余数据传输。
  • 基于函数调用的按使用量计费模式显著降低了成本,尤其适用于高对象重用率和低访问频率的工作负载。

阅读本论文

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

在 Nubint 中阅读本论文

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