Workers under heavy load because of being used as a CDN
Symptoms
Section titled “Symptoms”- skyrocket increase of load in workers
- decrease of connections
- decrease of database load
- increase of git http processes
- Relevant Dashboard where to find all these graphs
Possible checks
Section titled “Possible checks”- Perform a count of all the http ssh processes that are a cat-file blob
knife ssh 'role:<cluster-role>' "ps -U git -o cmd | grep 'cat-file blob' | grep -v grep | sort | uniq -c -u"
Resolution
Section titled “Resolution”- Set the project as logically deleted to prevent requests from reaching the git layer.
sudo gitlab-rails consoleproj = Project.find_with_namespace('group/project_name') # the path without the .gitproj.pending_delete = trueproj.save
- Kill them all
knife ssh 'role:<cluster-role>' "for p in \$(ps -U git -o pid,cmd | grep <object-id> | grep -v grep | awk '{ print \$1 }'); do kill -9 \$p; done"
Post Checks
Section titled “Post Checks”Count processes again and monitor the initially referred dashboard