Put in up to date limits for the proxies so that varnish does not consume all ram

This commit is contained in:
Stephen Smoogen 2020-07-22 09:30:27 -04:00
parent db5e633e86
commit 00cb5ef564

View file

@ -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]