table of contents
OCF_HEARTBEAT_VARNIS(7) | OCF resource agents | OCF_HEARTBEAT_VARNIS(7) |
NAME¶
ocf_heartbeat_varnish - Manage a Varnish instanceSYNOPSIS¶
varnish [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION¶
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.SUPPORTED PARAMETERS¶
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")
worker_threads
Syntax: min[,max[,timeout]] For example: 100,3000,120
(optional, string, default "100,3000,120")
client_binary
(optional, string, default "varnishadm")
maxfiles
(optional, string, default "131072")
max_locked_memory
(optional, string, default "82000")
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):start
stop
monitor
status
meta-data
validate-all
EXAMPLE CRM SHELL¶
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="20" interval="10" depth="0"
EXAMPLE PCS¶
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="20" interval="10" depth="0"
SEE ALSO¶
http://clusterlabs.org/AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)06/04/2017 | resource-agents 4.0.0~rc1-4 |