Skip to content

Commit 7746ff0

Browse files
erabil-mdbjwilliams-mongo
authored andcommitted
(DOCSP-40116) Adds new FCV functionality. (#1854)
* (DOCSP-40116) Adds new FCV functionality. * Revises per copy and tech reviews.
1 parent b903c5c commit 7746ff0

11 files changed

+37
-78
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. note::
2+
3+
If you update this value to a later version of MongoDB for your
4+
database resources, the feature compatibility version remains
5+
at the MongoDB version you're upgrading from to give you the option to downgrade if necessary.
6+
If you want the feature compatibility version to match the new MongoDB version, you must manually set
7+
:setting:`spec.featureCompatibilityVersion` to the new version or to ``AlwaysMatchVersion``.
8+
To learn more, see :setting:`spec.featureCompatibilityVersion`.

source/includes/om-upgrade-master-version.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ a. Set :opsmgrkube:`spec.version` to the new |onprem| version.
44
:opsmgrkube:`spec.applicationDatabase.version` to the compatible MongoDB
55
version.
66

7-
c. *(Optional)* If you might need to downgrade, set
8-
:setting:`spec.featureCompatibilityVersion`.
9-
107

118
.. literalinclude:: /reference/k8s/example-ops-manager.yaml
129
:language: yaml

source/includes/setting-k8sRsConf-spec.backup.snapshotSchedule.clusterCheckpointIntervalMin.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
Number of minutes between successive cluster checkpoints. This setting
7-
applies only to sharded clusters that run MongoDB with FCV of 4.0 or
7+
applies only to sharded clusters that run MongoDB with a feature compatibility version of 4.0 or
88
earlier. This number determines the granularity of point-in-time
99
restores for sharded clusters. You can set a value of ``15``, ``30``,
1010
or ``60``.

source/includes/setting-k8sRsConf-spec.version.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66

77
.. include:: /includes/admonitions/ubi-8-min-db-versions.rst
88

9-
.. note::
10-
11-
If you update this value to a later version of MongoDB for your
12-
database resources, the Feature Compatibility Version (FCV) changes
13-
automatically to this version unless you set :setting:`spec.featureCompatibilityVersion`
14-
to the original version. Consider setting :setting:`spec.featureCompatibilityVersion`
15-
to the original version to give yourself the option to downgrade if necessary.
9+
.. include:: /includes/facts/fact-fcv-setting.rst
1610

1711

source/includes/setting-k8sSaConf-spec.featureCompatibilityVersion.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,21 @@
22

33
*Type*: string
44

5+
*Defaults to the prior major MongoDB version after MongoDB upgrade.*
56

67
Limits changes to data that occur with an upgrade to a
7-
new major version. This allows you to downgrade to the previous major
8-
version. To learn more about feature compatibility, see
9-
:dbcommand:`setFeatureCompatibilityVersion` in the MongoDB Manual.
8+
new major version. For example, if you upgrade from MongoDB 5.0 to MongoDB 6.0,
9+
the feature compatibility version remains
10+
at 5.0 to give you the option to downgrade if necessary.
11+
12+
If you want the feature compatibility version to match the new MongoDB version, you must manually set ``featureCompatibilityVersion``
13+
to the new version.
14+
For example, ``featureCompatibilityVersion: 6.0``.
1015

16+
Alternatively, you can enable the ``AlwaysMatchVersion`` option to automatically
17+
update the feature compatibility version to match the MongoDB version during upgrades.
18+
For example, ``featureCompatibilityVersion: AlwaysMatchVersion``.
1119

20+
To learn more about feature compatibility, see
21+
:dbcommand:`setFeatureCompatibilityVersion` in the MongoDB Manual.
22+

source/includes/setting-k8sSaConf-spec.version.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66

77
.. include:: /includes/admonitions/ubi-8-min-db-versions.rst
88

9-
.. note::
10-
11-
If you update this value to a later version of MongoDB for your
12-
database resources, the Feature Compatibility Version (FCV) changes
13-
automatically to this version unless you set :setting:`spec.featureCompatibilityVersion`
14-
to the original version. Consider setting :setting:`spec.featureCompatibilityVersion`
15-
to the original version to give yourself the option to downgrade if necessary.
9+
.. include:: /includes/facts/fact-fcv-setting.rst
1610

1711

source/includes/setting-k8sScConf-spec.version.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66

77
.. include:: /includes/admonitions/ubi-8-min-db-versions.rst
88

9-
.. note::
10-
11-
If you update this value to a later version of MongoDB for your
12-
database resources, the Feature Compatibility Version (FCV) changes
13-
automatically to this version unless you set :setting:`spec.featureCompatibilityVersion`
14-
to the original version. Consider setting :setting:`spec.featureCompatibilityVersion`
15-
to the original version to give yourself the option to downgrade if necessary.
9+
.. include:: /includes/facts/fact-fcv-setting.rst
1610

1711

source/includes/steps-upgrade-mdb.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ inherit:
55
file: steps-upgrade-master.yaml
66
ref: upgrade-master-version
77
replacement:
8-
method: "Change the settings in the :ref:`k8s-specification` as shown in the following example:"
8+
method: "Set :setting:`spec.version` to the desired MongoDB version."
99
content: |
1010
11-
a. Set :setting:`spec.version` to the desired MongoDB version.
12-
13-
#. Set :setting:`spec.featureCompatibilityVersion` to the current
14-
working MongoDB version:
15-
1611
.. code-block:: yaml
1712
1813
---
@@ -22,21 +17,12 @@ content: |
2217
name: my-standalone-downgrade
2318
spec:
2419
version: "4.4.18-ent"
25-
featureCompatibilityVersion: "4.2"
2620
type: Standalone
2721
project: my-project
2822
credentials: my-credentials
2923
persistent: false
3024
...
3125
32-
The following example shows the result of this change:
33-
34-
.. code-block:: yaml
35-
36-
spec:
37-
version: "4.4.18-ent"
38-
featureCompatibilityVersion: "4.2"
39-
4026
---
4127
ref: apply
4228
inherit:

source/reference/k8s-operator-multi-cluster-specification.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ This section describes settings that you must use for your |mongodb-multi|.
8080

8181
.. include:: /includes/admonitions/ubi-8-min-db-versions.rst
8282

83-
.. note::
84-
85-
If you update this value to a later version, consider setting
86-
:ref:`spec.featureCompatibilityVersion <multi-spec-fcv>` to give yourself the
87-
option to downgrade if necessary.
88-
89-
9083
.. _optional-multi-k8s-settings:
9184

9285
Optional ``MongoDBMultiCluster`` Resource Settings

source/reference/k8s-operator-om-specification.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,8 +1529,10 @@ configure your |onprem| {+appdb+}.
15291529
.. note::
15301530

15311531
If you update this value to a later version of MongoDB for the
1532-
{+appdb+}, the Feature Compatibility Version (FCV) *does
1533-
not change* unless you also specify the
1532+
{+appdb+}, the feature compatibility version remains at the MongoDB version
1533+
you're upgrading from to give you the option to downgrade if necessary.
1534+
If you want the feature compatibility version to match the new MongoDB version,
1535+
you must manually set the
15341536
``featureCompatibilityVersion``
15351537
parameter under :opsmgrkube:`spec.applicationDatabase`.
15361538

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _meko-upgrade-mdb-version:
22

3-
===============================
4-
Upgrade MongoDB Version and FCV
5-
===============================
3+
=======================
4+
Upgrade MongoDB Version
5+
=======================
66

77
.. default-domain:: mongodb
88

@@ -12,7 +12,7 @@ Upgrade MongoDB Version and FCV
1212
:depth: 2
1313
:class: singlecol
1414

15-
You can upgrade the major, minor, or feature compatibility versions of
15+
You can upgrade the major or minor versions of
1616
your MongoDB resource. Configure these settings in your :ref:`k8s-specification`.
1717

1818
Overview
@@ -21,32 +21,12 @@ Overview
2121
To upgrade your resource's major or minor versions, set the
2222
:setting:`spec.version` setting to the desired MongoDB version.
2323

24-
To modify your resource's
25-
:manual:`feature compatibility version </reference/command/setFeatureCompatibilityVersion/>`,
26-
set the :setting:`spec.featureCompatibilityVersion` setting to the desired
27-
version.
28-
29-
.. note::
30-
31-
If you update ``spec.version`` to a later version, consider setting
32-
:setting:`spec.featureCompatibilityVersion` to the current working
33-
MongoDB version to give yourself the option to downgrade if
34-
necessary. To learn more about feature compatibility, see
35-
:dbcommand:`setFeatureCompatibilityVersion` in the MongoDB Server
36-
Documentation.
24+
.. include:: /includes/facts/fact-fcv-setting.rst
3725

3826
Procedure
3927
---------
4028

4129
To upgrade the standalone deployment's MongoDB version from ``4.2.2-ent``
42-
to ``4.4.18-ent``, complete the steps in the following syntactic example.
43-
44-
If you update ``spec.version`` to a later version without setting the
45-
:setting:`spec.featureCompatibilityVersion` to any value, the Feature
46-
Compatibility Version (FCV) upgrades to the **same version** that you specify
47-
in ``spec.version``. However, you can explicitly specify a previous
48-
version for the FCV. The following example illustrates this use case.
49-
It sets ``spec.version`` to ``4.4.18-ent`` and
50-
:setting:`spec.featureCompatibilityVersion` to ``4.2``.
30+
to ``4.4.18-ent``, complete the steps in the following example.
5131

5232
.. include:: /includes/steps/upgrade-mdb.rst

0 commit comments

Comments
 (0)