Intro to elastic search

Concepts

  • it is nosql but does not have database
  • uses something called index objects to refer as collection (mongodb)
  • scale wise uses multiple indices

Cluster
Database

Types & Indices
types is the key, index is the object

eg. index twitter with two types user and tweet
or multiindex user as index with two types info and tweet

subdivide index into pieces called shards

  • each shard can be hosted on any node in the cluster
  • horizontal volumn split, good for scale and good for parallizelize operations performance

replicas - replications of shards
since failure is expected in network enviornment, failover mechanism to allow one to make copies of shards

  • good for failover mechanism
  • good for scaling volume since it is basically shards

complete replica (all shards are copied)

primary shards - original shards
by default one index 5 primary shards and 1 complete replica

Scaling
limit shards replicas, more index objects

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 不才!不才!呀! 小學(xué)時(shí)就被老師當(dāng)作薛寶釵.....(此處偷笑) 不過(guò)是真的。 竟然三十多歲了,才讀了一遍少兒漫畫(huà)...
    十八k閱讀 142評(píng)論 0 0
  • 今天看了一個(gè)短視頻《平衡》:六個(gè)人在懸空的平衡板上,在向外探索過(guò)程中開(kāi)始是互相協(xié)作以保持平衡,后來(lái)其中一人撈到一個(gè)...
    MikaGO閱讀 338評(píng)論 0 0

友情鏈接更多精彩內(nèi)容