Skip to content

Commit 5eb219d

Browse files
authored
Set LimitNOFILE for Patroni systemd service (#897)
increase the limits for open file descriptors from 1024 to 65536
1 parent e4db2b4 commit 5eb219d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

automation/roles/patroni/templates/patroni.service.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ TimeoutSec=60
4747
# Restart the service if it crashed
4848
Restart=on-failure
4949

50+
LimitNOFILE={{ patroni_systemd_limit_nofile | default(65536) }}
51+
5052
[Install]
5153
WantedBy=multi-user.target

0 commit comments

Comments
 (0)