From 00cb5ef564d53478a7c74ee4cf035a371275b575 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Wed, 22 Jul 2020 09:30:27 -0400 Subject: [PATCH] Put in up to date limits for the proxies so that varnish does not consume all ram --- roles/varnish/templates/varnish.f29.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/varnish/templates/varnish.f29.j2 b/roles/varnish/templates/varnish.f29.j2 index d7ee407910..d55c999ccd 100644 --- a/roles/varnish/templates/varnish.f29.j2 +++ b/roles/varnish/templates/varnish.f29.j2 @@ -1,4 +1,4 @@ -{% if "proxy" in inventory_hostname %} +{% if varnish_group == 'proxies' %} {% set VARNISH_LISTEN_PORT=6081 %} {% else %} {% set VARNISH_LISTEN_PORT=80 %} @@ -8,8 +8,10 @@ {% set VARNISH_STORAGE="malloc,48GB" %} {% elif varnish_group == 's390kojipkgs' %} {% set VARNISH_STORAGE="file,/var/lib/varnish/varnish_storage.bin,20G" %} +{% elif varnish_group == 'proxies' %} +{% set VARNISH_STORAGE="malloc,1GB -s Transient=malloc,2G" %} {% else %} -{% set VARNISH_STORAGE="malloc,256M" %} +{% set VARNISH_STORAGE="malloc,1GB" %} {% endif %} [Unit]