47.集群节点维护—删除node

删除master-eligible node

  • 如果同时关闭一半或更多master-eligible node,那么cluster通常将变得不可用
  • 如果发生这种情况,可以通过再次启动已删除的node来使cluster重新联机
  • 只要cluster中至少有3个master-eligible node,一般来说最好一次删除一个node,让cluster有足够的时间自动投票和适应故障对新node集的容错度
  • 如果只剩下两个符合 master 资格的node,那么这两个node都不能安全地移除
    • 可以使用以下命令将node添加到voting configuration排除列表中
# Add node to voting configuration exclusions list and wait for the system
# to auto-reconfigure the node out of the voting configuration up to the
# default timeout of 30 seconds
POST /_cluster/voting_config_exclusions?node_names=node_name

# Add node to voting configuration exclusions list and wait for
# auto-reconfiguration up to one minute
POST /_cluster/voting_config_exclusions?node_names=node_name&timeout=1m
  • 当前的排除列表存储在cluster状态中,可以按如下方式检查:
    • 此列表的大小受cluster.max_voting_config_exclusions 设置
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值