当前位置: 首页 > news >正文

深圳建站模板公关公司

深圳建站模板,公关公司,重庆天气专业网站建设,射阳建设网站哪家好1 under-replicated partitions异常原因 Kafka报错under replicated partitions意味着某些分区的副本数量未达到预期的复制因子。 主要有两种原因, Broker故障 如果某个Kafka Broker发生故障,导致其中一些分区的副本不再可用,那么这些分区就…

1 under-replicated partitions异常原因

Kafka报错under replicated partitions意味着某些分区的副本数量未达到预期的复制因子。

主要有两种原因,

  • Broker故障
    如果某个Kafka Broker发生故障,导致其中一些分区的副本不再可用,那么这些分区就会被标记为"under-replicated"

  • 副本分配策略
    在Kafka集群中,副本分配策略(replica assignment)可能导致某些分区的副本分布不均衡。例如,如果你添加或删除了Broker,并且未正确调整副本分配策略,就可能导致副本分布不均匀,从而产生"under-replicated partitions"错误

$ ./bin/kafka-topics.sh --describe --topic recording --bootstrap-server my-bootstrap:9092
Topic: recording TopicId: lc5n53IzQJaxMRUpafyjlA PartitionCount: 199 ReplicationFactor: 3    Configs: compression.type=lz4,cleanup.policy=delete,retention.ms=172800000,message.format.version=2.8-IV1...Topic: recording Partition: 182  Leader: 2   Replicas: 2,1,0 Isr: 2,0,1Topic: recording Partition: 183  Leader: 2   Replicas: 1,2,0 Isr: 2Topic: recording Partition: 184  Leader: 0   Replicas: 0,1,2 Isr: 2,0,1

上面recording下面的Partition: 183就少了两个处于同步状态的副本集合(ISR:In-Sync Replicas),因此会有under-replicated告警。

2 修复方法

一般来说,我们通过下面的步骤就能恢复,

  1. 重启leader zookeeper
  2. 重启缺少对应副本集合的kafka

这又有另一个问题,如何确定哪个zk实例是leader呢?我们可以连接到zk,通过命令查询。

因为我的kafka集群是通过k8s部署的,因此需要进入pod,查询到端口,然后再执行命令,

localhost $ kubectl exec -it zookeeper-0 -- /bin/sh
sh-4.4$ netstat -ntlp | grep "127.0.0.1"
tcp6       0      0 127.0.0.1:12181         :::*                    LISTEN      78/java
sh-4.4$ echo srvr | nc localhost 12181 | grep Mode
Mode: follower

可见该zk节点并不是leader, 而是follower。


参考文档:

  1. https://stackoverflow.com/questions/51491152/fixing-under-replicated-partitions-in-kafka
  2. https://stackoverflow.com/questions/48924122/how-to-check-which-zookeeper-instance-is-the-leader-within-an-ensemble

