Fortinet black logo

Cookbook

Configuring HA

Copy Link
Copy Doc ID 9538f879-a447-11ea-8b7d-00505692583a:894745
Download PDF

Configuring HA

  1. Go to System > High Availability > Configuration.
  2. Under HA Configuration, set Mode of operation to primary if the FortiMail unit is the primary unit in the active-passive group. Select secondary if the FortiMail unit is the secondary unit.
  3. Set On failure to wait for recovery then restore secondary role. On recovery, the failed primary unit’s effective HA mode of operation becomes secondary, and the secondary unit assumes the primary role.
  4. Enter a Shared password. This password must be the same for both the primary and secondary units.
  5. Expand Advanced options to configure backup options. Backup options only appear if you have selected either the primary or secondary mode of operation.
  6. Note that any backup settings configured are not synchronized across the active-passive group. To use this feature you must enable it on both primary and secondary units.

  7. Enter an HA base port value (20000 by default). This will be used for the heartbeat signal, and synchronization control, including data and configuration synchronization.
  8. Note that, for active-passive HA groups, in addition to configuring the heartbeat, you can configure service-based failover and monitoring. For more information, see the FortiMail Administration Guide.

  9. Set Heartbeat lost threshold to the total duration of time in seconds that the primary unit can be unresponsive before it triggers a failover, and the secondary unit assumes the role of the primary unit.
  10. Be sure not to set this value to too short a duration, as the secondary unit may falsely detect a failure during periods of high load.

    Conversely, if the failure detection time is too long, the primary unit could fail and a delay in detecting the failure could mean that email is delayed or lost. Decrease the failure detection time if email is delayed or lost because of an HA failover.

  11. Enable Remote services as heartbeat to use remote services monitoring as a secondary HA heartbeat.
  12. Click Apply.

Configuring HA

  1. Go to System > High Availability > Configuration.
  2. Under HA Configuration, set Mode of operation to primary if the FortiMail unit is the primary unit in the active-passive group. Select secondary if the FortiMail unit is the secondary unit.
  3. Set On failure to wait for recovery then restore secondary role. On recovery, the failed primary unit’s effective HA mode of operation becomes secondary, and the secondary unit assumes the primary role.
  4. Enter a Shared password. This password must be the same for both the primary and secondary units.
  5. Expand Advanced options to configure backup options. Backup options only appear if you have selected either the primary or secondary mode of operation.
  6. Note that any backup settings configured are not synchronized across the active-passive group. To use this feature you must enable it on both primary and secondary units.

  7. Enter an HA base port value (20000 by default). This will be used for the heartbeat signal, and synchronization control, including data and configuration synchronization.
  8. Note that, for active-passive HA groups, in addition to configuring the heartbeat, you can configure service-based failover and monitoring. For more information, see the FortiMail Administration Guide.

  9. Set Heartbeat lost threshold to the total duration of time in seconds that the primary unit can be unresponsive before it triggers a failover, and the secondary unit assumes the role of the primary unit.
  10. Be sure not to set this value to too short a duration, as the secondary unit may falsely detect a failure during periods of high load.

    Conversely, if the failure detection time is too long, the primary unit could fail and a delay in detecting the failure could mean that email is delayed or lost. Decrease the failure detection time if email is delayed or lost because of an HA failover.

  11. Enable Remote services as heartbeat to use remote services monitoring as a secondary HA heartbeat.
  12. Click Apply.