OCF_HEARTBEAT_VARNIS(7) | OCF resource agents | OCF_HEARTBEAT_VARNIS(7) |
ocf_heartbeat_varnish - Manage a Varnish instance
varnish [start | stop | status | monitor | meta-data | validate-all]
The Varnish Resource Agent can manage several varnishd instances throughout the cluster. It does so by creating a unique PID file and requires a unique listen address and name for each instance.
config
(unique, required, string, no default)
name
(unique, optional, string, default "RESOURCE_ID")
pid
(unique, optional, string, default "/var/run/varnishd_RESOURCE_ID.pid")
listen_address
(unique, optional, string, default "0.0.0.0:80")
mgmt_address
(unique, required, string, no default)
ttl
(optional, integer, default 600)
varnish_user
(optional, string, default "varnish")
varnish_group
(optional, string, default "varnish")
backend_type
(optional, string, default "malloc")
backend_size
(optional, string, default "1G")
backend_file
(unique, optional, string, default "/var/lib/varnish/RESOURCE_ID.bin")
threads_pools
(optional, string, default "2")
thread_pool_min
(optional, string, default "100")
thread_pool_max
(optional, string, default "3000")
thread_pool_timeout
(optional, string, default "120")
client_binary
(optional, string, default "varnishadm")
maxfiles
(optional, string, default "131072")
max_locked_memory
(optional, string, default "82000")
secret
(optional, string, default "/etc/varnish/secret")
This resource agent supports the following actions (operations):
start
stop
monitor
status
meta-data
validate-all
The following is an example configuration for a varnish resource using the crm(8) shell:
primitive p_varnish ocf:heartbeat:varnish \
params \
config=string \
mgmt_address=string \
op monitor timeout="20s" interval="10s" depth="0"
The following is an example configuration for a varnish resource using pcs(8)
pcs resource create p_varnish ocf:heartbeat:varnish \
config=string \
mgmt_address=string \
op monitor timeout="20s" interval="10s" OCF_CHECK_LEVEL="0"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
04/13/2023 | resource-agents 4.12.0-2 |