Pulsar 中的 topic-partition-broker 和 segment-topic 信息保存在哪里?
Posted
技术标签:
【中文标题】Pulsar 中的 topic-partition-broker 和 segment-topic 信息保存在哪里?【英文标题】:Where is topic-paritition-broker and segment-topic info saved in Pulsar? 【发布时间】:2021-10-07 08:12:39 【问题描述】:阅读文档:https://pulsar.apache.org/docs/en/concepts-architecture-overview/ 我无法弄清楚:
-
Pulsar 将分配给主题分区的代理存储在哪里?
pulsar 如何知道哪个段属于哪个主题分区?每当一个新的segment最终关闭并持久化在bookie中时,Pulsar如何保存该segment属于哪个主题?
broker 如何确定在读取请求到来时他们必须查询哪个 bookie 来获取某个主题的数据?
这些都存储在zookeeper中了吗?
【问题讨论】:
【参考方案1】:是的,所有这些元数据都存储在 ZooKeeper 中。
主题负载平衡由领导者选举的服务和存储在/loadbalance/bundle-data
中的数据完成。
分类帐/细分信息的主题存储在路径/managed-ledgers
下
【讨论】:
以上是关于Pulsar 中的 topic-partition-broker 和 segment-topic 信息保存在哪里?的主要内容,如果未能解决你的问题,请参考以下文章