節(jié)點分類及改變節(jié)點角色

當一個集群中包含多個節(jié)點,集群自動分配shards副本,當所有primary和replica shards被激活,集群狀態(tài)變?yōu)間reen

添加新節(jié)點的步驟:

    1.創(chuàng)建一個新實例
    2.配置cluster.name
    3.啟動實例,節(jié)點自動發(fā)現(xiàn)并加入指定集群

節(jié)點分類:

    master-eligible node
        node.master
        創(chuàng)建和刪除索引,shard分配,跟蹤節(jié)點狀態(tài)
    date node
        node.data
    ingest node
        node.ingest
    machine learning node
        xpack.ml.enabled
        node.ml
    coordinating node
        node.master: false
        node.data: false
        node.ingest: false
        每一個節(jié)點都是一個隱式協(xié)調(diào)節(jié)點,無法關(guān)閉
        請求處理分為兩個階段,分發(fā)處理,和結(jié)果聚合
        分發(fā)處理:協(xié)調(diào)節(jié)點分發(fā)請求到各個數(shù)據(jù)節(jié)點進行處理
        結(jié)果聚合:數(shù)據(jù)節(jié)點把處理結(jié)果返回給協(xié)調(diào)節(jié)點,并合成一個全局單一結(jié)果集

master-eligible:
創(chuàng)建、刪除索引,探測跟蹤節(jié)點狀態(tài),數(shù)據(jù)分片路由

穩(wěn)定的存儲和網(wǎng)絡(luò)低延時
node.master: true 
node.voting_only: false           #default false
node.data: false 
node.ingest: false 
node.ml: false 
xpack.ml.enabled: true 
cluster.remote.connect: false     #default true

voting_only :進行選舉和集群狀態(tài)更新發(fā)布,不能被選舉為master,不支持oss-distribution

穩(wěn)定的存儲和網(wǎng)絡(luò)低延時
node.master: true 
node.voting_only: true 
node.data: false 
node.ingest: false 
node.ml: false 
xpack.ml.enabled: true 
cluster.remote.connect: false 

data node: CRUD, 查詢, and 聚合. These operations are I/O-, memory-, and CPU- intensive

node.master: false 
node.voting_only: false 
node.data: true 
node.ingest: false 
node.ml: false 
cluster.remote.connect: false

ingest node

node.master: false 
node.voting_only: false 
node.data: false 
node.ingest: true 
node.ml: false 
cluster.remote.connect: false 

coordating node

node.master: false 
node.voting_only: false 
node.data: false 
node.ingest: false 
node.ml: false 
cluster.remote.connect: false 

changing the role of a node

data node 維護如下數(shù)據(jù):
shard data for every shard allocated to that node
index metadata corresponding with every shard allocated to that node
the cluster-wide metadata, such as settings and index templates
master-eligible node 維護如下數(shù)據(jù):
the index metadata for every index in the cluster
the cluster-wide metadata, such as settings and index templates.

node.data ->false

node.master & node.data -> false

data path可以被多個節(jié)點(實例)共享,然而推薦每個節(jié)點使用單獨data path

es 8將會移除改特性
node.max_local_storage_nodes
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容