Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.28 KB

workers-high-load.md

File metadata and controls

43 lines (31 loc) · 1.28 KB

Workers under heavy load because of being used as a CDN

Symptoms

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

  • Set the project as logically deleted to prevent requests from reaching the git layer.
sudo gitlab-rails console
proj = Project.find_with_namespace('group/project_name') # the path without the .git
proj.pending_delete = true
proj.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

Count processes again and monitor the initially referred dashboard