码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 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
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 当前的排除列表存储在cluster状态中,可以按如下方式检查:
      • 此列表的大小受cluster.max_voting_config_exclusions 设置限制,默认为10
    GET /_cluster/state?filter_path=metadata.cluster_coordination.voting_config_exclusions
    
    • 1
    • 如果某个node因为要永久关闭而被排除在voting configuration之外,则可以在它关闭并从cluster中删除后将其排除
    # Wait for all the nodes with voting configuration exclusions to be removed from
    # the cluster and then remove all the exclusions, allowing any node to return to
    # the voting configuration in the future.
    DELETE /_cluster/voting_config_exclusions
    
    # Immediately remove all the voting configuration exclusions, allowing any node
    # to return to the voting configuration in the future.
    DELETE /_cluster/voting_config_exclusions?wait_for_removal=false
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    大数据视频推荐:
    CSDN
    大数据语音推荐:
    ELK7 stack开发运维
    企业级大数据技术应用
    大数据机器学习案例之推荐系统
    自然语言处理
    大数据基础
    人工智能:深度学习入门到精通

  • 相关阅读:
    SpringMVC:整合SSM
    思维训练1
    JavaScript 进阶问题列表,巩固自己的知识。
    STM32CubeMX教程8 TIM 通用定时器 - 输出比较
    语法练习:makes10
    Docker 安装 mysql5.7
    VHDL实现任意大小矩阵乘法运算
    代码随想录图论 第二天 | 695. 岛屿的最大面积 1020. 飞地的数量
    突破编程_C++_面试(STL 编程 vector )
    Python、设计原则和设计模式 更新中
  • 原文地址:https://blog.csdn.net/m0_47454596/article/details/126018045
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号