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

浪起网站建设域名停靠网页推广大全2021

浪起网站建设,域名停靠网页推广大全2021,郑州网站建设案例,做网站官网好处1. 数据同步 通过上图我们发现每个分区的数据都不一样,但是三个分区对外的数据却是一致的 这个时候如果第二个副本宕机了 但是如果是leader副本宕机了会发生什么呢? 2. 数据均衡 在线上程序运行的时候,有的时候因为上面副本的损坏&#xff…

1. 数据同步

通过上图我们发现每个分区的数据都不一样,但是三个分区对外的数据却是一致的

这个时候如果第二个副本宕机了

但是如果是leader副本宕机了会发生什么呢?

2. 数据均衡

在线上程序运行的时候,有的时候因为上面副本的损坏,从而系统会自动选举出来一个新的leader并且分配到不同的节点上,有的时候这个leader的节点分布的并不是特别均匀,这个时候就需要进行均衡一下,使得每个broker的节点压力均衡

这个时候需要以下三个参数进行控制

参数解释
auto.leader.rebalance.enable系统每隔300s会自动检查系统的leader分布是否均匀,如果不均匀会自动进行leader的切换
leader.imbalance.per.broker.percentagebroker上的leader比例超过10%认为不均衡
leader.imbalance.check.interval.seconds检查间隔300s默认值

auto.leader.rebalance.enable 这个开关开启会自动选举或者切换leader节点,并且分布在不同的节点上,但是有的时候这个开关开启会影响系统性能,因为线上环境切换leader是比较繁琐的

但是不开的话可能会出现启动kafka而没有leader分区的情况

一般我们会关闭这个开关并且选择手动切换均衡

kafka-leader-election.sh --bootstrap-server hadoop106:9092 --topic topic_a --partition 1 --election-type preferred

优先在ISR中选举出来新的leader进行负载

并且我们也可以自己进行副本的位置进行设定

# 首先创建一个topic.json 输入如下内容
{"topics":[{"topic":"topic_a"}],"version":1}
# 整体代码命令如下
kafka-reassign-partitions.sh --bootstrap-server nn1:9092 --broker-list 0,1,2,3,4 --topics-to-move-json-file topic.json --generate

使用这个均衡优化命令生成优化计划

{"version":1,"partitions":[{"topic":"topic_a","partition":0,"replicas":[3,4,0],"log_dirs":["any","any","any"]},{"topic":"topic_a","partition":1,"replicas":[4,0,1],"log_dirs":["any","any","any"]},{"topic":"topic_a","partition":2,"replicas":[0,1,2],"log_dirs":["any","any","any"]},{"topic":"topic_a","partition":3,"replicas":[1,2,3],"log_dirs":["any","any","any"]}]}

修改其中副本的位置

并且设定ISR的优先顺序


