我目前正在配置和调整一些应用程序以在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/
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.Decreasing the quorum size
更多推荐
发布评论