Bluemix平台打造DC/OS云计算平台(二)


上篇文章(http://blog.csdn.net/rapheler/article/details/52528609)介绍了DC/OS软件的基本组件,概念,相信大家对DC/OS已经有了一个大概的理解了,今天实战安装一下DC/OS,来看看大名鼎鼎的DC/OS的容貌。


官方推荐的安装需求是一个节点2核CPU,16GB RAM,60GB HDD。

对于Bootstrap节点要求:

  • Python, pip must be installed for DC/OS CLI.

  • A High-availability (HA) TCP/Layer 3 load balancer, such as HAProxy, to balance the following TCP ports to all master nodes: 80, 443, 8080, 8181, 2181, 5050. (If applicable)

  • An unencrypted SSH key that can be used to authenticate with the cluster nodes over SSH. Encrypted SSH keys are not supported.


以下是对Master节点的硬件要求:


Minimum Recommended
Nodes: 1
OS: RHEL/CentOS 7.2
Processor: 4 cores
Memory: 32 GB RAM
Hard disk space: 120 GB
Nodes: 3
OS: RHEL/CentOS 7.2
Processor: 4 cores
Memory: 32 GB RAM
Hard disk space: 120 GB

There are many mixed workloads on the masters, for example Mesos replicated log and ZooKeeper. Some of these require fsync()ing every so often, and this can generate a lot of very expensive random I/O. We recommend the following:

  • Solid-state drive (SSD)
  • RAID controllers with a BBU
  • RAID controller cache configured in writeback mode

Agent nodes

Here are the agent node hardware requirements.

Minimum Recommended
Nodes: 1
OS: RHEL/CentOS 7.2
Processor: 2 cores
Memory: 16 GB RAM
Hard disk space: 60 GB
Nodes: 6 or more
OS: RHEL/CentOS 7.2
Processor: 2 cores
Memory: 16 GB RAM
Hard disk space: 60 GB
The agent nodes must also have:
  • /var directory with 10 GB or more of free space. This directory is used by the sandbox for both Docker and Mesos Containerizer.
  • Network Access to a public Docker repository or to an internal Docker registry.

根据官方文档介绍,至少需要三个节点来运行一整套DC/OS系统,因为我只能从Bluemix 英国区申请到2台高性能的虚拟机,所以就用2台机器来安装,由于机器有限,Bootstrap就跟Master用一台了:


Nmae IP OS Role Mem CPU
ukcent1 192.168.0.22 CentOS7.2 DC/OS Master 4GB Intel Xeon E312xx
ukcent2 192.168.0.23 CentOS7.2 DC/OS Slave 4GB Intel Xeon E312xx
在安装之前先要做一些系统环境准备:

1.升级系统到最新版本

yum -y update

2.关闭防火墙

systemctl stop firewalld && systemctl mask firewalld

在Github上已经有一个open的issue https://github.com/docker/docker/issues/16137

Docker与firewalld 一起工作的效果会很差https://docs.docker.com/v1.6/installation/centos/#firewalld

3.开启SSHD,ICMP,NTP服务


软件环境准备:

1.Docker 1.9.* - 1.11.* 

!!!Docker 1.12目前暂不支持

2.不要使用DeviceMapper localhost存储方式, 推荐使用DeviceMapper 附加裸设备LVM的方式,或者使用OverlayFS

可以这篇文章来更改DeviceMapper为OverlayFS:http://blog.csdn.net/rapheler/article/details/52094095

3.用户root用户运行Docker服务

4.普通用户开启sudo 免密码认证

visudo %wheel ALL=(ALL) NOPASSWD: ALL

5.在所有节点

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值