Skip to content

Commit 0f57e79

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-29505-live-update (#155)
* DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * DOCSP-29505-live-update * Updated 1.7.txt with release date --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent bc8b094 commit 0f57e79

File tree

5 files changed

+83
-6
lines changed

5 files changed

+83
-6
lines changed

source/includes/live-upgrade.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Starting in ``mongosync`` 1.7.0, you can upgrade ``mongosync`` without
2+
restarting data synchronization operations from the beginning. You can
3+
only live upgrade from ``mongosync`` 1.6.0 or later to ``mongosync``
4+
1.7.0 or later.

source/reference/mongosync.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ System Collections
259259

260260
.. include:: /includes/collections/behavior-system-collections.rst
261261

262+
.. _c2c-mongosync-examples:
263+
262264
Examples
263265
--------
264266

source/reference/versioning.txt

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,74 @@ released, version 2.0 would no longer receive patch releases. At the
8383
same time, version 1.3 would continue to receive patches until version
8484
1.4 was released.
8585

86-
Upgrade and Downgrade
87-
~~~~~~~~~~~~~~~~~~~~~
86+
.. _c2c-versioning-live-upgrade:
8887

89-
To upgrade, or downgrade ``mongosync``:
88+
Live Upgrade
89+
~~~~~~~~~~~~
90+
91+
.. versionadded:: 1.7.0
92+
93+
.. include:: /includes/live-upgrade.rst
94+
95+
After the live upgrade, ``mongosync`` continues operations that were in
96+
progress before the upgrade.
97+
98+
To live upgrade ``mongosync``, perform these steps:
99+
100+
.. procedure::
101+
:style: normal
102+
103+
.. step:: (Optional) Pause the ``mongosync`` processes
104+
105+
To pause ``mongosync``, run :ref:`c2c-api-pause` on each running
106+
``mongosync`` process.
107+
108+
You can resume the ``mongosync`` processes later from the paused
109+
state, as shown in the final step.
110+
111+
.. tip::
112+
113+
If you don't want to immediately resume data synchronization
114+
operations after live upgrade, consider pausing the
115+
``mongosync`` processes. This is useful if you're coordinating
116+
operations from multiple ``mongosync`` processes.
117+
118+
.. step:: Stop the ``mongosync`` processes
119+
120+
Use your operating system to stop each running ``mongosync``
121+
process. To stop a process, see your operating system
122+
documentation for the specific steps.
123+
124+
.. step:: Download and install the new ``mongosync`` binaries
125+
126+
To download and install the new ``mongosync`` binaries, see
127+
:ref:`download and install mongosync <c2c-install>`.
128+
129+
.. step:: Initialize the ``mongosync`` processes
130+
131+
To initialize the ``mongosync`` processes, see the :ref:`mongosync
132+
examples <c2c-mongosync-examples>`. During initialization after a
133+
live upgrade, ``mongosync`` updates the persistent metadata.
134+
135+
.. step:: Resume the ``mongosync`` processes
136+
137+
If you paused any ``mongosync`` processes earlier in the optional
138+
first step, run :ref:`c2c-api-resume` on all ``mongosync``
139+
processes.
140+
141+
If a data synchronization operation was already in progress before the
142+
live upgrade, new features added in the latest ``mongosync`` version may
143+
not all be supported after the live upgrade. Performance improvements
144+
and bug fixes are always supported after the live upgrade. For more
145+
information on the new features that might be supported after a live
146+
upgrade, see the :ref:`1.7.0-c2c-release-notes`.
147+
148+
Non-Live Upgrade or Downgrade
149+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150+
151+
If you're using an earlier ``mongosync`` version not supported by the
152+
live upgrade procedure, or you need to downgrade ``mongosync``, perform
153+
these steps:
90154

91155
- Stop all currently running ``mongosync`` processes.
92156
- Drop all non-system databases in the destination cluster.

source/release-notes/1.6.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _c2c-release-notes-1.6:
22

3-
===================================
3+
===============================
44
Release Notes for mongosync 1.6
5-
===================================
5+
===============================
66

77

88
.. default-domain:: mongodb

source/release-notes/1.7.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ Release Notes for mongosync 1.7
1717
1.7.0 Release
1818
-------------
1919

20-
**Upcoming**
20+
**October 18, 2023**
21+
22+
Live Upgrade
23+
~~~~~~~~~~~~
24+
25+
.. include:: /includes/live-upgrade.rst
26+
27+
For details, see :ref:`c2c-versioning-live-upgrade`.
2128

2229
Synchronize Data Between Clusters with Different MongoDB Server Major Versions
2330
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)