SERVER-112278 Add settings.autoPromoteHidden boolean configuration#1622
SERVER-112278 Add settings.autoPromoteHidden boolean configuration#1622honchow wants to merge 1 commit intomongodb:v8.0from
Conversation
|
Currently, the MongoDB service architectures provided by various cloud service providers are almost all 1-master-1-slave and 1-hidden. The hidden nodes are mainly used for data backup. Over the years of our large-scale cluster operation data, we have discovered a serious problem: many users, in order to take advantage of the slave nodes, will configure read-write separation, where the read preference is set to secondary.
|
|
Thanks for making this pull request! We just need a couple of things from you to start our consideration of the PR. Can you please sign our Contributor's Agreement referencing the account that made this PR? This seems like a neat change to have for that use case. |
Thanks — I’ve signed the Contributor’s Agreement referencing the GitHub account that opened this PR. A couple of notes about the PR: I’ll prepare those changes and push an update shortly. |
42d2812 to
bab02fc
Compare
Add
settings.autoPromoteHiddenboolean configuration (default:false):When enabled: Hidden nodes automatically appear in the
hostsarray ofhello/isMasterresponses when all non-hidden secondaries are downWhen disabled: Preserves current behavior (hidden nodes never exposed)
Auto-recovery: Hidden nodes automatically demoted when non-hidden secondaries recover