Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

SQL2016 Configuring Always ON to use Round Robin Mechanism for Read queries

$
0
0

I have downloaded evaluation version of SQL2016 to test the Always ON especially the round Robin Mechanism.

Configured Always ON with Two nodes and updated the Always ON to route the read queries to secondary node. . All the read queries from the application are still going to NODE1 after the below changes.  Am i missing some thing..?

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE1'

WITH

(

      SECONDARY_ROLE(ALLOW_CONNECTIONS=READ_ONLY)

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE2'

WITH

(

      SECONDARY_ROLE(ALLOW_CONNECTIONS=READ_ONLY)

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE1'WITH

(

      SECONDARY_ROLE(READ_ONLY_ROUTING_URL=N'TCP://NODE1.xxxx.local:5022')

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE2'WITH

(

      SECONDARY_ROLE(READ_ONLY_ROUTING_URL=N'TCP://NODE2.xxxx.local:5022')

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON'NODE1'

WITH

(

PRIMARY_ROLE

(

READ_ONLY_ROUTING_LIST=('NODE2')

)

);

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON'NODE2'

WITH

(

PRIMARY_ROLE

(

READ_ONLY_ROUTING_LIST=('NODE1')

)

);


VenkatRaju K


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>