在DC / OS中可以杀死三个中的两个主人

编程入门 行业动态 更新时间:2024-10-27 16:38:22
在DC / OS中可以杀死三个中的两个主人--Mesos?(Is it possible to kill two masters out of three in DC/OS - Mesos?)

我目前正在配置和调整一些应用程序以在DC / OS上运行。 我们选择安装HA-ThreeMaster AWS模板。

最近我被要求在开发过程中缩减集群。 虽然删除从属节点很简单,但我找不到有关如何关闭主节点的任何信息。

我知道他们应该总是有一个奇数,所以我想删除两个非领导者的ec2实例。 这可以在不破坏群集的情况下完成吗?

I am currently configuring and adapting some apps to run on the DC/OS. We chose to install the HA-ThreeMaster AWS template.

Recently I was asked to downscale the cluster during development. While removing slave nodes is trivial, I couldn't find any information on how to bring down Master nodes.

I know that they should always have an odd number so I was thinking to remove the two non-leader ec2 instances. Can this be done without destroying the cluster?

最满意答案

这取决于您的设置。 首先检查您的仲裁大小:cat / etc / mesos-master / quorum

请查看此http://mesos.apache.org/documentation/latest/operational-guide/

减少法定人数

The following steps indicate how to decrement the quorum size, using 5 -> 3 masters as an example (quorum size 3 -> 2): Initially, 5 masters are running with --quorum=3 Remove 2 masters from the cluster, ensure they will not be restarted (see NOTE section above). Now 3 masters are running with --quorum=3 Restart the 3 masters with --quorum=2 To decrease the quorum by N, repeat this process to decrement the quorum size N times.

It depends on your setup. First check your quorum size: cat /etc/mesos-master/quorum

Than check this http://mesos.apache.org/documentation/latest/operational-guide/

Decreasing the quorum size

The following steps indicate how to decrement the quorum size, using 5 -> 3 masters as an example (quorum size 3 -> 2): Initially, 5 masters are running with --quorum=3 Remove 2 masters from the cluster, ensure they will not be restarted (see NOTE section above). Now 3 masters are running with --quorum=3 Restart the 3 masters with --quorum=2 To decrease the quorum by N, repeat this process to decrement the quorum size N times.

更多推荐

本文发布于:2023-07-30 00:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1320798.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:主人   两个   DC   OS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!