forked from mongodb/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiargs-command-replSetStepDown-field.yaml
52 lines (47 loc) · 1.53 KB
/
apiargs-command-replSetStepDown-field.yaml
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
arg_name: field
description: |
The number of seconds to step down the primary, during which time the
stepdown member is ineligible for becoming primary. If you specify a
non-numeric value, the command uses ``60`` seconds.
The stepdown period starts from the time that the
:program:`mongod` receives the command. The stepdown period must
be greater than the ``secondaryCatchUpPeriodSecs``.
interface: command
name: replSetStepDown
operation: replSetStepDown
optional: false
position: 1
type: number
---
arg_name: field
description: |
The number of seconds that the :program:`mongod` will wait for
an electable secondary to catch up to the primary.
When specified, ``secondaryCatchUpPeriodSecs`` overrides the default
wait time of either ``10`` seconds or if ``force: true``, ``0``
seconds.
interface: command
name: secondaryCatchUpPeriodSecs
operation: replSetStepDown
optional: true
position: 2
type: number
---
arg_name: field
description: |
A boolean that determines whether the primary steps down if no electable
and up-to-date secondary exists within the wait period.
If ``true``, the primary steps down even if no suitable secondary
member exists; this could lead to :doc:`rollbacks
</core/replica-set-rollbacks>` if a secondary with replication lag
becomes the new primary.
If ``false``, the primary does not step down if no suitable secondary
member exists and the command returns an error.
Defaults to ``false``.
interface: command
name: force
operation: replSetStepDown
optional: true
position: 3
type: boolean
...