kafka在哪里存储replica信息和isr的信息呢?zk的路径是什么

kafka在

 

/brokers/topics/{topic}中存储partition的replica信息

具体格式如下:

{"version":1,"partitions":{"45":[80,36],"98":[7,34],"113":[127,14],"34":[25,117],"67":[71,78],"120":[126,132],"93":[92,2],"142":[148,4],"147":[3,9],"12":[44,74],"66":[77,2],"89":[34,33],"51":[63,41],"124":[130,136],"84":[124,28],"8":[43,40],"73":[9,85],"78":[87,14],"19":[54,37],"100":[9,1],"23":[102,39],"62":[73,33],"135":[141,147],"128":[134,140],"4":[70,107],"121":[127,133],"88":[24,32],"77":[96,21],"40":[117,125],"110":[89,20],"15":[46,29],"11":[37,45],"104":[5,13],"90":[99,34],"9":[39,44],"141":[147,3],"139":[145,1],"132":[138,144],"44":[47,68],"33":[25,126],"117":[84,99],"22":[52,36],"56":[58,82],"55":[83,77],"26":[37,25],"134":[140,146],"50":[56,88],"123":[129,135],"37":[105,51],"68":[79,4],"61":[72,32],"107":[17,8],"13":[40,43],"46":[102,66],"99":[35,8],"24":[46,55],"94":[3,30],"83":[19,27],"35":[60,110],"16":[41,39],"79":[23,15],"5":[69,108],"103":[4,12],"112":[22,13],"72":[19,67],"10":[38,45],"59":[70,30],"144":[150,6],"87":[125,23],"48":[58,64],"21":[84,100],"116":[26,91],"76":[88,12],"138":[144,150],"54":[50,56],"43":[68,39],"148":[4,10],"127":[133,139],"65":[76,91],"71":[83,7],"57":[125,87],"108":[9,18],"32":[96,38],"80":[24,84],"106":[7,16],"137":[143,149],"82":[130,26],"49":[100,104],"6":[42,73],"126":[132,138],"36":[105,63],"1":[70,72],"39":[64,49],"140":[146,2],"17":[48,38],"25":[55,192],"60":[31,13],"14":[29,42],"133":[139,145],"47":[81,65],"122":[128,134],"111":[12,97],"102":[3,11],"31":[56,53],"96":[5,32],"69":[5,80],"95":[31,4],"58":[78,69],"145":[1,7],"64":[35,75],"53":[79,85],"42":[46,67],"75":[87,11],"115":[117,29],"109":[19,10],"0":[69,73],"149":[5,11],"20":[50,36],"27":[49,96],"70":[82,6],"2":[71,72],"86":[22,30],"38":[54,41],"81":[97,17],"118":[19,28],"92":[1,28],"125":[131,137],"18":[71,49],"101":[10,2],"30":[55,52],"7":[107,42],"143":[149,5],"97":[33,6],"130":[136,142],"114":[15,24],"129":[135,141],"29":[51,60],"41":[47,66],"105":[6,15],"63":[76,74],"3":[127,40],"74":[86,10],"91":[35,91],"52":[80,86],"85":[112,16],"131":[137,143],"28":[50,54],"119":[20,14],"136":[142,148],"146":[2,8]}}

 

 

ISR信息存储在

/broker/topics/{topic}/partitions/{partition}/state中存储,

 

具体格式如下:

 

{"controller_epoch":18,"leader":-1,"version":1,"leader_epoch":86,"isr":[]}

 

你可能感兴趣的:(kafka)