Skip to content

keepalived job from haproxy/11.17.1

The keepalived job can be used to add a VRRP IP address to enforce HA on haproxy release

Github source: 3421a4c or master branch

Properties

keepalived

dont_track_primary

Ignore VRRP interface faults

Default
false

healthcheck_command

when health check fails, this triggers a fail over. The default command checks the haproxy process is still alive.

Default
killall -0 haproxy

healthcheck_name

label displayed for the health check. Will appear in keepalive traces e.g. “Keepalived_vrrp[4558] VRRP_Script(check_haproxy) failed”

Default
check_haproxy

interface

interface keepalived will use to mount the VIP. If set to ‘auto’, uses the default interface on the VM

Default
auto

vip

Virtual IP V4 address that will be given to master

virtual_router_id

Specifies the VRRP virtual router identifier (VRID)(numerical from 1 to 255). A unique VRID value is needed for each VRRP cluster

Default
1

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/keepalived/ directory (learn more).

  • bin/keepalived_ctl (from keepalived_ctl)
  • config/keepalived.config.template (from keepalived.config.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.