As per my understanding when all the secondary read only replicas are shut down, the primary replica is the one that will take all the read write requests and read-only requests as well.
But when I was validating this scenario yesterday, my primary instance didn't take read-only requests from my application server; however, it did take write requests.
My question here is: Will the primary take read-only requests whenever read-only secondaries are not available?
This is an Always On 3-node environment. The configuration properties are:
As shown, all nodes are configured to allow all connections when they are primary.
For all read requests, we are using the listener name and
application intent= read only. For all write requests we use the listener name. We are not using the node name explicitly anywhere. I just tested in my acceptance environment with my application.