Skip to content

Fix missing cgroups after upgrading Gitaly

If GITALY_UPGRADES_ENABLED is enabled, the new forked process will set the cgroups up (probably won't do nothing as they are already set), but the parent process will clean them up when it gracefully exists, leaving the new process with no cgroups in place.

To fix this problem, we create another parent cgroup that's identified by the process PID, this way each Gitaly process manages its own cgroups.

Edited by Ahmad Sherif

Merge request reports

Loading