Skip to content

Commit 1bb897f

Browse files
m-bullcityofships
authored andcommitted
Reduce max Pulp workers to 12
On seed hosts with more than 32 CPU threads, PULP_CONTENT_WORKERS and PULP_API_WORKERS were set to 32, which was causing the number of connections to the bundled Postgres instance to exceed the default max_connections. Reducing the maximum number of PULP_CONTENT_WORKERS and PULP_API_WORKERS will prevent Postgres from running out of connection slots.
1 parent aa80e4e commit 1bb897f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

etc/kayobe/seed.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ seed_pulp_container:
111111
# s6-overlay-suexec starts as pid 1
112112
init: false
113113
env:
114-
PULP_CONTENT_WORKERS: "{{ [ansible_facts.processor_vcpus * 2 + 1, 32] | min }}"
115-
PULP_API_WORKERS: "{{ [ansible_facts.processor_vcpus * 2 + 1, 32] | min }}"
114+
PULP_CONTENT_WORKERS: "{{ [ansible_facts.processor_vcpus * 2 + 1, 12] | min }}"
115+
PULP_API_WORKERS: "{{ [ansible_facts.processor_vcpus * 2 + 1, 12] | min }}"
116116
PULP_HTTPS: "{{ 'true' if pulp_enable_tls | bool else 'false' }}"
117117
volumes:
118118
- /opt/kayobe/containers/pulp:/etc/pulp
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Reduce the maximum number of PULP_CONTENT_WORKERS and PULP_API_WORKERS
5+
to 12 to prevent connection starvation on seed hosts with more than 12
6+
cpu threads.

0 commit comments

Comments
 (0)