Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Add ability to set ulimit -n for pgbouncer user
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPix committed Feb 27, 2019
1 parent 16e4390 commit 17893e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ pgbouncer_log_disconnections: 0
pgbouncer_stats_period: 3600
pgbouncer_server_round_robin: 1
pgbouncer_application_name_add_host: 1
pgbouncer_service_ulimit_nofile: 10240 # set ulimit -n in systemd config
1 change: 1 addition & 0 deletions templates/pgbouncer.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ TimeoutSec=10
ExecStart=/usr/local/bin/pgbouncer -q {{ pgbouncer_conf_file }}
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory={{ pgbouncer_conf_file|dirname }}
LimitNOFILE={{ pgbouncer_service_ulimit_nofile }}

[Install]
WantedBy=multi-user.target

0 comments on commit 17893e4

Please sign in to comment.