From 15348981f8bc05ba431bb95dd98bb0862e074552 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 28 Aug 2020 08:26:19 -0400 Subject: [PATCH] try to fix part of ticket #9273 by increasing the number of open files allowed on log servers and people as they have a large number of files to deal with. --- roles/base/files/rsyslog/rsyslog-limits-systemd | 4 ++-- roles/base/tasks/main.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/base/files/rsyslog/rsyslog-limits-systemd b/roles/base/files/rsyslog/rsyslog-limits-systemd index 05a35d8b67..5c062dc32a 100644 --- a/roles/base/files/rsyslog/rsyslog-limits-systemd +++ b/roles/base/files/rsyslog/rsyslog-limits-systemd @@ -1,4 +1,4 @@ -$MaxOpenFiles 16384 +$MaxOpenFiles 131072 [Service] -LimitNOFILE=16384 +LimitNOFILE=131072 diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 97f00b0fd5..35a59fbb5a 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -366,14 +366,14 @@ - name: rsyslogd make systemd limits directory for file handles file: dest=/etc/systemd/system/rsyslog.service.d/ mode=0755 owner=root group=root state=directory - when: inventory_hostname.startswith('log') + when: inventory_hostname.startswith('log') or inventory_hostname.startswith('people') tags: - rsyslogd - config - name: rsyslogd put systemd limits directory for file handles copy: src=rsyslog/rsyslog-limits-systemd dest=/etc/systemd/system/rsyslog.service.d/limits.conf mode=0644 - when: inventory_hostname.startswith('log') + when: inventory_hostname.startswith('log') or inventory_hostname.startswith('people') tags: - rsyslogd - config