2 Server Setup

ServerRoleAvailability ModeFailover ModeConnections in Primary RoleReadable SecondarySeeding ModeSession TimeoutEndpoint URL
DB01PrimarySynchronous commitAutomaticAllow all connectionsNoManual180TCP://<servername>:5022
DB02SecondarySynchronous commitAutomaticAllow all connectionsNoManual180TCP://<servername>:5022

3 Server Setup

ServerRoleAvailability ModeFailover ModeConnections in Primary RoleReadable SecondarySeeding ModeSession TimeoutEndpoint URL
DB01PrimarySynchronous commitAutomaticAllow all connectionsNoManual180TCP://<servername>:5022
DB02SecondarySynchronous commitAutomaticAllow all connectionsNoManual180TCP://<servername>:5022
DB03SecondaryAsynchronous commitManualAllow all connectionsYesManual180TCP://<servername>:5022

Note:

  • Set the Failover Mode to
    AUTOMATIC
  • Make the current primary and target secondary replica SYNCHRONOUS_COMMIT
    to avoid any data lost during failover.

Sources:

https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/perform-a-planned-manual-failover-of-an-availability-group-sql-server?view=sql-server-ver15

Last modified: March 22, 2021

Author

Comments

Write a Reply or Comment