-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathjs-replication.txt
101 lines (64 loc) · 2.64 KB
/
js-replication.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
===================
Replication Methods
===================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
.. include:: /includes/extracts/methods-toc-explanation.rst
.. list-table::
:widths: 30,70
:header-rows: 1
* - Name
- Description
* - :method:`rs.add()`
- Adds a member to a replica set.
* - :method:`rs.addArb()`
- Adds an :term:`arbiter` to a replica set.
* - :method:`rs.conf()`
- Returns the replica set configuration document.
* - :method:`rs.freeze()`
- Prevents the current member from seeking election as primary for a period of time.
* - :method:`rs.help()`
- Returns basic help text for :term:`replica set` functions.
* - :method:`rs.initiate()`
- Initializes a new replica set.
* - :method:`rs.printReplicationInfo()`
- Prints a formatted report of the replica set status from the
perspective of the primary.
* - :method:`rs.printSecondaryReplicationInfo()`
- Prints a formatted report of the replica set status from the
perspective of the secondaries.
* - :method:`rs.reconfig()`
- Reconfigures a replica set by applying a new replica set configuration object.
* - :method:`rs.reconfigForPSASet()`
- Safely perform some reconfiguration changes on a
primary-secondary-arbiter (PSA) replica set or on a replica set that
is changing to a PSA architecture.
* - :method:`rs.remove()`
- Remove a member from a replica set.
* - :method:`rs.status()`
- Returns a document with information about the state of the replica set.
* - :method:`rs.stepDown()`
- Causes the current :term:`primary` to become a secondary which forces an :term:`election`.
* - :method:`rs.syncFrom()`
- Sets the member that this replica set member will sync from, overriding the default sync target selection logic.
.. toctree::
:titlesonly:
:hidden:
rs.add </reference/method/rs.add>
rs.addArb </reference/method/rs.addArb>
rs.conf </reference/method/rs.conf>
rs.freeze </reference/method/rs.freeze>
rs.help </reference/method/rs.help>
rs.initiate </reference/method/rs.initiate>
rs.printReplicationInfo </reference/method/rs.printReplicationInfo>
rs.printSecondaryReplicationInfo </reference/method/rs.printSecondaryReplicationInfo>
rs.reconfig </reference/method/rs.reconfig>
rs.reconfigForPSASet </reference/method/rs.reconfigForPSASet>
rs.remove </reference/method/rs.remove>
rs.status </reference/method/rs.status>
rs.stepDown </reference/method/rs.stepDown>
rs.syncFrom </reference/method/rs.syncFrom>