Gitaly fails to start after a machine reboot when cgroups is enabled
As cgroups are ephemeral, after a machine is rebooted, the cgroups hierarchy root is gone, and thus Gitaly cannot start as it fails to create the cgroups buckets underneath it. The hierarchy root is provisioned by omnibus (gitlab-ctl reconfigure
) and currently it has to be run manually to restore the root.
Possible solutions:
- Make Gitaly more forgiving to cgroups creation
- Make use of
cgconfigparser
in manner similar to this - Have a dedicated cgroups mount for Gitaly that's r/w accessible by the
git
user
Edited by Ahmad Sherif