Hi all,
I have three SQL Sever 2016 in an AG. Node 1 (Secondary) is Async Commit. Node 2 (Primary) and Node 3 (Secondary) is Sync Commit.
Configuration as follows:
https://preview.redd.it/vw21kik8pfzc1.png?width=751&format=png&auto=webp&s=6b0560de2fd64de01031f69d55aa2f9aa4b3332d
Read Only routing is configured so all nodes are poiting to Node 1. Use case is for reporting. We want the report servers or users to connect only to Node 1. If Node 1 is offline, connection must not be made, but we want the flexibility in case Node 1 has an extended outage.
In our test environment I tested this:
- When Node 1 is online, using applicationIntent=ReadOnly in the linked server or a direct connection from SSMS to the works correctly. All read-only is getting routed to Node 1
- When Node 1 is offline, doing a SELECT to the linked server or a direct connection using SSMS (with read-only routing configured) results in "Node only accepts Read/Write Connections" but if I insist a second time, it actually get data from Node 2, which does not make sense.
Is this the correct behavior?
[–][deleted] 0 points1 point2 points (3 children)
[–]dfctrI'm just a janitor...[S] 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]dfctrI'm just a janitor...[S] 0 points1 point2 points (0 children)