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

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

相關閱讀更多精彩內容

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

友情鏈接更多精彩內容