【问题标题】:Is it possible to kill two masters out of three in DC/OS - Mesos?是否有可能在 DC/OS - Mesos 中杀死三个主人中的两个主人?
【发布时间】:2017-07-14 14:43:22
【问题描述】:
我目前正在配置和调整一些应用程序以在 DC/OS 上运行。我们选择安装 HA-ThreeMaster AWS 模板。
最近有人要求我在开发过程中缩小集群规模。虽然删除从节点很简单,但我找不到任何有关如何关闭主节点的信息。
我知道他们应该总是有一个奇数,所以我想删除两个非领导 ec2 实例。这可以在不破坏集群的情况下完成吗?
【问题讨论】:
标签:
amazon-web-services
amazon-ec2
mesos
mesosphere
dcos
【解决方案1】:
这取决于您的设置。
首先检查您的法定人数:
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.
【解决方案2】:
我认为这行不通。三个 master 计数将允许一个 master 失败,而其余两个仍然可以找到一个 quorum。如果您只剩下一个主人,则无法达到法定人数。