File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,9 @@ A replica set named ``rs0`` has the following configuration:
307
307
}
308
308
}
309
309
310
+ Change Replica Set Member Priority
311
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312
+
310
313
The following sequence of operations updates the
311
314
:rsconf:`members[n].priority` of the second member. The operations are
312
315
issued through a :binary:`~bin.mongosh` session that is connected to
@@ -402,6 +405,24 @@ the primary.
402
405
}
403
406
}
404
407
408
+ Change Replica Set Settings
409
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
410
+
411
+ You can also modify the cluster replica set :rsconf:`settings` document.
412
+ The :rsconf:`settings` document contains configuration options that
413
+ apply to the whole replica set.
414
+
415
+ The following sequence of operations updates the
416
+ :rsconf:`settings.heartbeatTimeoutSecs` of the cluster to ``15``.
417
+ The operations are issued through a :binary:`~bin.mongosh` session
418
+ that is connected to the primary.
419
+
420
+ .. code-block:: javascript
421
+
422
+ cfg = rs.conf();
423
+ cfg.settings.heartbeatTimeoutSecs = 15;
424
+ rs.reconfig(cfg);
425
+
405
426
.. seealso::
406
427
407
428
- :method:`rs.conf()`
You can’t perform that action at this time.
0 commit comments