aurae-runtime / aurae

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

Bypass services that depend on eBPF when probe is missing #381

Closed krisnova closed 1 year ago

krisnova commented 1 year ago

In the event that a service depends on a given eBPF probe to be loaded at runtime, we should simply skip trying to load the service at the daemon bootstrapping phase, instead of halting the program.

CC @JeroenSoeters

JeroenSoeters commented 1 year ago

I think we can just log an error in case we are not able to load the probe. In the future, we could add a startup flag to disable eBPF (or specific probes) and not attempt to load the probes altogether (if that makes sense for users to do). We would just need to come up with sensible gRPC status codes to return for the endpoints that rely on eBPF.