一.Mesos/marathon
Mesos容器编排工具,有master和slave节点。
二级调度。
marathon框架。
二.使用容器搭建mesos/marathon
将Spring boot项目docker化之后,准备使用Mesos来编排管理。
可惜革命尚未成功,先行记录如何部署的环境。
(marathon部署spring boot应用(docker镜像)总是重新部署,报错信息如下,待解决。已测试镜像使用docker可以启动)
I0821 09:09:59.345898 285 exec.cpp:162] Version: 1.6.2
I0821 09:09:59.354513 293 exec.cpp:236] Executor registered on agent 661c1f88-71ce-4c84-a5cc-e615bc02cf0d-S0
I0821 09:09:59.355615 291 executor.cpp:123] Registered docker executor on 192.168.0.241
I0821 09:09:59.356647 289 executor.cpp:179] Starting task messages-service.instance-7009f2a3-c3f3-11e9-99fa-02427fb14d49._app.1
W0821 09:11:00.587472 288 executor.cpp:650] The container process (pid: 16779) has exited, but Docker daemon failed to catch it.
I0821 09:11:00.588026 288 executor.cpp:729] Failed to get exit status of container
W0821 09:11:00.588026 285 logging.cpp:95] RAW: Received signal SIGTERM from process 1 of user 0; exiting
下面是部署Mesos和marathon的流程。
1.环境配置及安装的相应组件:
1台 ubuntu16.04 (8GB+40GB)主机 ,IP192.168.0.241, 安装Zookeeper+mesos(master+slave)+harbor组件
提示:安装harbo