File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ A replica set named ``rs0`` has the following configuration:
180
180
}
181
181
}
182
182
183
+ Change Replica Set Member Priority
184
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
185
+
183
186
The following sequence of operations updates the
184
187
:rsconf:`members[n].priority` of the second member.
185
188
The operations are issued through a :binary:`~bin.mongo` shell connected to
@@ -275,7 +278,25 @@ the primary.
275
278
}
276
279
}
277
280
278
- .. seealso::
281
+ Change Replica Set Settings
282
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
283
+
284
+ You can also modify the cluster replica set :rsconf:`settings` document.
285
+ The :rsconf:`settings` document contains configuration options that
286
+ apply to the whole replica set.
287
+
288
+ The following sequence of operations updates the
289
+ :rsconf:`settings.heartbeatTimeoutSecs` of the cluster to ``15``.
290
+ The operations are issued through a :binary:`~bin.mongosh` session
291
+ that is connected to the primary.
292
+
293
+ .. code-block:: javascript
294
+
295
+ cfg = rs.conf();
296
+ cfg.settings.heartbeatTimeoutSecs = 15;
297
+ rs.reconfig(cfg);
298
+
299
+ .. seealso::
279
300
280
301
- :method:`rs.conf()`
281
302
You can’t perform that action at this time.
0 commit comments