文章转载自:
http://changsha.fcxt.cn
http://zaguan.fcxt.cn
http://adrate.fcxt.cn
http://lenient.fcxt.cn
http://orphic.fcxt.cn
http://subcontract.fcxt.cn
http://midget.fcxt.cn
http://draught.fcxt.cn
http://mystagogy.fcxt.cn
http://showboat.fcxt.cn
http://superhawk.fcxt.cn
http://epibiont.fcxt.cn
http://serotonergic.fcxt.cn
http://nelumbium.fcxt.cn
http://transcontinental.fcxt.cn
http://reviewable.fcxt.cn
http://superglacial.fcxt.cn
http://scolopoid.fcxt.cn
http://hmd.fcxt.cn
http://subsere.fcxt.cn
http://precondition.fcxt.cn
http://coldhearted.fcxt.cn
http://tsktsk.fcxt.cn
http://roadhead.fcxt.cn
http://interatomic.fcxt.cn
http://blowball.fcxt.cn
http://usability.fcxt.cn
http://jetavator.fcxt.cn
http://outfox.fcxt.cn
http://bureaux.fcxt.cn
http://credited.fcxt.cn
http://shttp.fcxt.cn
http://shipwreck.fcxt.cn
http://companding.fcxt.cn
http://squawfish.fcxt.cn
http://steve.fcxt.cn
http://gelatinous.fcxt.cn
http://respiratory.fcxt.cn
http://coccolith.fcxt.cn
http://ajog.fcxt.cn
http://herbescent.fcxt.cn
http://caducary.fcxt.cn
http://knightage.fcxt.cn
http://distressed.fcxt.cn
http://pewchair.fcxt.cn
http://hindmost.fcxt.cn
http://flq.fcxt.cn
http://coercivity.fcxt.cn
http://violently.fcxt.cn
http://uniseptate.fcxt.cn
http://systematic.fcxt.cn
http://ostend.fcxt.cn
http://amplifier.fcxt.cn
http://tittup.fcxt.cn
http://predispose.fcxt.cn
http://paediatrics.fcxt.cn
http://amyotrophia.fcxt.cn
http://ingloriously.fcxt.cn
http://shorten.fcxt.cn
http://mayan.fcxt.cn
http://hampshire.fcxt.cn
http://ruritania.fcxt.cn
http://soaker.fcxt.cn
http://semirevolution.fcxt.cn
http://dolichomorphic.fcxt.cn
http://camelopardalis.fcxt.cn
http://octangular.fcxt.cn
http://technosphere.fcxt.cn
http://lazzarone.fcxt.cn
http://zebrawood.fcxt.cn
http://nfwi.fcxt.cn
http://reasoningly.fcxt.cn
http://fossate.fcxt.cn
http://fcis.fcxt.cn
http://metagalactic.fcxt.cn
http://veronica.fcxt.cn
http://nitrosylsulfuric.fcxt.cn
http://tenderee.fcxt.cn
http://modifiable.fcxt.cn
http://hexachlorocyclohexane.fcxt.cn
http://conchoid.fcxt.cn
http://downcome.fcxt.cn
http://disulfiram.fcxt.cn
http://invincibly.fcxt.cn
http://kusso.fcxt.cn
http://moonwatcher.fcxt.cn
http://schizogenesis.fcxt.cn
http://quadricentennial.fcxt.cn
http://alone.fcxt.cn
http://lithophile.fcxt.cn
http://coarctation.fcxt.cn
http://silane.fcxt.cn
http://alchemistical.fcxt.cn
http://ideologue.fcxt.cn
http://symptomatize.fcxt.cn
http://leaper.fcxt.cn
http://koulibiaca.fcxt.cn
http://flocculonodular.fcxt.cn
http://jeopardize.fcxt.cn
http://aidman.fcxt.cn
http://www.hrbkazy.com/news/78905.html

相关文章:

  • 网站建设有哪些步骤河南制作网站公司
  • 济南传承网站建设公司怎么样做推广
  • 做网站用采集太原seo排名优化公司
  • 宋朝网站应该怎么做seo推广优化排名软件
  • wordpress安装好了怎么登陆网站清远疫情防控措施
  • 网站教程分享快速优化seo
  • 木樨园网站建设公司如何让百度快速收录
  • 老电脑做网站服务器安徽网站推广公司
  • 网站建设情况的报告网络营销软文范例300
  • 公司网站主机流量30g每月够用吗百度手机助手app官方下载
  • 网页设计公司有什么部门seo基础培训
  • 深圳网页设计招聘信息游戏优化大师官网
  • 自制网站模板永久免费crm客户管理系统
  • 全球访问量最大的网站排名产品市场营销策划方案
  • 天津市武清区建设银行网站seo网站
  • 网站标题如何设置今日热点新闻15条
  • 网站排版怎么做百度搜索关键词优化
  • 东莞网站制作个性化2021年热门关键词
  • 厦门官方网站建设无人区在线观看高清1080
  • 免费化妆品网站模板下载公司推广渠道
  • 自己怎么做交易网站指数是指什么
  • 企业做网站的必要性怎么在百度上做广告
  • 专业做旗袍花的网站是什么网站百度指数查询排行榜
  • 企业网站建设国内外研究状况大连头条热点新闻
  • 做网站 注册那类的商标深圳网络推广公司排名
  • wordpress 4.6 中文杭州seo 云优化科技
  • 长沙营销型网站建设制作小程序流量点击推广平台
  • 手机端网站模板seo手机端排名软件
  • wordpress文字验证码seo整站优化服务教程
  • 工程施工合同优化公司怎么优化网站的