Name

ocf:varnish — Manage a Varnish instance

Synopsis

OCF_RESKEY_config=string OCF_RESKEY_name=string OCF_RESKEY_pid=string OCF_RESKEY_listen_address=string OCF_RESKEY_mgmt_address=string [OCF_RESKEY_ttl=integer] [OCF_RESKEY_varnish_user=string] [OCF_RESKEY_varnish_group=string] [OCF_RESKEY_backend_type=string] [OCF_RESKEY_backend_size=string] OCF_RESKEY_backend_file=string [OCF_RESKEY_worker_threads=string] [OCF_RESKEY_client_binary=string] varnish [start | stop | monitor | status | 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

OCF_RESKEY_config=VCL file

The VCL configuration file that varnish should manage, for example "/etc/varnish/default.vcl".

OCF_RESKEY_name=Instance name

Override the name of the instance that should be given to varnish (defaults to the resource identifier).

OCF_RESKEY_pid=Listen address

Write the process's PID to the specified file. The default will include the specified name, ie.: "/var/run/varnish_production.pid". Unlike what this help message shows. It is most likely not necessary to change this parameter.

OCF_RESKEY_listen_address=Listen address

Listen on this address:port, for example "192.168.1.1:80"

OCF_RESKEY_mgmt_address=Management interface

Provide a management interface, for example "127.0.0.1:2222"

OCF_RESKEY_ttl=TTL

Specifies a hard minimum time to live for cached documents.

OCF_RESKEY_varnish_user=Unprivileged user

Specifies the name of an unprivileged user to which the child process should switch before it starts accepting connections.

OCF_RESKEY_varnish_group=Unprivileged group

Specifies the name of an unprivileged group to which the child process should switch before it starts accepting connections.

OCF_RESKEY_backend_type=Backend type

Use the specified storage backend. Valid options are 'malloc' for memory and 'file' for a file backend.

OCF_RESKEY_backend_size=Backend size

Specify the size of the backend. For example "1G".

OCF_RESKEY_backend_file=Backend file

Specify the backend filename if you use backend_type file. For example /var/lib/varnish/mybackend.bin

OCF_RESKEY_worker_threads=Worker threads

Start at least min but no more than max worker threads with the specified idle timeout. Syntax: min[,max[,timeout]] For example: 100,3000,120

OCF_RESKEY_client_binary=Varnish admin utility

This is used to control varnish via a CLI. It's currently only used to check the status of the running child process.


SUSE Linux Enterprise High Availability Extension High Availability Guide 11 SP3