知识卡片

普通读书笔记卡 · 2313.e.5.p.3.a.1

稳定命名支撑分片寻址

理解等级:中级

分片路由需要稳定地区分各个后端,普通负载均衡地址会抹去这个差异。书中用StatefulSet产生有序副本标识,再用无头Service提供逐实例DNS名,交给twemproxy配置分片。历史apps/v1beta1示例须按当前API重新核验,且稳定命名不自动提供数据复制或持久化。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 4. Ambassadors · 查看原书依据

      use the StatefulSet API object to deploy it, since it will give us unique DNS names for each shard that we can use when configuring the proxy. The StatefulSet for Redis looks like this: apiVersion: apps/v1beta1 kind: StatefulSet metadata: name: sharded-redis spec: serviceName

    参考来源

    - 位置:《Designing Distributed Systems, 2nd Edition》第04章《Chapter 4. Ambassadors》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch04.html) - 结论依据:原文以唯一DNS名解释StatefulSet与headless Service配合的用途。 - 原始内容:use the StatefulSet API object to deploy it, since it will give us unique DNS names for each shard that we can use when configuring the proxy. The StatefulSet for Redis looks like this: apiVersion: apps/v1beta1 kind: StatefulSet metadata: name: sharded-redis spec: serviceName