Ephemeral tasks on Marathon

断了今生、忘了曾经 提交于 2019-12-12 21:44:00

问题


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?


回答1:


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.




回答2:


Recent development has included the "Job" capability via Metronome (Chronos replacement) or you can also use Eremetic framework for one-off tasks.



来源:https://stackoverflow.com/questions/26237045/ephemeral-tasks-on-marathon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!