Skip to content

Commit 89e0466

Browse files
committed
chore: increase files per process and ulimit
1 parent 2f54d6b commit 89e0466

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

ansible/files/postgresql_config/postgresql.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ shared_buffers = 128MB # min 128kB
163163

164164
# - Kernel Resources -
165165

166-
#max_files_per_process = 1000 # min 64
166+
max_files_per_process = 4096 # min 64
167167
# (change requires restart)
168168

169169
# - Cost-Based Vacuum Delay -

ansible/tasks/setup-postgres.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,11 @@
311311
- 'export LC_CTYPE="en_US.UTF-8"'
312312
become: yes
313313
when: nixpkg_mode
314+
315+
- name: Postgres - bump up ulimit
316+
community.general.pam_limits:
317+
domain: postgres
318+
limit_item: nofile
319+
limit_type: soft
320+
value: 4096
321+
when: debpkg_mode or nixpkg_mode

ansible/vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ postgres_major:
88

99
# Full version strings for each major version
1010
postgres_release:
11-
postgresorioledb-17: "17.0.1.31-orioledb"
12-
postgres15: "15.8.1.035"
11+
postgresorioledb-17: "17.0.1.31-orioledb-ulimit-1"
12+
postgres15: "15.8.1.035-ulimit1"
1313

1414
# Non Postgres Extensions
1515
pgbouncer_release: "1.19.0"

0 commit comments

Comments
 (0)