chronos icon indicating copy to clipboard operation
chronos copied to clipboard

#764 Add GPU support via --enable-features

Open reneploetz opened this issue 8 years ago • 3 comments

This patch adds GPU scheduling support to Chronos the same way Marathon does it:

  • you need to specify "--enable-features=gpu_resources" as parameter to enable it
  • you can specify "--mesos_task_gpu=X" where X is an Integer to always allocate X GPUs for new tasks
  • the REST API was extended to allow an optional field "gpus" alongside the usual "cpus/disk/mem" arguments to allow per-task GPU settings

The argument parsing code was adapted from Marathon (Features.scala / SchedulerConfiguration.scala) to provide the same behaviour.

This should fix #764

Signed-off-by: Rene Ploetz [email protected]

reneploetz avatar Feb 26 '17 14:02 reneploetz

@reneploetz let me clarify: I was suggesting you add an additional (new) test with the GPUs enabled, and leave the existing test unchanged.

brndnmtthws avatar Mar 08 '17 04:03 brndnmtthws

What's the status of this PR? Right now, mesos-agents that have GPUs won't be offered to Chronos, which is problematic when all the agents have GPUs.

mindscratch avatar Apr 23 '18 13:04 mindscratch

I'm afraid I never had time to create a pull request with proper tests as per review - feel free to do so. We were using Chronos with this patch in some product, but switched to another one a while ago.

reneploetz avatar Apr 26 '18 14:04 reneploetz