Skip to content

Commit 1802ece

Browse files
committed
kaps: add cpu and memory resources in container config file example
Signed-off-by: Hugo Amalric <hugo.amalric01@etu.umontpellier.fr> kaps: delete unused file
1 parent 853b3b0 commit 1802ece

2 files changed

Lines changed: 18 additions & 20 deletions

File tree

container/src/cgroups.rs

Lines changed: 0 additions & 19 deletions
This file was deleted.

hack/fixtures/config.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,23 @@
181181
"/proc/irq",
182182
"/proc/sys",
183183
"/proc/sysrq-trigger"
184-
]
184+
],
185+
"resources": {
186+
"cpu": {
187+
"shares": 1024,
188+
"quota": 1000000,
189+
"period": 500000,
190+
"realtimeRuntime": 950000,
191+
"realtimePeriod": 1000000
192+
},
193+
"memory": {
194+
"limit": 536870912,
195+
"reservation": 536870912,
196+
"kernel": -1,
197+
"kernelTCP": -1,
198+
"swappiness": 0,
199+
"disableOOMKiller": false
200+
}
201+
}
185202
}
186203
}

0 commit comments

Comments
 (0)