From 55ee5496ba102a90b3bc8937d4147cb3d800f11f Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Fri, 27 Apr 2018 11:03:26 -0400 Subject: [PATCH] Enable cgroup config for Slurm --- tasks/slurmd.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/slurmd.yml b/tasks/slurmd.yml index a3440ce..c43ad71 100644 --- a/tasks/slurmd.yml +++ b/tasks/slurmd.yml @@ -35,3 +35,13 @@ group: slurm mode: 0755 state: directory + +- name: Create cgroup.conf + copy: + content: | + CgroupAutomount=yes + ConstrainCores=yes + ConstrainRAMSpace=yes + ConstrainSwapSpace=yes + dest: "{{ slurm_conf_dir }}/cgroup.conf" + backup: yes