weixin_39909001
weixin_39909001
2020-12-02 00:36

deimos executor and mesos default shell executor

If I installed deimos on mesos slaves, can I still use the mesos default shell executor? If so, how to specify which executor to use? Thanks!

该提问来源于开源项目:mesosphere-backup/deimos

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39609670 weixin_39609670 5月前

    If you're asking about using Mesos with lxc (or cgroups) vs Docker, you need to explicitly tell the Mesos slave to use an external containizer (e.g. Deimos).

    点赞 评论 复制链接分享
  • weixin_39909001 weixin_39909001 5月前

    After installed Deimos, it seems that Mesos slaves run all jobs inside docker. So my question is with Deimos installed, can I choose to run some jobs inside docker and others without docker (say, with cgroups)?

    点赞 评论 复制链接分享
  • weixin_39609670 weixin_39609670 5月前

    If the Mesos slave is not configured to use external isolation and provided with the path to Deimos (and by extension made aware of Docker), it will not (more accurately cannot) use Docker containers.

    Slave options

    
    --isolation=VALUE                          Isolation mechanisms to use, e.g., 'posix/cpu,posix/mem'
                                                 or 'cgroups/cpu,cgroups/mem' or 'external'. (default: posix/cpu,posix/mem)
    
    --containerizer_path=VALUE                 The path to the external containerizer executable used when
                                                 external isolation is activated (--isolation=external).
    
    点赞 评论 复制链接分享
  • weixin_39979489 weixin_39979489 5月前

    At present, you can run them all with Deimos -- or all not. We've experimented with a "non-containerizer" (container.image would be non:///) in Deimos to allow it but this code is not in master.

    点赞 评论 复制链接分享
  • weixin_39909001 weixin_39909001 5月前

    That's exactly what I'm looking for. Thanks!

    点赞 评论 复制链接分享
  • weixin_39909001 weixin_39909001 5月前

    Another question, can I still use Chronos to run job with Deimos installed and mesos slave using external isolation?

    点赞 评论 复制链接分享
  • weixin_39979489 weixin_39979489 5月前

    All Chronos tasks will run in Deimos, too -- the scheduler doesn't need to understand anything about the containerizer. They're at different layers.

    点赞 评论 复制链接分享

相关推荐