2015-05-28 11:32:57 +02:00
|
|
|
---
|
2017-10-28 13:25:59 +02:00
|
|
|
varnish_version: 4
|
|
|
|
varnish_compact_ver: 41
|
2015-05-28 11:32:57 +02:00
|
|
|
varnish_repo: True
|
|
|
|
varnish_repo_requirements:
|
|
|
|
- apt-transport-https
|
2017-10-28 13:25:59 +02:00
|
|
|
- debian-archive-keyring
|
|
|
|
varnish_repo_url: "deb https://packagecloud.io/varnishcache/varnish{{ varnish_compact_ver }}/ubuntu/ {{ ansible_distribution_release }} main"
|
2015-05-28 11:32:57 +02:00
|
|
|
varnish_pkg_name: varnish
|
|
|
|
varnish_pkg_state: present
|
|
|
|
varnish_enabled: True
|
|
|
|
|
2015-07-13 14:17:42 +02:00
|
|
|
varnish_instance_name: '{{ ansible_fqdn }}'
|
|
|
|
varnish_listen_port: 6081
|
|
|
|
varnish_admin_listen_port: 6082
|
|
|
|
varnish_admin_listen_host: 127.0.0.1
|
|
|
|
varnish_vcl_conf: /etc/varnish/default.vcl
|
|
|
|
varnish_secret_file: /etc/varnish/secret
|
|
|
|
varnish_pid_file: /var/run/varnish.pid
|
|
|
|
varnish_n_files: 131072
|
|
|
|
varnish_memlock: 82000
|
2015-05-28 11:32:57 +02:00
|
|
|
varnish_static_c_timeout: 240s
|
|
|
|
varnish_static_first_byte_timeout: 360s
|
|
|
|
varnish_static_between_bytes_timeout: 360s
|
2015-05-31 19:35:38 +02:00
|
|
|
varnish_min_threads: 10
|
|
|
|
varnish_max_threads: 1000
|
2015-07-13 14:17:42 +02:00
|
|
|
varnish_thread_timeout: 120
|
2015-05-28 11:32:57 +02:00
|
|
|
# We are using 3000 in production
|
|
|
|
varnish_static_max_connections: 200
|
2015-07-13 14:17:42 +02:00
|
|
|
#
|
|
|
|
# Choose if we want static disk based cache or volatile ram based one
|
|
|
|
varnish_use_disk_cache: True
|
2015-05-28 11:32:57 +02:00
|
|
|
varnish_storage_file: /var/lib/varnish/varnish_storage.bin
|
|
|
|
# We are using 12288M in production
|
|
|
|
varnish_storage_size: 1G
|
2015-07-13 14:17:42 +02:00
|
|
|
#
|
|
|
|
varnish_use_ram_cache: False
|
2015-05-28 11:32:57 +02:00
|
|
|
# Expressed in MBs. We do not use it right now
|
2015-07-13 14:17:42 +02:00
|
|
|
varnish_ram_cache_size: 512M
|
2015-05-28 11:32:57 +02:00
|
|
|
# We are using 48000 in production
|
|
|
|
varnish_ttl: 120
|
|
|
|
varnish_user: varnish
|
|
|
|
varnish_group: varnish
|
|
|
|
varnish_purge_whitelist:
|
|
|
|
- 127.0.0.1
|
2015-07-13 14:17:42 +02:00
|
|
|
|
|
|
|
varnish_set_sysctl_params: False
|
|
|
|
varnish_sysctl_file: 30-varnish.conf
|
|
|
|
varnish_sysctl_kernel_parameters:
|
|
|
|
- { name: 'net.core.rmem_max', value: '212992' }
|
|
|
|
- { name: 'net.core.wmem_max', value: '212992' }
|