问题标签 [mesosphere]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1773 浏览

ansible - 从 web ui 看不到 Mesos 从站

我正在构建一个 Ansible 配方来部署 mesos/marathon 集群(https://github.com/gridpocket/ansible-mesos-cluster)。

一旦一切都设置好了,mesos 和 marathon ui 就启动了,但我有两个问题:
- 从 mesos ui 我看不到任何已注册
的奴隶 - 相同的 ui 还指示“目前没有主人领先......”

设置如下:
- 3 个 mesos master (192.168.1.191, 192, 193):每个运行 mesos-master, zookeeper, marathon
- 3 个 mesos slave (192.168.1.194, 195, 196):每个运行 mesos-slave,码头工人

从站配置

在每个从站中:

大师配置

在每个主控上:

我在配置中遗漏了什么吗?

编辑

我重建了整个集群并更正了 zookeeper 配置(dataDir)。现在,
- mesos 主界面正在工作并指示主节点
- marathon ui 正在工作

在从机上,mesos-slave 进程在我启动后立即停止。

mesos-slave 日志对这个问题不是很详细:

编辑 2

当我手动启动一个slave时,指示zk字符串,slave正确启动:

但是“sudo service mesos-slave start”不能启动slave。

编辑 3

我在 ansible playbook 中将状态从“最新”更改为“当前”:

现在很好,从属设备在 mesos UI 中显示为激活状态。

是不是因为版本问题?

0 投票
1 回答
260 浏览

apache-spark - 找不到 /usr/local/Cellar/mesos/0.22.1/etc/mesos/masters

我使用 brew 在 mac 上安装了 mesos。安装后我去了 mesos/0.22.1/sbin 文件夹并尝试执行 mesos-start-master.sh 。但它失败了

我的问题是这个 etc 文件夹是如何生成的。安装后。我可以在 cmd 上输入 mesos 并工作。但我需要执行上面提到的 sh 文件。

谢谢

0 投票
1 回答
2336 浏览

docker - Docker 应用程序部署在 Marathon 上挂起,在 Mesos 上失败

我正在尝试 Dockerizing Zookeeper/Marathon/Mesos 的(可能是愚蠢的)任务,并Dockerized Mesos 集群部署 Docker 容器。

到目前为止,我在两个物理上独立的节点上有一个工作 Mesos 集群:一个节点同时运行 Mesos节点和节点(容器 Dockerfiles 链接),第二个节点只运行一个从节点。它们似乎运行良好。我能够通过 Marathon 提交非常简单的作业(也是它自己的容器,在具有主从节点的节点上运行)并且它们成功完成。

但是,当我尝试通过 Marathon API 提交 Docker 容器时,它似乎挂起。Marathon 界面一直挂在“正在部署”,并且永远不会改变,即使在让它静置 15 分钟、停止、重新提交并再静置 15 分钟后也是如此。

Marathon UI,描绘看似冻结的 Docker 任务部署

与此同时,任务仍在提交给 Mesos 从站;Mesos UI 左右报告 FAILED 任务。

Mesos UI,描述失败的任务

编辑 1

每个执行程序的结果沙箱日志也完全是空的。

空沙箱

编辑 2

在从属日志中发现了一些有趣的东西:

从属日志

兴趣线:

所有已启用的容器化器 (mesos) 都不能为提供的 TaskInfo/ExecutorInfo 消息创建容器。

看起来容器化程序无法运行,据我所知,它甚至没有将 docker 视为容器化程序。我按照这里的配置来部署Docker作业;如果 Mesos 从站本身就是 Docker 容器,这会改变吗?

我有点脱离了我的元素,找不到这些方面的任何参考资料。知道发生了什么吗?

0 投票
2 回答
482 浏览

docker - Dcos 内部部署,如果我们使用 mesos-dns,外部世界如何到达 docker 容器?

在本地 Dcos 中,如果我们使用mesos-dns 进行服务发现,外部世界如何访问 docker 容器?

假设我的 mesos 域是 marathon.mesos 我已经使用 Marathon 框架部署了 Nginx 容器,并且 mesos-dns 发现为 "nginx.marathon.mesos" 。在集群内,我可以通过网络浏览器访问http://nginx.marathon.mesos,这没问题。

但是在集群外部(在公共世界中),当有人键入 abc.xyz.com 时,nginx 容器服务器需要显示为“abc.xyz.com”,流量应该路由到 nginx 容器,如果我使用 mesos-dns 进行服务发现我们该如何处理这种情况?

0 投票
2 回答
600 浏览

dns - 使用 Cassandra-mesos 框架时,mesos-dns 提供的访问 Cassandra 的服务名称是什么?

我们正在使用稍微修改的社区中间层集群。这已经安装了 mesos-dns - 所以我们可以解决 master.mesos 和 x.marathon.mesos,没问题。问题是我们应该使用哪个名称来访问 Cassandra 数据库(无论是使用 cqlsh 还是使用其他应用程序)?

我在文档中找到了以下内容:cassandra-dcos-node.cassandra.dcos.mesos ( https://docs.mesosphere.com/services/cassandra/ ) 但是如果我们更改集群名称会怎样(比如说,“富”)?哪个位被修改?我玩过所有的组合,但还没有解决。

0 投票
1 回答
748 浏览

amazon-web-services - Spot 实例支持 DCOS

是否可以更改 DCOS 模板以使用 Spot 实例?我环顾四周,似乎没有太多关于此的信息。

0 投票
1 回答
526 浏览

docker - Setting Team City Build Agent Port Number in Marathon

Trying to deploy a teamcity build agent on the Mesosphere Marathon platform and having problems with the port mappings.

By default the teamcity server will try to talk to the teamcity agent on port 9090

Therefor I set the container port like so :

"containerPort": 9090

However when I deploy the teamcity agent container, Marathon maps port 9090 to a port in the 30000 range.

When teamcity server talks back to the container on port 9090 it fails because the port is mapped to 30000.

I've figured out how to get this dynamic port into the teamcity config file by running the following sed command in the marathon args :

When the container is spun up it will swap out ownPort=9090 for ownPort=$PORT0 in buildAgent.properties and then start the agent.

However now that the agent is on port 30000 the "containerPort": 9090 is now invalid, it should be "containerPort": $PORT0 however this is invalid json as containerPort should be an integer.

I have tried setting "containerPort": 0 which should dynamically assign a port, but using this value I cannot get the container to start it just disappears straight away and keeps trying to deploy it.

I log onto the mesos slave host and run docker ps -a I can see the containers ports are blank :

This is the Marathon json file I'm using and Marathon version is Version 0.8.2 :

Any help would be greatly appreciated!

0 投票
1 回答
1513 浏览

docker - 频繁重启 - marathon/mesos 中的 docker 容器

在完全将我的网络服务器应用程序 docker 化之前,我一直是成功的。现在我想通过 marathon 框架将它们直接部署到 mesos slave 来探索更多。我可以通过两种不同的方法将 docker 容器部署到马拉松中,命令行或马拉松 Web UI。两者都对我有用,但挑战是当我尝试部署我的 docker 映像时,马拉松经常重新启动作业,并且在 mesos UI 页面中,我可以看到同一个容器的许多已完成作业。每分钟接近 10 个任务。我相信这不是预期的。

我的 docker 文件如下所示:

现在我不知道如何解决这个问题,任何指导将不胜感激。谢谢

0 投票
1 回答
240 浏览

docker - 马拉松码头工人工作在部署状态下挂起

嗨,到目前为止,我已经成功地完成了马拉松中的简单工作,但是当我尝试通过马拉松框架在 mesos 中部署 deocker 工作时,它卡住了。

我正在使用如下 json 文件来部署 docker 作业:

我的 pga docker 镜像在作为容器运行时没有问题,但是通过马拉松它只是不工作。它永远处于部署状态。

我正在使用以下命令行:

但是当我从马拉松 UI 运行相同的图像时,它就可以工作了。为了从马拉松开始,我在 UI 新作业页面的 cmd 字段中使用了“docker run --publish 6060:80 --name test --rm pga”。

有人知道为什么这会挂在命令行方法中吗?

0 投票
4 回答
352 浏览

java - 使用 Marathon 部署 Mesos 集群

我有三台机器 M1、M2 和 M3。我在 M1 上部署了 mesos-master、zookeeper 和 marathon,在 M2 和 M3 上部署了 mesos-slave。然而,在 Mesos Gui 上,显示了零奴隶。然后我运行命令mesos-resolvecat /etc/mesos/zk来检查从站是否发现了正确的主站。但是不,它错误地将 127.0.0.1:5050 发现为主服务器。以下是上述命令的日志:

如日志所示,我在 M1/zookeeper 中查找了 /mesos/info_0000000001 的节点值。原来是这样的:

Mesos 主设置:cat /etc/mesos/zk

所以看起来,M1 的 mesos 主控如何不将其绝对 IP 存储在 Zookeeper 节点中。任何人都可以解释这种奇怪的行为。