/
js-replication.txt
104 lines (65 loc) · 2.47 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
102
103
104
===================
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.printSlaveReplicationInfo()`
- .. include:: /includes/deprecated-rs.printSlaveReplicationInfo.rst
* - :method:`rs.reconfig()`
- Re-configures a replica set by applying a new replica set configuration object.
* - :method:`rs.remove()`
- Remove a member from a replica set.
* - :method:`rs.secondaryOk()`
- .. include:: /includes/fact-setSecondaryOk.rst
* - :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:
/reference/method/rs.add
/reference/method/rs.addArb
/reference/method/rs.conf
/reference/method/rs.freeze
/reference/method/rs.help
/reference/method/rs.initiate
/reference/method/rs.printReplicationInfo
/reference/method/rs.printSecondaryReplicationInfo
/reference/method/rs.printSlaveReplicationInfo
/reference/method/rs.reconfig
/reference/method/rs.remove
/reference/method/rs.secondaryOk
/reference/method/rs.status
/reference/method/rs.stepDown
/reference/method/rs.syncFrom