ichar

通过groupname 获取groupid

 

 

通过命令查
./bin/kafka-consumer-groups.sh --bootstrap-server ip:9092 --describe --group consumer2

 

 

保存到 kafka配置的~/data文件夹(现有集群为3/分析得出就是0,3,6……),做kafka集群后offsets会分布在每个集群上,可以认为是一种特俗的topic
通过hash并%50得出对应的__consumer_offsets_num
如果某一台机器down了/并且很不幸/那consumer 获取不到相关的offset,可以通过设置offsets.topic.replication.factor=3来保存offer的topic也有副本./bin/kafka-topics.sh -describe --bootstrap-server ip:9092 --topic __consumer_offsets

 

 

 参考https://www.orchome.com/805 里面评论还挺有意思/

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2021-11-18
  • 2021-10-26
  • 2022-12-23
  • 2022-02-17
  • 2021-06-12
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2021-06-07
  • 2021-09-24
  • 2021-07-02
  • 2023-03-19
相关资源
相似解决方案