Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate & mitigate evicted GitLab pods #35

Open
zackgalbreath opened this issue Jul 3, 2020 · 0 comments
Open

Investigate & mitigate evicted GitLab pods #35

zackgalbreath opened this issue Jul 3, 2020 · 0 comments

Comments

@zackgalbreath
Copy link
Collaborator

While poking around with kubectl we noticed the GitLab web pod had been evicted multiple times in short succession.

Investigation:
Gain a better understanding of why this happened. It must've been resource pressure, but we haven't found a "smoking gun" in the logs yet. One idea is to add CPU monitoring to our watchdog pod:

awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' <(grep 'cpu ' /proc/stat) <(sleep 1;grep 'cpu ' /proc/stat)

(from here)

Mitigation options:

  • Migrate GitLab to a larger EC2 instance
  • Pursue a high availability strategy for deploying GitLab

cc @opadron

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant