diff options
| author | Pavel Bashkirov <[email protected]> | 2025-08-14 14:29:31 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-08-14 14:50:10 +0300 |
| commit | a023682beac4fb99232d7dae0ff38bc32d767f34 (patch) | |
| tree | 6012b8a318072bbd37f34062426efd1e5a319e16 /contrib/python/ipython-genutils/py2/ipython_genutils | |
| parent | 6d075d8b4153da52cca8c8e017192706343ed4ee (diff) | |
Support sidecars in job containers
# Description
This PR aims to provide a sidecar functionality, so that a set of containers may run as part of the user job, sharing the same space/memory and/or resources. They are launched together with the user job and stopped when the user job finishes. They can be used, for instance, to gather logs from the job, monitor it and many other things.
The logic starts at the proto definition of the job, where the sidecar-s definition was added, following the docs in the description of the issue. Those definitions are passed around until they arrive into a JobProxy which ultimately controls the lifetime of the sidecars. There's also a tracking mechanism which allows to restart the sidecars in case they've exited or failed, or even to fail the whole job if the corresponding RestartPolicy is set.
This PR also required some changes (questionable?) in cri_executor - some of the structures were turned into YSON structures, so that they can be forwarded to job proxy.
Lastly, this PR allows the future extension with other container technologies like Porto. For that, the relevant methods job_proxy/environment are to be implemented.
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1326
Co-authored-by: pogorelov <[email protected]>
commit_hash:2e825329185bcae077e9be63457bf7a7a63a74bc
Diffstat (limited to 'contrib/python/ipython-genutils/py2/ipython_genutils')
0 files changed, 0 insertions, 0 deletions
