分布式系统的高可用性与可扩展性
image.png
ES的分布式特性
image.png
Master-eligible nodes 和 Master Node
image.png
Data node 与 Coordinating Node
当集群无法保存数据时,可以增加数据节点,解决问题
image.png
其他节点类型
image.png
节点配置
image.png
分片 (Primary Shard & Replica Shard)
image.png
image.png
分片的设定
image.png
查看分片的健康状况
image.png
image.png
一个node对应一个es instance
一个node可以有多个index
一个index可以有多个shard
一个shard是一个lucene index(这个index是lucene自己的概念、和es的index不是一回事)
在kibana的dev console里,写一个api,mac下按下cmd➕/ 会跳到相应的api
get _cat/nodes?v
GET /_nodes/es7_01,es7_02
GET /_cat/nodes?v
GET /_cat/nodes?v&h=id,ip,port,v,m
GET _cluster/health
GET _cluster/health?level=shards
GET /_cluster/health/kibana_sample_data_ecommerce,kibana_sample_data_flights
GET /_cluster/health/kibana_sample_data_flights?level=shards
#### cluster state
The cluster state API allows access to metadata representing the state of the whole cluster. This includes information such as
GET /_cluster/state
#cluster get settings
GET /_cluster/settings
GET /_cluster/settings?include_defaults=true
GET _cat/shards
GET _cat/shards?h=index,shard,prirep,state,unassigned.reason
相关阅读