Add OOM detection for exec driver (#19563)

* Add OomKilled field to executor proto format

* Teach linux executor to detect and report OOMs

* Teach exec driver to propagate OOMKill information

* Fix data race

* use tail /dev/zero to create oom condition

* use new test framework

* minor tweaks to executor test

* add cl entry

* remove type conversion

---------

Co-authored-by: Marvin Chin <marvinchin@users.noreply.github.com>
Co-authored-by: Seth Hoenig <shoenig@duck.com>
This commit is contained in:
Marvin Chin
2024-01-03 23:50:27 +08:00
committed by GitHub
parent f2630add91
commit d75293d2ab
11 changed files with 202 additions and 88 deletions

View File

@@ -43,6 +43,7 @@ var TinyChroot = map[string]string{
"/usr/bin/dash": "/bin/sh",
"/usr/bin/bash": "/bin/bash",
"/usr/bin/cat": "/bin/cat",
"/usr/bin/tail": "/bin/tail",
// destination: /usr/bin
"/usr/bin/stty": "/usr/bin/stty",