aurae-runtime / aurae

Distributed systems runtime daemon written in Rust.
https://aurae.io
Apache License 2.0
1.85k stars 91 forks source link

Switch to Youki cgroup driver #290

Closed krisnova closed 2 months ago

krisnova commented 1 year ago

We should consider going "all in" on youki for our cgroups and container runtime.

There is a cgroup library https://github.com/containers/youki/tree/main/crates/libcgroups that we can replace our current dependency with.

I am in the process of contributing some example code to the youki project now that we can use here in Aurae.

krisnova commented 1 year ago

This will likely require libdbus unless somebody goes and patches youki like we did with libcontainer

dmah42 commented 1 year ago

@future-highway did this but unfortunately we needed to revert it in #362 due to #360 .

we should absolutely try again but will need to either change how libcgroups works or how auraed works to align them.

yihuaf commented 1 year ago

Using libcgroup feature v2 with no-default-features should remove libdbus from the dependency. Let me know if there is any other issue or file an issue on youki directly. I can help pick up any work.

dmah42 commented 2 months ago

i believe this is now resolved and we're happily using youki