elk 概念整理 集群状态 - yellow - 面试的问题 -- 官方配置文档 水平扩容以及数据保障

1. primary shard   -- raid0

2.replicas shard -- raid1

3.index -- 图书馆的借书指引

4.MySQL vs elasticsearch

########################################################################

1.

curl GET http://10.0.0.92:9200/_cluster/health?level=indices

"cluster_name":"ELK-Cluster","status":"yellow"
yellow表示所有主分片可用,但不是所有副本分片都可用,最常见的情景是单节点时,由于es默认是有1个副本,主分片和副本不能在同一个节点上,所以副本就是未分配unassigned

 -------------------------------------------------------------------------------------------------------------------------

2.运维需要深入理解的elasticsearch的问题

1.2 读写文档的过程 -- https://mp.weixin.qq.com/s?__biz=MzI2NDY1MTA3OQ==&mid=2247484320&idx=1&sn=c67538b457a2f72f320c68576afe30f0&chksm=eaa82b88dddfa29e4696842fc5e145212afc8a99813068bc8a0f5a3a0b321c3669dd50c6b0c6&mpshare=1&scene=1&srcid=0722ZA9l6fujCUJVfsjqhNLr&sharer_sharetime=1563979487951&sharer_shareid=9740bba782c9689ef96565edaf6756f2#rd

2.修改重要的配置

https://www.elastic.co/guide/cn/elasticsearch/guide/current/important-configuration-changes.html#unicast

3.分片的配置和优化

https://www.elastic.co/guide/cn/elasticsearch/guide/current/important-configuration-changes.html

数据可以保存到多个不同的目录, 如果将每个目录分别挂载不同的硬盘,这可是一个简单且高效实现一个软磁盘阵列( RAID 0 )的办法。Elasticsearch 会自动把条带化

 

posted @ 2019-07-03 14:55  littlevigra  阅读(910)  评论(4编辑  收藏  举报