1. 全副角色

  • master
  • data (包含:data_content, data_hot, data_warm, data_cold, data_frozen)
  • ingest
  • ml
  • remote_cluster_client
  • transform
  • 仅协调角色

2. 各个角色简介

2.1. master eligible node

有资格被选为master来治理cluster

专用的master节点

专一于治理集群
健康状况十分重要

2.2. data node

增删改查、搜寻和聚合

CRUD, search, and aggregations

2.3. ingest node

ingest节点可能对文档利用ingest pipeline,以便在index之前转换和润色文档。在ingest负载较重的状况下,单设专用的ingest节点(不设置master/data)十分有用;

堆栈监控和ingest pipeline须要ingest的role;

2.4. remote_cluster_client node

  1. remote_cluster_client角色使节点有资格充当近程客户端;
  2. 跨集群搜寻(ccs)和跨集群复制(ccr),须要remote_cluster_client的role;

    • ccs= 跨集群搜寻:cross-cluster search
    • ccr= 跨集群复制:cross-cluster replication

2.5. ml

机器学习须要ml角色
node.roles: [ ml, remote_cluster_client]

remote_cluster_client角色为可选角色,但强烈推荐应用。否则,在机器学习作业或数据提要中应用跨集群搜寻将失败。

2.6. transform

node.roles: [ transform, remote_cluster_client ]
Fleet、Elastic Security应用程序和转换都须要transform角色

remote_cluster_client为可选角色,但强烈推荐应用。否则,在转换中应用跨集群搜寻将失败。

2.7 仅协调节点:Coordinating only node

node.roles: [ ]

  • 路由:smart load balancers
  • 收集整个集群的状态,而后将申请间接路由到适合的节点
  • 大型集群或者可能须要

    They join the cluster and receive the full cluster state, like every other node, and they use the cluster state to route requests directly to the appropriate place(s).