How To Configure a Production-Ready Mesosphere Cluster on Ubuntu 14.04(2)

在Master服務器上配置Mesos

下面,我們將開始在三臺master服務器上配置Mesos。在每臺master服務器上完成下列步驟。

編輯Quorum以體現你的集群容量

首先,我們有調整quorum必要性去做決策。這將決定集群中工作態下必要主機的數量。

The quorum should be set so that over 50 percent of the master members must be present to make decisions. However, we also want to build in some fault tolerance so that if all of our masters are not present, the cluster can still function.

We have three masters, so the only setting that satisfies both of these requirements is a quorum of two. Since the initial configuration assumes a single server setup, the quorum is currently set to one.

Open the quorum configuration file:

sudo nano /etc/mesos-master/quorum

Change the value to "2":

2

Save and close the file. Repeat this on each of your master servers.

Configure the Hostname and IP Address

Next, we'll specify the hostname and IP address for each of our master servers. We will be using the IP address for the hostname so that our instances will not have trouble resolving correctly.

For our master servers, the IP address needs to be placed in these files:

/etc/mesos-master/ip

/etc/mesos-master/hostname

First, add each master node's individual IP address in the/etc/mesos-master/ipfile. Remember to change this for each server to match the appropriate value:

echo 192.168.2.1| sudo tee /etc/mesos-master/ip

Now, we can copy this value to the hostname file:

sudo cp /etc/mesos-master/ip /etc/mesos-master/hostname

Do this on each of your master servers.

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc閱讀 2,930評論 0 0
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的閱讀 13,550評論 5 6
  • 超級個體的【每日一問】:7/30 有哪3個工具或者方法是極大程度提高你的工作效率的利器? 1、管理注意力。 我們的...
    小霞兒閱讀 240評論 0 0
  • 記得有一次到外地去辦案,當事人為了盡地主之誼,要請我吃飯。當事人說他是信佛的人,而我盡管未皈依,也自視與佛有緣。于...
    簡木易閱讀 637評論 1 2
  • 今天特別開心,同事給我送來一大瓶美味又解暑的自制漿水,感恩同事!感恩感謝!老公的朋友送我們一大包油炸的馓子,特別酥...
    流年自在樂閱讀 256評論 0 0