-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCS-268 removed one option for replacing a replica set #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
:data:`members[n].host` field to reflect the new hostname or port | ||
number. The :data:`members[n]._id` field does not change as a result of this | ||
operation. | ||
.. code-block:: javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line before this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you add the blank line or should I?
On Tue, Sep 4, 2012 at 4:06 PM, Sam Kleinman [email protected]:
In source/administration/replica-sets.txt:
- reused by the new member.
- .. code-block:: javascript
cfg = rs.conf()
cfg.members[0].host = "mongo2.example.net:27019"
+Replacing a member is useful if you have an existing configurationrs.reconfig(cfg)
+and only want to change the hostname of a member rather than completely
+remove all configurations related to the existing/previous set member.
+
+Use :method:rs.reconfig()
to change the value of the
+:data:members[n].host
field to reflect the new hostname or port
+number. The :data:members[n]._id
field does not change as a result of this
+operation.
+.. code-block:: javascriptblank line before this line
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/176/files#r1527042.
* DOCSP-44864-redo-restore-import-if-rollback * reviewer fixes * remove extra space
* DOCSP-20148 fix missing ref link * Change include * Fix substitution
* DOCSP-42896-disable-telemetry * Fixing code block formatting.
…176) * (DOCSP-46128) Adds v2.6.0 RNs + updates compatibility tables. * Revises per tech review. (cherry picked from commit 4c5c504)
No description provided.