知识卡片
分片缓存提高有效容量
若每个缓存10GB、数据全集200GB,十个保存相同热点的副本有效覆盖仍接近10GB;若数据不重叠分到十片,有效容量可接近100GB。收益依赖访问与容量分布,不能仅从机器总内存推断命中率;缓存键与数据划分必须一致。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Sharded Services · 查看原书依据
If instead, we deploy a 10-way sharded cache, we can still serve the appropriate number of RPS (10 × 100 is still 1,000), but because each cache serves a completely unique set of data, we are able to store 50% (10 × 10 GB/200 GB) of the total
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第07章《Chapter 7. Sharded Services》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch07.html)
- 结论依据:原文10GB/200GB例子对比重复副本与不重复分片存储。
- 原始内容:If instead, we deploy a 10-way sharded cache, we can still serve the appropriate number of RPS (10 × 100 is still 1,000), but because each cache serves a completely unique set of data, we are able to store 50% (10 × 10 GB/200 GB) of the total