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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 不才!不才!呀! 小学时就被老师当作薛宝钗.....(此处偷笑) 不过是真的。 竟然三十多岁了,才读了一遍少儿漫画...
    十八k阅读 106评论 0 0
  • 今天看了一个短视频《平衡》:六个人在悬空的平衡板上,在向外探索过程中开始是互相协作以保持平衡,后来其中一人捞到一个...
    MikaGO阅读 285评论 0 0