Mesos框架 [英] Mesos Framework

查看:220
本文介绍了Mesos框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用java和定义依赖关系在集群上分发Docker容器,这样当一个容器完成时,我可以在我的java代码中解析生成的输出。有很多mesos框架可以达到这个目标,我不确定应该选择哪一个:Marathon,Singularity,Chronos,Aurora。

I want to distribute Docker containers on a cluster by using java and define dependencies, so that when one container is finished I can parse the produced output in my java code. There are many mesos frameworks that can achieve that and I'm not sure which one to take: Marathon, Singularity, Chronos, Aurora.

到目前为止我学到了什么:

What I have learned so far:

Marathon有一个非常好的java客户端api但是用于长期任务(不知道这是不是一个问题,因为我的任务不能运行那么久)我不认为我可以定义那种依赖。如果我使用马拉松,我将不得不轮询该应用程序的状态。
Chronos没有java api(至少我找不到)。
所以我可以选择Aurora和Singularity。

Marathon has a really nice java client api but is used for long term tasks (don't know if that is a problem, because my tasks will not run that long) and I dont think that I can define that kind of dependency. If I would use marathon I would have to poll for the status of the app. Chronos has no java api (At least I could not find any). So I can choose between Aurora and Singularity.

任何人都可以帮我推荐其中一个用于我的用例。

Can anyone help and recommend me one of them for my use case.

推荐答案

Chronos (如Marathon)是用Scala编写的,所以应该很容易集成使用任何基于JVM的应用程序。更好的是,它们(实际上可能全部4个)都有REST API,因此无论每个应用程序/服务的实现语言如何,您都可以自己调整操作/查询。

Chronos (like Marathon) is written in Scala, so it should be easy to integrate with any JVM-based app. Even better, they both (probably all 4 actually) have REST APIs, so you can just curl your actions/queries, regardless of each app/service's implementation language.

For你的用例,你可能更喜欢Chronos而非Marathon,因为你希望你的任务完成(而不是重新启动)。 Marathon用于长时间运行(马拉松,运行......获取?)任务,因此它将重启失败/完成的任务。 Chronos就像是一个带有依赖关系的分布式cron,所以你可以安排你的工作,然后在完成以前的工作后开始依赖的工作,建立任意的工作DAG。

For your use case, you'll probably prefer Chronos over Marathon, since you expect your tasks to complete (and not be restarted). Marathon is intended for long-running (marathon, running.. get it?) tasks, so it will restart a failed/completed task. Chronos is like a distributed cron with dependencies, so you can schedule your jobs, and then add dependent jobs to start upon completion of previous jobs, building arbitrary DAGs of jobs.

我会让其他人对奥罗拉和奇点进行讨论。我认为他们都支持类似cron的工作。

I'll let others chime in about Aurora and Singularity. I think they both support cron-like jobs.

这篇关于Mesos框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