I am laying out a plan where there will be 3 Node on site with automatic fail over with synchronous mode and 1 remote replica with asynchronous mode. My question is if the primary goes down which node among the remaining 2 replica will be failed over. I will have a file share for node majority with file share quorum.
Sql-server – Automatic fail over in Always on availability group with 3 Node in synchronous mode and 1 Node in Asynchronous Mode
availability-groupsclusteringfailoverhadrsql-server-2012
Related Question
- Sql-server – Cluster Validation on Remote Node
- Sql-server – Failover from Primary to Asyn Secondary Replica
- SQL Server 2016 – AG Group Failover and Quorum Explained
- SQL Server – Quorum Configuration for 3 Node Windows Cluster
- Sql-server – Read only replica part of always on availability group for Reporting
- Domain Controller on Multi Subnet Always on Availability Group
Best Answer
The node that is set to Synchronous with Automatic failover will be the chosen one to failover when the primary goes down. You can only have one node set as the automatic failover target, see the docs for 2014 (it was the same for 2012):
On SQL Server 2016 and newer, you can have a second automatic failover target (it's 3 including the primary):
Remember that an Async replica might have data loss if you try to do a force failover.