分布式系统的高可用性与可扩展性

ES的分布式特性

Master-eligible nodes 和 Master Node

Data node 与 Coordinating Node
当集群无法保存数据时,可以增加数据节点,解决问题

其他节点类型

节点配置

分片 (Primary Shard & Replica Shard)


分片的设定

查看分片的健康状况


一个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
相关阅读
网友评论