Configuring automatic switchover

Note  This feature requires the Standby Server with Automatic Failover add-on.

With automatic switchover, the standby server takes over from the primary server without administrator action. On the primary server, you choose when a switchover starts: when the Database Server quits unexpectedly, when the primary server is unreachable, or both. You can also set a virtual IP address, which lets clients connect to whichever server is currently the primary server. The virtual IP address is required for a switchover when the primary server is unreachable.

Before you begin

  • Set up the primary server and the standby server. See Installing a standby server in the FileMaker Server Installation and Configuration Guide and Setting up a primary server and a standby server.

  • Ask your network administrator to reserve a static IP address to use as the virtual IP address. Clients use the virtual IP address to connect to whichever server is currently the primary server. The address must be on the same subnet as a network interface on the primary server. Ask your network administrator to also map a fully qualified domain name to the virtual IP address in DNS, so clients can connect by name.

  • Windows: To create a new failover cluster, also reserve a static IP address for the cluster access point address. It must be different from the virtual IP address. If the server already belongs to a failover cluster, you don't need this address. Also complete the prerequisites in Configuring a Windows failover cluster.

To turn on automatic switchover:

  1. In Admin Console on the primary server, click the Connectors > Standby Server tab.

  2. Under Automatic Switchover, turn on one or both of these options:

    • When Database Server Quits: The primary server starts a switchover when its Database Server quits unexpectedly. Stopping the Database Server manually doesn't start a switchover.

    • When Primary Server Is Unreachable: The standby server starts a switchover when the primary server is unreachable, for example because the primary server is turned off or the network connection is lost.

    Note  If you turn on When Primary Server Is Unreachable, it's recommended that you also turn on When Database Server Quits.

  3. If you turned on When Primary Server Is Unreachable, a Virtual IP Address is required. Enter it, then click Save.

    If you turned on only When Database Server Quits, the address is optional.

    Windows: Instead of saving the address, click Create Cluster, then enter the virtual IP address and the cluster access point address. See Configuring a Windows failover cluster.

To choose what happens after a switchover:

  1. In Admin Console on the primary server, click the Connectors > Standby Server tab.

  2. Under Automatic Switchover, for Switchover Behavior, click Configure.

    This option is available only when the primary server is connected to the standby server.

  3. In the Configure Automatic Switchover Behavior dialog, turn these settings on or off:

    • Reconnect Remote Backup Drive: Reconnects the remote backup drive after the switchover. This can make the switchover take longer. If this is off, or if the drive can't be reconnected, you must connect the remote backup drive again. This setting is available only if a remote backup drive is configured. See Setting up remote backup.

    • Continue Generating Redo Logs: After a switchover, the new primary server continues generating redo logs. FileMaker Server can apply these changes to the old primary server, so if you switch back, it doesn't need to copy all the databases again.

    • Set Old Primary as Standby: This setting doesn't apply to an automatic switchover. It sets only the default for a manual switchover that you start from the standby server.

      After a manual switchover, the old primary server becomes a standby server. It stops hosting databases, disconnects all clients, and turns off progressive backup. Select this option so the old primary server doesn't remain a second server with the primary role. If you don't select this option, the old primary server keeps its primary role but doesn't host databases. See Managing the old primary server after a switchover.

  4. Click Close.

Changes to these settings are sent to the standby server and become the default choices when you start a switchover manually from there. Reconnect Remote Backup Drive and Continue Generating Redo Logs are also used when a switchover starts automatically.

To confirm that the servers are ready:

Before you rely on automatic switchover, on the Connectors > Standby Server tab, confirm that:

  • Last Sync shows a recent time, which means the standby server has recent data from the primary server.

  • The Switchover button is available on the standby server.

  • If you set a virtual IP address, the status next to Virtual IP Address is Running, which means the address is active on the primary server.

Note  After you connect or reconnect the servers, an automatic switchover that starts when the Database Server quits isn't available until the next standby server backup interval completes. Windows: The same applies when the primary server is unreachable.

After an automatic switchover

After an automatic switchover, Admin Console shows a banner on the old primary server when possible and sends a notification on the standby server. See Managing the old primary server after a switchover.

Notes  

  • Turning off When Primary Server Is Unreachable stops the primary server from serving the virtual IP address. In Windows, the failover cluster stays in place (see Configuring a Windows failover cluster).

  • If you remove the standby server while When Primary Server Is Unreachable is on, the virtual IP address might stay unreachable. See Configuring a primary server.

  • Redo logs record the changes made to the hosted databases. FileMaker Server also uses them to keep progressive backups up to date. See Understanding local backup options. If Continue Generating Redo Logs is on, the new primary server keeps recording changes after the switchover. If you later switch back to the old primary server, FileMaker Server can apply those changes to it instead of copying all the databases again.