question

SaiVijaya avatar image
SaiVijaya asked

Facing connectivity issues with SQL Server 2017 Availability Groups multisubnet IP addresses

Hi Team,

Need urgent help!

We have sql server 2017 always on windows failover cluster. It has 4 nodes, 2 nodes from DC1 (Node1 is primary) and 2 nodes from DC2. Created a listener with multisubnet ip addresses.

The problem is when clients trying to connect listener, it it connecting to multiple addresses. sometimes connecting online IP address sometimes connecting to offline IP address.

How to resolve connectivity issues with SQL Server 2017 Availability Groups.

Thanks in Advance!

always-onmulti-value
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
anthony.green avatar image
anthony.green answered

If your using RegisterAllIPProviders = True on the cluster side your connection strings must use Multisubnetfailover=True option so it will try all IP addresses and route to the correct one.


If your connection drivers cannot understand the multisubnetfailover connection string attribute you must set RegisterAllIPProviders to False then you are at the mercy of DNS to update when you failover to DR for apps to re-establish connections.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.