Skip to content

Commit

Permalink
Increase short running worker memory (#642)
Browse files Browse the repository at this point in the history
Increase short running worker memory

After the last memory increase, it seems the workers are using more cpu and executing much more tasks. So memory seems to be a real bottleneck.

Reviewed-by: Matej Focko
  • Loading branch information
2 parents 56861b1 + d392a70 commit 2cd9e84
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# https://ansible-lint.readthedocs.io/en/latest/configuring.html

profile: basic

skip_list:
- yaml # clashes with prettier

Expand All @@ -14,7 +16,6 @@ mock_modules:
# Ansible 2.9.27 in F35 still contains the k8s module so we can ignore the error until F36,
# where we can switch to kubernetes.core.k8s as ansible-5.x in F36 contains it.
- k8s
- kubernetes.core.k8s
# Ignore until F36, where these are in community.crypto collection (part of ansible-5.x rpm).
- openssh_keypair
- openssl_certificate
Expand Down
2 changes: 1 addition & 1 deletion playbooks/test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

post_tasks:
- name: Delete test project namespace if already exist
kubernetes.core.k8s:
k8s:
name: "{{ test_project_name }}"
api_version: v1
kind: Namespace
Expand Down
4 changes: 2 additions & 2 deletions playbooks/test_deploy_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
changed_when: false

- name: Delete test project namespace if already exist
kubernetes.core.k8s:
k8s:
name: "{{ test_project_name }}"
api_version: v1
kind: Namespace
state: absent

- name: Create test project namespace
kubernetes.core.k8s:
k8s:
name: "{{ test_project_name }}"
api_version: v1
kind: Namespace
Expand Down
4 changes: 2 additions & 2 deletions roles/deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@
worker_replicas: "{{ workers_short_running }}"
# Short-running tasks are just interactions with different services.
# They should not require a lot of memory/cpu.
worker_requests_memory: "320Mi"
worker_requests_memory: "768Mi"
worker_requests_cpu: "80m"
worker_limits_memory: "640Mi"
worker_limits_memory: "2048Mi"
worker_limits_cpu: "2"
ansible.builtin.include_tasks: k8s.yml
loop:
Expand Down

0 comments on commit 2cd9e84

Please sign in to comment.