Put in up to date limits for the proxies so that varnish does not consume all ram
This commit is contained in:
parent
db5e633e86
commit
00cb5ef564
1 changed files with 4 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue