Prerequisites, Restrictions, and Recommendations for AlwaysOn Client Connectivity (SQL Server)
This topic describes considerations for client connectivity to AlwaysOn Availability Groups, including prerequisites, restrictions, and recommendations for client configurations and settings.
In this Topic:
-
Availability Group Listeners: Limitations and Recommendations
-
Windows Hotfixes that Support Client Connectivity to Availability Groups
-
Server Instance Prerequisites for Supporting Client Connections to Availability Groups
-
Troubleshoot Failure to Create an Availability Group Listener Because of Active Directory Quotas
The SQL Server 2012 Release Notes provides information about AlwaysOn Availability Groups support for client connectivity, as follows::
-
Driver support
-
MultiSubnetFailover keyword and associated features
-
Workarounds for using ADO.NET with .NET Framework 4.0 or SQL Native Client 11.0 OLEDB for multi-subnet failover.
For more information, see "5.7.1 Client-Connectivity for AlwaysOn Availability Groups" in the SQL Server 2012 Release Notes.
-
Availability group listeners support only the TCP/IP protocol. To connect to an availability group listener, a client must use a TCP connection string.
-
To avoid potential NetBIOS conflicts, we recommend that you use a unique 15-character prefix for every availability group listener name. If two WSFC clusters are controlled by the same Active Directory and you try to create availability group listeners in both clusters using names with more than 15 characters and with an identical 15 character prefix, you will get an error reporting that the Virtual Network Name resource could not be brought online.
For information about prefix naming rules for DNS names, see Assigning Domain Names, in the Windows Server 2008 and Windows Server 2008 R2 documentation.
Depending on your cluster topology, several additional Windows Server 2008 Service Pack 2 (SP2) or Windows Server 2008 R2 hotfixes might be applicable for supporting connections to availability groups. The following table identifies these hotfixes. The hotfixes can be installed in any order.
Note
|
|---|
|
For information about all the hotfixes that support AlwaysOn Availability Groups, see Prerequisites, Restrictions, and Recommendations for AlwaysOn Availability Groups (SQL Server). |
|
|
Applies to Win 2008 SP2 |
Applies to Win 2008 R2 SP1 |
To Support… |
Hotfix |
Link |
|---|---|---|---|---|---|
|
|
√ |
√ |
Internet Protocol Security (IPsec) |
If your environment uses IPsec connections, you could experience a long time delay (about two or three minutes) when a client computer reestablishes the IPsec connection to a virtual network name (in this context, to connect to the availability group listener). If you use IPsec connections, we recommend that you review the specific scenarios detailed in Knowledge Base article (KB 980915). |
|
|
|
√ |
√ |
IPv6 |
If your Windows Server topology uses IP version 6 (IPv6), the WSFC Cluster service requires about 30 seconds to fail over the IPv6 IP address. This causes clients to wait for about 30 seconds to reconnect to the IPv6 IP address. If you use IPv6, we recommend that you review the specific scenarios detailed in Knowledge Base article 2578103 or 2578113, depending on your Windows Server operating system. |
|
|
|
√ |
√ |
No Router Between cluster and application server |
If no router exists between the failover cluster and the application server, the Cluster service fails over network-related resources slowly. This delays client reconnections after an availability group fails over. In the absence of a router, we recommend that you review the specific scenarios detailed in Knowledge Base article 2582281 and install the hotfix, if applicable to your environment. |
KB 2582281: Slow failover operation if no router exists between the cluster and an application server |
|
|
|
√ |
Faster failover to local replicas |
If a WSFC node is running Windows Server 2008 R2 Service Pack 1 (SP1), ensure that the hotfix described in Knowledge Base article 2687741 is installed. This hotfix improves the performance of AlwaysOn Availability Groups failover to local replicas. |
Note
|
|---|
|
For information about all the server-instance prerequisites and requirements for using AlwaysOn Availability Groups, see Prerequisites, Restrictions, and Recommendations for AlwaysOn Availability Groups (SQL Server). |
|
|
To Support… |
Prerequisite |
Links |
||||
|---|---|---|---|---|---|---|---|
|
|
Keberos |
If you want an availability group to work with Kerberos:
|
Register a Service Principal Name for Kerberos Connections Brief explanation: Kerberos and SPNs enforce mutual authentication. The SPN maps to the Windows account that starts the SQL Server services. If the SPN is not registered correctly or if it fails, the Windows security layer cannot determine the account associated with the SPN, and Kerberos authentication cannot be used.
|
The creation of a new availability group listener may fail upon creation because you have reached an Active Directory quota for the participating cluster node machine account. For more information, see the following articles:
For information about the permissions required for creating or modifying an availability group listener, see Create or Configure an Availability Group Listener (SQL Server).
-
Microsoft SQL Server AlwaysOn Solutions Guide for High Availability and Disaster Recovery
-
SQL Server AlwaysOn Team Blog: The official SQL Server AlwaysOn Team Blog
-
Failover Cluster Step-by-Step Guide: Configuring Accounts in Active Directory
-
The Cluster service takes about 30 seconds to fail over IPv6 IP addresses in Windows Server 2008 R2
-
Slow failover operation if no router exists between the cluster and an application server
-
How to troubleshoot the Cluster service account when it modifies computer objects
Note
Important