HAProxy Enterprise Documentation 12.5

ARP

To check a real server's availability using an arp whohas packet, use the following directive:

option arpcheck [interval <seconds>] [timeout <seconds>] [source <ip>] [iface <name>]

This directive takes the following arguments:

interval <seconds> (optional)

Interval between two checks, in seconds (default: 10 seconds)

timeout <seconds> (optional)

Period after which an attempt without a response from the server is considered as failed (default: 3 seconds)

source <ip> (optional)

Source IP to use when performing the check

iface <name> (optional)

Network interface name to use when sending the ARP packet

Check the availability of an NFS server:

director d_nfs
  # ...
  option arpcheck interval 4s timeout 1s
  server nfs1 10.0.0.1 check
  server nfs2 10.0.0.2 check