mesos、marathon、chronos使用

zookeeper安装配置启动

https://zookeeper.apache.org/doc/r3.1.2/zookeeperStarted.html
到官网下载zookeeper tar包后,解压,修改配置文件conf/zoo.cfg

tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
maxClientCnxns=60

启动zookeeper

bin/zkServer.sh start
mesos安装配置启动
环境192.168.122.131master.mesoscentos7.3
192.168.122.132slave1.mesoscentos7.3

cenots7系统配置mesos yum源

rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm

master节点:

yum -y install mesos chronos marathon

mesos-master config目录:/etc/mesos、/etc/mesos-master
mesos-slave config目录:/etc/mesos、/etc/mesos-slave
marathon config目录:/etc/marathon/conf
chronos config目录:/etc/chronos/conf

[root@master ~]# ls /etc/mesos
zk
[root@master ~]# cat /etc/mesos/zk 
zk://master.mesos:2181/mesos
[root@master ~]# ls /etc/mesos-master/
quorum    work_dir  
[root@master ~]# cat /etc/mesos-master/quorum
1
[root@master ~]# cat /etc/mesos-master/work_dir
/var/lib/mesos
[root@master ~]# ls /etc/marathon/conf/
hostname       logging_level  master         zk             
[root@master ~]# cat /etc/marathon/conf/hostname 
192.168.122.131
[root@master ~]# cat /etc/marathon/conf/zk
zk://master.mesos:2181/marathon
[root@master ~]# cat /etc/marathon/conf/master 
zk://master.mesos:2181/mesos
[root@master ~]# cat /etc/marathon/conf/logging_level 
info
[root@master ~]# ls /etc/chronos/conf/
hostname  http_port  master  zk_hosts
[root@master ~]# cat /etc/chronos/conf/hostname 
192.168.122.131
[root@master ~]# cat /etc/chronos/conf/http_port 
4400
[root@master ~]# cat /etc/chronos/conf/master 
zk://master.mesos:2181/mesos
[root@master ~]# cat /etc/chronos/conf/zk_hosts 
master.mesos:2181
[root@master ~]# 
systemctl disable mesos-slave
systemctl enable mesos-master
systemctl enable marathon
systemctl enable chronos
systemctl start mesos-master
systemctl start marathon
systemctl start chronos

slave节点:

yum -y install mesos

mesos-slave config目录:/etc/mesos、/etc/mesos-slave

[root@slave1 ~]# ls /etc/mesos
zk
[root@slave1 ~]# cat /etc/mesos/zk 
zk://master.mesos:2181/mesos
[root@slave1 ~]# 
[root@slave1 ~]# ls /etc/mesos-slave/
containerizers   executor_registration_timeout  image_providers                isolation          work_dir
[root@slave1 ~]# cat /etc/mesos-slave/containerizers 
docker,mesos
[root@slave1 ~]# cat /etc/mesos-slave/executor_registration_timeout 
5mins
[root@slave1 ~]# cat /etc/mesos-slave/image_providers 
appc,docker
[root@slave1 ~]# cat /etc/mesos-slave/isolation 
filesystem/linux,docker/runtime
[root@slave1 ~]# cat /etc/mesos-slave/work_dir 
/var/lib/mesos-slave
systemctl disable mesos-master
systemctl enable mesos-slave
systemctl start mesos-slave

下面是我运行mesos实战书中两个例子后的截图

mesos

mesos-homepage

mesos-frameworks

mesos-frameworks

mesos-agents

mesos-agents

marathon

marathon

chronos

chronos

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值