Forum Discussion

mlwebster's avatar
mlwebster
Icon for Cirrus rankCirrus
Aug 10, 2026

Finding the Primary Replica of an Availability Group

Hi All,

I've configured VIPs and a WIP for a SQL Always On service and would like to ensure traffic is directed to the current Primary Replica wherever possible.

The configuration is as follows:

  • DC1 hosts a SQL server and a corresponding VIP.
  • DC2 hosts a SQL server and a corresponding VIP.
  • The WIP currently directs traffic to the DC1 VIP using Global Availability, with a fallback to Round Robin if required.

Does anyone know of a way for the F5 infrastructure to identify which SQL Always On replica is currently the Primary Replica and automatically direct clients to the associated VIP across the two data centres?

Any advice or experience with this would be greatly appreciated.

Thanks in advance.

No RepliesBe the first to reply