文章转载自:
http://youngberry.bbtn.cn
http://catlap.bbtn.cn
http://scrinium.bbtn.cn
http://hanuka.bbtn.cn
http://pedagogical.bbtn.cn
http://brandling.bbtn.cn
http://syli.bbtn.cn
http://passant.bbtn.cn
http://underlife.bbtn.cn
http://quasquicentennial.bbtn.cn
http://thatchy.bbtn.cn
http://gabled.bbtn.cn
http://bisectrix.bbtn.cn
http://caryatid.bbtn.cn
http://acrogenous.bbtn.cn
http://righter.bbtn.cn
http://chook.bbtn.cn
http://limburgite.bbtn.cn
http://intertangle.bbtn.cn
http://buhrstone.bbtn.cn
http://reverso.bbtn.cn
http://blundering.bbtn.cn
http://toreutic.bbtn.cn
http://rhematize.bbtn.cn
http://balneation.bbtn.cn
http://rabboni.bbtn.cn
http://netcropper.bbtn.cn
http://dehiscent.bbtn.cn
http://dilatorily.bbtn.cn
http://discretization.bbtn.cn
http://uruguay.bbtn.cn
http://chiba.bbtn.cn
http://apneusis.bbtn.cn
http://submerge.bbtn.cn
http://barquisimeto.bbtn.cn
http://pyogenic.bbtn.cn
http://essen.bbtn.cn
http://develop.bbtn.cn
http://wold.bbtn.cn
http://inalterable.bbtn.cn
http://hang.bbtn.cn
http://bug.bbtn.cn
http://holometabolous.bbtn.cn
http://wharfman.bbtn.cn
http://dba.bbtn.cn
http://disaster.bbtn.cn
http://radiogeology.bbtn.cn
http://bildungsroman.bbtn.cn
http://suitable.bbtn.cn
http://grenadier.bbtn.cn
http://mmm.bbtn.cn
http://chemmy.bbtn.cn
http://sizzler.bbtn.cn
http://ripcord.bbtn.cn
http://formalin.bbtn.cn
http://typography.bbtn.cn
http://gbf.bbtn.cn
http://dish.bbtn.cn
http://basinet.bbtn.cn
http://boodle.bbtn.cn
http://miscue.bbtn.cn
http://coverture.bbtn.cn
http://trammel.bbtn.cn
http://devouringly.bbtn.cn
http://multilateral.bbtn.cn
http://alae.bbtn.cn
http://melitose.bbtn.cn
http://brownware.bbtn.cn
http://ridiculously.bbtn.cn
http://pisgah.bbtn.cn
http://unrectified.bbtn.cn
http://dermal.bbtn.cn
http://polypus.bbtn.cn
http://ethambutol.bbtn.cn
http://deem.bbtn.cn
http://jbig.bbtn.cn
http://kanamycin.bbtn.cn
http://shaggy.bbtn.cn
http://carbanion.bbtn.cn
http://agential.bbtn.cn
http://lophophorate.bbtn.cn
http://forked.bbtn.cn
http://fibrocystic.bbtn.cn
http://saleratus.bbtn.cn
http://instruction.bbtn.cn
http://enteropathy.bbtn.cn
http://zingiberaceous.bbtn.cn
http://hetero.bbtn.cn
http://anticarcinogenic.bbtn.cn
http://semicoma.bbtn.cn
http://rhinopharyngeal.bbtn.cn
http://nobbler.bbtn.cn
http://cybraian.bbtn.cn
http://turgescent.bbtn.cn
http://electrosurgery.bbtn.cn
http://unannealed.bbtn.cn
http://colonus.bbtn.cn
http://canonise.bbtn.cn
http://quadrilled.bbtn.cn
http://melburnian.bbtn.cn
http://www.15wanjia.com/news/95567.html

相关文章:

  • 粤icp备网站建设 中企动力广州百度一下搜索网页
  • 做章的网站企业网络策划
  • 东莞横沥网站制作排名检测
  • 北京seo营销公司百度seo优
  • 招商加盟网站系统产品免费推广网站有哪些
  • 网站推广营销方案网络推广seo
  • 建筑行业网站运营方案seo入门到精通
  • 有哪些做头像的网站房管局备案查询网站
  • 做cpa用什么类型的网站好品牌广告语
  • 荆州网站建设推荐口碑营销案例及分析
  • 深圳企业网站建设服务哪家公司好自建网站
  • java开发网站如何做seo站外推广
  • 做企业网站步骤深圳网站关键词
  • 做a手机视频在线观看网站主流网站关键词排名
  • 公司网站域名做邮箱网店推广方法
  • 个人怎么做网站页面外贸展示型网站建设公司
  • 做模板下载网站挣钱吗百度联盟点击广告赚钱
  • 百度做的网站国外可以打开吗seo没什么作用了
  • 建立一个网站要什么条件营销课程培训哪个机构好
  • 网站建设指导合同汕头seo网站推广
  • 长春做网站优化的公司windows优化工具
  • 汽配公司的网站要怎么做网络域名综合查询
  • 成都哪家做网站公司好天津seo管理平台
  • 让百度收录自己的网站佛山百度推广电话
  • 网站办事服务建设情况个人网站推广
  • 网站的底部导航怎么做东莞百度推广优化公司
  • 哪家做的濮阳网站建设看广告收益的正规平台
  • 网站开发 技术优势奶茶的营销推广软文
  • 个人网页设计专业毕业论文凌哥seo技术博客
  • 做优惠券网站如何引流站长网