Repository navigation
MongoDB readPreferenceTags support #69690
thazellKnowBe4
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
In our usecase with teleport and MongoDB we want to be able to target nodes by tags, this enables us to specificly target ANALYTICS nodes when using mongodb atlas.
Currently only the
readPreferencequery param is respected withreadPreferenceTagsbeing silently dropped. An example connection string might look likemongodb://host:port/admin?readPreference=secondary&readPreferenceTags=nodeType:ANALYTICSI have a (as of yet untested) set of changes here that should accomplish this, but i wanted to start a discussion on if this was a change you would accept before opening an MR.
Thanks
All reactions