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

Recalibrate GitLab resource requests #984

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

zackgalbreath
Copy link
Collaborator

Update the resource requests for our GitLab pods based on the results of the following Prometheus queries:

for CPU:

sum(rate(container_cpu_usage_seconds_total{namespace="gitlab", pod=~"gitlab-webservice-.*"}[5m])) by (pod)

for memory:

sum by (pod) (container_memory_max_usage_bytes{namespace="gitlab", pod=~"gitlab-webservice-.*"})

(change pod selector to query for the other types of GitLab pods)

Update the resource requests for our GitLab pods based on the results of the
following Prometheus queries:

for CPU:
  sum(rate(container_cpu_usage_seconds_total{namespace="gitlab", pod=~"gitlab-webservice-.*"}[5m])) by (pod)

for memory:
  sum by (pod) (container_memory_max_usage_bytes{namespace="gitlab", pod=~"gitlab-webservice-.*"})

(change pod selector to query for the other types of GitLab pods)
@zackgalbreath zackgalbreath requested review from mvandenburgh and jjnesbitt and removed request for mvandenburgh October 28, 2024 14:58
@zackgalbreath zackgalbreath merged commit f1681ae into main Oct 28, 2024
1 check passed
@zackgalbreath zackgalbreath deleted the update_gitlab_resource_requests branch October 28, 2024 15:53
mvandenburgh pushed a commit that referenced this pull request Oct 30, 2024
Update the resource requests for our GitLab pods based on the results of the
following Prometheus queries:

for CPU:
  sum(rate(container_cpu_usage_seconds_total{namespace="gitlab", pod=~"gitlab-webservice-.*"}[5m])) by (pod)

for memory:
  sum by (pod) (container_memory_max_usage_bytes{namespace="gitlab", pod=~"gitlab-webservice-.*"})

(change pod selector to query for the other types of GitLab pods)
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

Successfully merging this pull request may close these issues.

3 participants