chinue 2015-04-08
下一代云计算平台Apache Mesos定制自己的PaaS-1(Apache Mesos安装部署)
下一代云计算平台Apache Mesos定制自己的PaaS-2(使用marathon发布管理应用)
下一代云计算平台Apache Mesos定制自己的PaaS-3(docker应用发布)
下一代云计算平台Apache Mesos定制自己的PaaS-4(使用haproxy-marathon-proxy实现服务发现和负载均衡)
下一代云计算平台Apache Mesos定制自己的PaaS-5(使用bamboo实现服务发现和负载均衡)
Apache Mesos据说是云计算的未来,利用Mesos可轻易实现一个PaaS云平台。
请参考 http://mesos.apache.org/
和http://mesosphere.com/
查看详细
systemctl stop firewalld && systemctl disable firewalld
sudo rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm
yum -y install mesos marathon yum -y install mesosphere-zookeeper
touch /var/lib/zookeeper/myid echo 1 > /var/lib/zookeeper/myid
touch /var/lib/zookeeper/myid echo 2 > /var/lib/zookeeper/myid
touch /var/lib/zookeeper/myid echo 3 > /var/lib/zookeeper/myid
vi /etc/zookeeper/conf/zoo.cfg
添加
server.1=192.168.1.110:2888:3888 server.2=192.168.1.111:2888:3888 server.3=192.168.1.112:2888:3888
master1,master2,master3 vi /etc/mesos/zk
增加内容:zk://192.168.1.110:2181,192.168.1.111:2181,192.168.1.112:2181/mesos
master1,master2,master3 vi /etc/mesos-master/quorum
增加内容:2
echo 192.168.1.110 | sudo tee /etc/mesos-master/hostname mkdir -p /etc/marathon/conf/ && touch hostname echo 192.168.1.110 | sudo tee /etc/marathon/conf/hostname
echo 192.168.1.111 | sudo tee /etc/mesos-master/hostname mkdir -p /etc/marathon/conf/ && touch hostname echo 192.168.1.111 | sudo tee /etc/marathon/conf/hostname
echo 192.168.1.112 | sudo tee /etc/mesos-master/hostname mkdir -p /etc/marathon/conf/ && touch hostname echo 192.168.1.112 | sudo tee /etc/marathon/conf/hostname
systemctl start zookeeper && systemctl start mesos-master && systemctl start marathon systemctl disable mesos-slave
systemctl stop firewalld && systemctl disable firewalld
sudo rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm
yum -y install mesos
vi /etc/mesos/zk
增加
zk://192.168.1.110:2181,192.168.1.111:2181,192.168.1.112:2181/mesos
cd /etc/mesos-slave/ touch hostname echo 192.168.1.113 | sudo tee /etc/mesos-slave/hostname
systemctl start mesos-slave && systemctl enable mesos-slave systemctl disable mesos-master