2017-07-14 36 views
0

我目前正在配置和調整一些應用程序以在DC/OS上運行。我們選擇安裝HA-ThreeMaster AWS模板。是否有可能在DC/OS中殺掉三個主控 - Mesos?

最近我被要求在開發過程中縮減集羣。雖然刪除從屬節點是微不足道的,但我找不到任何有關如何降低主節點的信息。

我知道他們應該總是有一個奇數,所以我正在考慮刪除兩個非領導ec2實例。這可以在不破壞集羣的情況下完成嗎?

回答

1

這取決於您的設置。 首先檢查你的法定人數大小: 貓的/ etc/mesos主/法定人數

比檢查此 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. 
0

我不認爲這會奏效。主人數爲三人將允許一個主人失敗,其餘兩人仍然可以找到法定人數。如果您只剩下一位主人,則無法達到法定人數。