Man page - ocf_heartbeat_varnish(7)
Packages contains this manual
- ocf_heartbeat_nagios(7)
- ocf_heartbeat_symlink(7)
- ocf_heartbeat_aws-vpc-route53(7)
- ocf_heartbeat_rabbitmq-cluster(7)
- ocf_heartbeat_rabbitmq-server-ha(7)
- ocf_heartbeat_mariadb(7)
- ocf_heartbeat_aliyun-vpc-move-ip(7)
- ocf_heartbeat_ids(7)
- ocf_heartbeat_jboss(7)
- ocf_heartbeat_conntrackd(7)
- ocf_heartbeat_ovsmonitor(7)
- ocf_heartbeat_sfex(7)
- ocf_heartbeat_osceip(7)
- ocf_heartbeat_powervs-subnet(7)
- ocf_heartbeat_lxc(7)
- ocf_heartbeat_nfsnotify(7)
- ocf_heartbeat_postfix(7)
- ocf_heartbeat_openstack-info(7)
- ocf_heartbeat_iface-bridge(7)
- ocf_heartbeat_scsi2reservation(7)
- ocf_heartbeat_nginx(7)
- ocf_heartbeat_dovecot(7)
- ocf_heartbeat_vdo-vol(7)
- ocf_heartbeat_portblock(7)
- ocf_heartbeat_vsftpd(7)
- ocf_heartbeat_ocivip(7)
- ocf_heartbeat_lxd-info(7)
- ocf_heartbeat_nfsserver(7)
- ocf_heartbeat_sg_persist(7)
- ocf_heartbeat_slapd(7)
- ocf-tester(8)
- ocf_heartbeat_dhcpd(7)
- ocf_heartbeat_iface-vlan(7)
- ocf_heartbeat_oraasm(7)
- ocf_heartbeat_rsyncd(7)
- ocf_heartbeat_exportfs(7)
- ocf_heartbeat_gcp-vpc-move-vip(7)
- ocf_heartbeat_docker-compose(7)
- ocf_heartbeat_storage-mon(7)
- ocf_heartbeat_gcp-vpc-move-route(7)
- ocf_heartbeat_apache(7)
- ocf_heartbeat_podman(7)
- ocf_heartbeat_gcp-ilb(7)
- ocf_heartbeat_db2(7)
- ocf_heartbeat_gcp-pd-move(7)
- ocf_heartbeat_dummypy(7)
- ocf_heartbeat_nvmet-port(7)
- ocf_heartbeat_named(7)
- ocf_heartbeat_kamailio(7)
- ocf_heartbeat_azure-lb(7)
- ocf_heartbeat_mysql-proxy(7)
- ocf_heartbeat_oracle(7)
- ocf_heartbeat_ethmonitor(7)
- ocf_heartbeat_pound(7)
- ocf_heartbeat_ipsec(7)
- ocf_heartbeat_aws-vpc-move-ip(7)
- ocf_heartbeat_vmware(7)
- ocf_heartbeat_azure-events-az(7)
- ocf_heartbeat_rsyslog(7)
- ocf_heartbeat_gcp-vpc-move-ip(7)
- ocf_heartbeat_clvm(7)
- ocf_heartbeat_mdraid(7)
- ocf_heartbeat_rkt(7)
- ocf_heartbeat_openstack-cinder-volume(7)
- ocf_heartbeat_corosync-qnetd(7)
- ocf_heartbeat_fio(7)
- ocf_heartbeat_nvmet-namespace(7)
- ocf_heartbeat_jira(7)
- ocf_heartbeat_docker(7)
- ocf_heartbeat_openstack-floating-ip(7)
- ocf_heartbeat_pgsql(7)
- ocf_heartbeat_pingd(7)
- ocf_heartbeat_zabbixserver(7)
- ocf_heartbeat_garbd(7)
- ocf_heartbeat_varnish(7)
- ocf_heartbeat_openstack-virtual-ip(7)
- ocf_heartbeat_syslog-ng(7)
- ocf_heartbeat_azure-events(7)
- ocf_heartbeat_mpathpersist(7)
- ocf_heartbeat_pgagent(7)
- ocf_heartbeat_proftpd(7)
- ocf_heartbeat_iscsi(7)
- ocf_heartbeat_anything(7)
- ocf_heartbeat_smb-share(7)
- ocf_heartbeat_awsvip(7)
- ocf_heartbeat_awseip(7)
- sfex_init(8)
- ocf_heartbeat_mysql(7)
- ocf_heartbeat_oralsnr(7)
- ocf_heartbeat_galera(7)
- ocf_heartbeat_iface-macvlan(7)
- ocf_heartbeat_redis(7)
- ocf_heartbeat_nvmet-subsystem(7)
- ocf_heartbeat_crypt(7)
- ocf_heartbeat_tomcat(7)
- ocf_heartbeat_asterisk(7)
- ocf_heartbeat_dnsupdate(7)
- ocf_heartbeat_machine-info(7)
- ocf_heartbeat_lvmlockd(7)
- ocf_heartbeat_minio(7)
apt-get install resource-agents
Manual
OCF_HEARTBEAT_VARNIS
NAMESYNOPSIS
DESCRIPTION
SUPPORTED PARAMETERS
SUPPORTED ACTIONS
EXAMPLE CRM SHELL
EXAMPLE PCS
SEE ALSO
AUTHOR
NAME
ocf_heartbeat_varnish - Manage a Varnish instance
SYNOPSIS
|
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
The VCL configuration file that Varnish should manage, for example "/etc/varnish/default.vcl".
(unique, required, string, no default)
name
Override the name of the instance that should be given to Varnish (defaults to the resource identifier).
(unique, optional, string, default "RESOURCE_ID")
pid
Write the process's PID to the specified file. The default will include the specified name, i.e.: "/var/run/varnish_production.pid". Unlike what this help message shows, it is most likely not necessary to change this parameter.
(unique, optional, string, default "/var/run/varnishd_RESOURCE_ID.pid")
listen_address
Listen on this address:port, for example "192.168.1.1:80"
(unique, optional, string, default "0.0.0.0:80")
mgmt_address
Provide a management interface, for example "127.0.0.1:2222"
(unique, required, string, no default)
ttl
Specify a hard minimum time to live for cached documents.
(optional, integer, default 600)
varnish_user
Specify the name of an unprivileged user to which the child process should switch before it starts accepting connections.
(optional, string, default "varnish")
varnish_group
Specify the name of an unprivileged group to which the child process should switch before it starts accepting connections.
(optional, string, default "varnish")
backend_type
Use the specified storage backend. Valid options are 'malloc' for memory and 'file' for a file backend.
(optional, string, default "malloc")
backend_size
Specify the size of the backend. For example "1G".
(optional, string, default "1G")
backend_file
Specify the backend filename if you use backend_type file. For example /var/lib/varnish/mybackend.bin
(unique, optional, string, default "/var/lib/varnish/RESOURCE_ID.bin")
threads_pools
Number of worker thread pools. Each pool has the minimum, maximum and timeout values configured in the thread_pool_min, thread_pool_max and thread_pool_timeout parameters
(optional, string, default "2")
thread_pool_min
Start at least min but no more than max worker threads with the specified idle timeout in each pool.
(optional, string, default "100")
thread_pool_max
Start at least min but no more than max worker threads with the specified idle timeout in each pool.
(optional, string, default "3000")
thread_pool_timeout
Start at least min but no more than max worker threads with the specified idle timeout in each pool.
(optional, string, default "120")
client_binary
This is used to control Varnish via a CLI. It's currently only used to check the status of the running child process.
(optional, string, default "varnishadm")
maxfiles
Maximum number of open files (for ulimit -n)
(optional, string, default "131072")
max_locked_memory
Locked shared memory limit (for ulimit -l)
(optional, string, default "82000")
secret
Path to a file containing a secret used for authorizing access to the management port.
(optional, string, default "/etc/varnish/secret")
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 20s.
stop
Stops the resource. Suggested minimum timeout: 20s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10s.
status
Performs a status check. Suggested minimum timeout: 20s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 20s.
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="20s" interval="10s"
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="20s" interval="10s"
OCF_CHECK_LEVEL="0"
SEE ALSO
http://clusterlabs.org/
AUTHOR
ClusterLabs contributors (see the resource agent source for information about individual authors)