马拉松短暂任务 [英] Ephemeral tasks on Marathon

查看:191
本文介绍了马拉松短暂任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在手之前,让我说我刚刚接触到中层圈。我正在尝试将现有的Rails应用程序部署迁移到Mesos,并且我迄今已经取得了成功,但是目前我正在运行迁移和种子(通过Rake任务)的中间,我没有看到一个很好的方式来获取完成这些任务是短暂的,他们不符合马拉松的想法。我应该如何进行?

解决方案

您还可以使用 Chronos 运行预计在某个时间完成的任务Now。



马拉松针对长时间运行应始终保持运行的服务。


Before hand let me say that I'm new to Mesosphere stack. I am trying to migrate an existing Rails application deployment to Mesos and I'm successful so far, but currently I'm on the middle of running migrations and seeds (through Rake tasks) and I don't see a pretty way to get it done since those tasks are ephemeral and they don't match quite Marathon's idea. How should I proceed?

解决方案

You could also use Chronos to run a task "Now" that is expected to complete at some point.

Marathon is targeted at long-running services that should always keep running.

这篇关于马拉松短暂任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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