-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple systemd units with the same name #192
Comments
@mskarbek Thanks for reaching out. Which version of parca-agent is this? We recently fixed issues regarding cgroup v2, it's in the main branch but we haven't released it yet. #178 cc @derekparker |
@kakkoyun current main (d20ec7a) build locally on RHEL 8 and Fedora 34
Fedora 34:
Currently, I'm trying to force |
|
So as I understand it, this isn't an issue with cgroup v2 support but more an issue of using systemd within separate containers and then having parca-agent detect that cgroup fs hierarchy under the Does supplying the |
As illustrated by the above debug logs, using |
Ah, well, yes... that's a problem! I can take a shot at wiring that parameter up and see if we can use it to solve your problem at least partially! |
This patch wires up the --systemd-cgroup-path flag and actually plumbs the user provided value into the systemd config and subsequently into the systemd discoverer to be used when trying to reconcile unit files. Fixes parca-dev#192
@derekparker patch does not apply onto d20ec7a and current main (af1ca89) fails to build for me right now. I'll resume testing when this will be resolved.
|
@mskarbek hm, I'm having no problem building current main at the moment. Can you try clearing your module / build cache? |
|
@mskarbek what version of Go are you using? |
@derekparker |
Ah, that's the issue. That dependency uses I'll update our |
This will exclude building on RHEL 8 until 8.6 is released (May), which is a little problematic. I'll try to work around that. |
I have just started playing with
parca
and this is the first thing that came up. ;)Use case - multiple containers with systemd inside:
Cgroup v2 structure:
Each of the containers runs systemd unit with the same name. Obviously, from the container perspective those are separate systemd instances, but from the host perspective when using single
parca-agent
there is a problem, I can't just use--systemd-units=my-app.service
-parca-agent
will try to find that service under/sys/fs/cgroup/system.slice
(BTW default for now is/sys/fs/cgroup/systemd/system.slice
which is wrong for cgroup v2. Shouldn't this be autodetected?)Can this be supported, or should I run multiple agents for each container with
--systemd-cgroup-path=
pointing at eachsystem.slice
insidemachine.slice
?Env: RHEL 8 and podman.
The text was updated successfully, but these errors were encountered: