知识卡片
热点需要按流量扩展
键数量均匀不代表访问负载均匀,一张爆红照片就可能压热所在分片。复制分片允许只增加热点片的服务副本,并将低负载片合并部署,提高资源利用。扩展必须依据请求成本和流量观察;若状态写入不能并行,增加读副本也不会消除写热点。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Sharded Services · 查看原书依据
“hot shards” appear because organic load patterns drive more traffic to one particular shard. As an example of this, consider a sharded cache for a user’s photos; when a particular photo goes viral and suddenly receives a disproportionate amount of traffic, the cache shard containing that photo will
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第07章《Chapter 7. Sharded Services》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch07.html)
- 结论依据:原文爆红照片和热片复制、冷片合并说明按负载而非键数调整。
- 原始内容:“hot shards” appear because organic load patterns drive more traffic to one particular shard. As an example of this, consider a sharded cache for a user’s photos; when a particular photo goes viral and suddenly receives a disproportionate amount of traffic, the cache shard containing that photo will