国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

java - kafka中partition設(shè)計(jì)的優(yōu)點(diǎn)是什麼?
滿天的星座
滿天的星座 2017-06-23 09:13:28
0
1
1278

提高並發(fā)寫入嗎?磁碟io同一時(shí)刻只能寫入一個(gè)檔案吧?
提高並發(fā)讀取嗎?磁碟io同一時(shí)刻只能讀取一個(gè)檔案吧?
提高單次寫入速度嗎?貌似跟partiton沒(méi)啥關(guān)係吧?
提高單次讀取速度嗎?多segment不就解決了?

滿天的星座
滿天的星座

全部回覆(1)
ringa_lee

原答案:難道不是topic的擴(kuò)充能力嗎?不然單topic的容量只能限制在實(shí)體機(jī)上了
更新後的答案:
The partitions in the log serve several purposes. First, they allow the log to scale beyond a size that will fit on a single server. Each inpual server. Eachitionpual partition must fit on the servers that host it, but a topic may have many partitions so it can handle an arbitrary amount of data. Second they act as the unit of parallelism—more on that in a bit。 。
partitions 主要有兩個(gè)目的,1 增強(qiáng)擴(kuò)展能力,讓其可以處理任意多的資料 2 作為並行單元,提高並行能力(主要鑑於此點(diǎn)考慮)。
第一次回答我只記得第一點(diǎn)了~~sorry

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板