proxies: Override the httpd systemd unit file to up file limit and restart on failure

The proxies seem to be hitting file limits, so try increasing them.
Also, set httpd to restart on failure, this should help mask the problem
if it persists with the higher limit.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-01-22 13:51:23 -08:00
parent 49e6526151
commit 8a4a4469e4
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,3 @@
[Service]
LimitNOFILE=98304
Restart=on-failure

View file

@ -97,3 +97,19 @@
- httpd
- httpd/proxy
- disablesystemdoomd
- name: create systemd drop in dir for httpd
file: path=/etc/systemd/system/httpd.service.d/ state=directory
tags:
- httpd
- httpd/proxy
- httpdoverride
- name: create systemd drop in dir for httpd
copy: src=httpdoverride.conf dest=/etc/systemd/system/httpd.service.d/httpdoverride.conf
tags:
- httpd
- httpd/proxy
- httpdoverride
notify:
- reload systemd