Update CRI with memory_swap_limit_in_bytes

This commit is contained in:
Elana Hashman 2021-06-15 16:19:43 -07:00
parent bda03b4818
commit 7d50271d21
No known key found for this signature in database
GPG Key ID: D37F7B2A20B48FA0
2 changed files with 4 additions and 0 deletions

View File

@ -583,6 +583,8 @@ message LinuxContainerResources {
// Each key/value in the map refers to the cgroup v2.
// e.g. "memory.max": "6937202688" or "io.weight": "default 100".
map<string, string> unified = 9;
// Memory swap limit in bytes. Default 0 (not specified).
int64 memory_swap_limit_in_bytes = 10;
}
// HugepageLimit corresponds to the file`hugetlb.<hugepagesize>.limit_in_byte` in container level cgroup.

View File

@ -589,6 +589,8 @@ message LinuxContainerResources {
// Each key/value in the map refers to the cgroup v2.
// e.g. "memory.max": "6937202688" or "io.weight": "default 100".
map<string, string> unified = 9;
// Memory swap limit in bytes. Default 0 (not specified).
int64 memory_swap_limit_in_bytes = 10;
}
// HugepageLimit corresponds to the file`hugetlb.<hugepagesize>.limit_in_byte` in container level cgroup.