Chapter 9 High Availability for FortiOS 5.0 : HA and failover protection : Failover performance : Device failover performance
  
Device failover performance
By design FGCP device failover time is 2 seconds for a two-member cluster with ideal network and traffic conditions. If subsecond failover is enabled the failover time can drop below 1 second.
All cluster units regularly receive HA heartbeat packets from all other cluster units over the HA heartbeat link. If any cluster unit does not receive a heartbeat packet from any other cluster unit for 2 seconds, the cluster unit that has not sent heartbeat packets is considered to have failed.
It may take another few seconds for the cluster to negotiate and re-distribute communication sessions. Typically if subsecond failover is not enabled you can expect a failover time of 9 to 15 seconds depending on the cluster and network configuration. The failover time can also be increased by more complex configurations and or configurations with network equipment that is slow to respond.
You can change the hb-lost-threshold to increase or decrease the device failover time. See “Modifying heartbeat timing” for information about using hb‑lost-threshold, and other heartbeat timing settings.