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.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 7,956评论 0 0
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 14,601评论 5 6
  • 超级个体的【每日一问】:7/30 有哪3个工具或者方法是极大程度提高你的工作效率的利器? 1、管理注意力。 我们的...
    小霞儿阅读 1,675评论 0 0
  • 记得有一次到外地去办案,当事人为了尽地主之谊,要请我吃饭。当事人说他是信佛的人,而我尽管未皈依,也自视与佛有缘。于...
    简木易阅读 3,818评论 1 2
  • 今天特别开心,同事给我送来一大瓶美味又解暑的自制浆水,感恩同事!感恩感谢!老公的朋友送我们一大包油炸的馓子,特别酥...
    流年自在乐阅读 1,819评论 0 0

友情链接更多精彩内容