Skip to content

Commit 6ea7689

Browse files
committed
chore: move ulimit to systemd and increase a bit
1 parent 446eebf commit 6ea7689

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

ansible/files/postgresql_config/postgresql.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ Restart=always
2020
RestartSec=5
2121
OOMScoreAdjust=-1000
2222
EnvironmentFile=-/etc/environment.d/postgresql.env
23-
23+
LimitNOFILE=16384
2424
[Install]
2525
WantedBy=multi-user.target

ansible/tasks/setup-postgres.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,3 @@
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

0 commit comments

Comments
 (0)