Skip to content

sp_Blitz: warn if read-only routing for an Always On availability group is probably intended but broken #3749

@ReeceGoding

Description

@ReeceGoding

Is your feature request related to a problem? Please describe.
The documentation says

For each readable secondary replica that is to support read-only routing, you need to specify a read-only routing URL.

However, it is entirely possible to set up a replica to only allow read-only connections even though you do not have a read-only routing URL set. I presume the intended use case is for people who want to connect to a replica directly and query the replica that way, but don't want the node in the routing list due to concerns like licencing. In my experience, I find it more likely that anyone with this set up did it by mistake and wrongly thinks that they have read-only routing enabled.

Describe the solution you'd like
If sys.availability_replicas says a node is READ_ONLY but has read_only_routing_url as NULL, have sp_Blitz give a very low priority "Are you sure?" warning.

It would be really nice if I could set up a Docker demonstration that read-only routing is indeed broken in the case I describe.

Describe alternatives you've considered
Just leave it alone.

Are you ready to build the code for the feature?
As much as we'd love to build everything that everyone wants for free, we need your help. Open source is built with your help and code. Are you ready to commit time to this project? Have you got existing code you can help contribute to solve the problem?
Sure. My only worries are that this may not be the only way to break read-only routing or even a good way to confirm it is broken.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions