Skip to content

Conversation

timvaillancourt
Copy link
Contributor

@timvaillancourt timvaillancourt commented Sep 14, 2017

NOTE: this PR requires #208 to be merged (SSL support) - both PRs touch similar files so 208 was integrated here to avoid merge conflicts.

Support key:value pairs (comma-separated) to set read preference for backup. This will allow much more flexibility in backup architecture and can be used to implement geo/datacenter awareness, finer-grained control over selected backup nodes, etc.

All shards (or single replset) must have at least one host matching the tags or the server selection will throw an exception, failing the backup (due to no selected node).

New RP flag:

  --replication.read_pref_tags REPLICATION.READ_PREF_TAGS
                        Only use members that match replication tags in comma-
                        separated key:value format (default: none)

This PR involved adding RP tag support to Common/DB.py and the Backup/Mongodump/*.py files as well as README and config files.

@timvaillancourt timvaillancourt added this to the 1.2.0 milestone Sep 14, 2017
@dbmurphy dbmurphy merged commit 341904f into Percona-Lab:master Sep 21, 2017
@timvaillancourt timvaillancourt deleted the 1.2.0-read_pref_tags branch September 21, 2017 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants