Create command to capture resources usage for each GitLab component
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
We have users complaining about GitLab using too many resources (see: https://gitlab.com/gitlab-org/gitlab-ce/issues/30542), I think it would help we if can provide a script like the gitlab-rake gitlab:env:info that collects resource usage in general and provide a summary people can copy and paste into issues.
This will help us determine for example if sidekiq is using 10TB of RAM or is it Unicorn or is the database.
Proposal
Create few rake tasks to track resource usage:
-
gitlab-rake gitlab:resources:cpu: summarizes per type of daemon: snapshot of CPU usage (this is tricky but maybe a 5s sampling + system load) -
gitlab-rake gitlab:resources:disk: summarizes per type of daemon: disk usage (du -sh, or extra info in case of database?) -
gitlab-rake gitlab:resources:memory: summarizes per type of daemon: RAM usage (actual number an percentage of total available)
Links / references
Edited by 🤖 GitLab Bot 🤖