Skip to content

Commit 38a679a

Browse files
DOCSP-42765 Backport DOCSP-39441 Regional Backup - API endpoints & Queryable Backup (#323) (#328)
<!-- Add a description of your PR here (optional) --> - [DOCSP-42765](https://jira.mongodb.org/browse/DOCSP-42765) - STAGING: - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/admin/backup/deployment-regions-page/ - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/core/backup-overview - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/reference/api/backup/assign-deployment-region - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/reference/api/backup/create-one-deployment-region-by-id - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/reference/api/backup/create-one-deployment-region - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/reference/api/backup/delete-one-deployment-region-by-id/ - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/reference/api/backup/get-all-deployment-regions - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/reference/api/backup/get-one-backup-config-by-cluster-id - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/reference/api/backup/get-one-deployment-region-by-id - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/tutorial/convert-replica-set-to-sharded-cluster - https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-42765/tutorial/query-backup - [Build](https://workerpool-boxgs.mongodbstitch.com/pages/job.html?collName=queue&jobId=66bfcc6f8e811ae672902444) ### Self-Review Checklist - [ ] [Define](https://wiki.corp.mongodb.com/display/DE/Taxonomy+tagging+instructions) taxonomy [values](https://wiki.corp.mongodb.com/display/DE/Docs+Taxonomy) at top of page. - [ ] Add genre facets (tutorial or reference), as in this [example PR](10gen/cloud-docs#5042). - [ ] Add programmingLanguage (if necessary). - [ ] Add meta keywords (if necessary). - [ ] Resolve any new warnings or errors in the build. - [ ] Proofread for spelling and grammatical errors. - [ ] Check staging for rendering issues. - [ ] Confirm links are working. Co-authored-by: lmkerbey-mdb <[email protected]>
1 parent 46bf44e commit 38a679a

20 files changed

+1143
-32
lines changed

source/admin/backup/deployment-regions-page.txt

Lines changed: 80 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ regions. You then bind backup resources such as :ref:`snapshot stores
2020
</reference/glossary/#std-term-Backup-Daemon>` to these deployment
2121
regions.
2222

23+
.. note::
24+
25+
You can't delete deployment regions that are currently bound to
26+
backup resources.
27+
2328
The deployment region page lists all available deployment regions, and
2429
allows you to define new deployment regions.
2530

@@ -45,6 +50,10 @@ allows you to define new deployment regions.
4550
restore, consider configuring network restrictions for your data
4651
centers.
4752

53+
.. _deployment-regions-add:
54+
55+
Add New Deployment Regions
56+
--------------------------
4857

4958
To define a new deployment region:
5059

@@ -58,31 +67,82 @@ To define a new deployment region:
5867
In the :guilabel:`Set up a Deployment Region`
5968
window, provide values for the following fields:
6069

61-
.. list-table::
62-
:widths: 40 60
63-
:header-rows: 1
70+
.. include:: /includes/list-tables/deployment-regions/deployment-regions-with-id-ui.rst
71+
72+
.. step:: Click :guilabel:`Confirm`.
73+
74+
.. _deployment-regions-edit:
75+
76+
Edit a Deployment Region
77+
------------------------
78+
79+
To make changes to a deployment region, perform the following steps:
6480

65-
* - Field
66-
- Value
81+
.. procedure::
82+
:style: normal
83+
84+
.. step:: Open the modal to edit a deployment region.
85+
86+
For the deployment region that you want to modify:
6787

68-
* - Deployment ID
69-
- Unique identifier that references this deployment region
70-
in configurations.
88+
a. Click the :icon:`ellipsis-h` in the :guilabel:`Actions` column.
89+
#. Select :guilabel:`Edit` from the dropdown.
7190

72-
* - Ingestion Endpoint
73-
- |onprem| instance to which the
74-
:opsmgr:`Backup Agent </reference/glossary/#std-term-backup-agent>`
75-
writes snapshot or oplog data.
91+
The :guilabel:`Set up a Deployment Region` modal displays.
7692

77-
* - Restore Endpoint
78-
- |onprem| instance that serves restore requests.
93+
.. step:: Modify the deployment region.
7994

80-
* - Queryable Proxy Server Endpoint
81-
- |onprem| instance that serves
82-
:opsmgr:`Queryable Backup </reference/glossary/#std-term-queryable-backup>`
83-
requests.
95+
In the :guilabel:`Set up a Deployment Region`
96+
modal, make changes to any of the following fields:
8497

85-
* - Deployment Description
86-
- String that describes the purpose of the deployment region.
98+
.. include:: /includes/list-tables/deployment-regions/deployment-regions-ui.rst
8799

88100
.. step:: Click :guilabel:`Confirm`.
101+
102+
.. _deployment-regions-assign:
103+
104+
Assign a Deployment Region for a Shard
105+
--------------------------------------
106+
107+
To assign a deployment region to a new shard, perform the following
108+
steps:
109+
110+
.. procedure::
111+
:style: normal
112+
113+
.. step:: Click the :guilabel:`Assign` button.
114+
115+
You can find the :guilabel:`Assign` button in the
116+
:guilabel:`Continuous Backup` dashboard the following ways:
117+
118+
- Hover over the cluster status :guilabel:`Misconfigured`.
119+
- Click the :icon:`ellipsis-h` in the :guilabel:`Options` column.
120+
121+
The :guilabel:`Start Backup` modal displays.
122+
123+
.. step:: Configure the deployment region.
124+
125+
Select a deployment region from the :guilabel:`Select region`
126+
dropdown. You can't modify deployment regions configured for
127+
existing members.
128+
129+
.. note::
130+
131+
To change the deployment region for a member, you must first
132+
stop and terminate the current backup job, and then start a new
133+
backup job in the new region.
134+
135+
Ensure that the deployment region that you select has snapshot,
136+
oplog, and sync stores configured for that region. |mms| displays
137+
an error if there are no daemons bound to any of the selected
138+
deployment regions.
139+
140+
.. step:: Click :guilabel:`Start`.
141+
142+
When you assign a deployment region to a shard, |mms| does the
143+
following:
144+
145+
- Assigns snapshot, oplog, and sync stores and daemons to the
146+
backup jobs.
147+
- Resumes oplog tailing and takes snapshots
148+
- Resolves project alarms.

source/core/backup-overview.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,12 @@ region. Regional backup is available for replica sets and sharded
166166
clusters. To enable regional backup for a sharded cluster, you must
167167
assign deployment regions and initiate backup jobs for each shard
168168
separately.
169+
170+
To determine whether regional backup is enabled in your deployment, you
171+
can check for the following in the :guilabel:`Continuous Backup`
172+
dashboard.
173+
174+
- :guilabel:`Backup Region` on the top right corner displays the group's
175+
deployment region by default and if the project is enabled for
176+
regional backup, it displays the legend :guilabel:`Multi-Region`.
177+
- :guilabel:`Regional Backup` column displays in the dashboard.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
.. list-table::
2+
:widths: 20 15 15 50
3+
:header-rows: 1
4+
:stub-columns: 1
5+
6+
* - Name
7+
- Type
8+
- Necessity
9+
- Description
10+
11+
* - ``assignmentEnabled``
12+
- boolean
13+
- Optional
14+
- Flag indicating whether you can assign :ref:`Deployment Regions
15+
<deployment-regions-interface>` to backup resources.
16+
17+
* - ``bqProxyEndpoint``
18+
- string
19+
- Required
20+
- |onprem| instance that serves :opsmgr:`Queryable Backup
21+
</reference/glossary/#std-term-queryable-backup>` requests. Value
22+
is in the following format: ``domain:port``. For example,
23+
``localhost:8080``.
24+
25+
* - ``deploymentDescription``
26+
- string
27+
- Required
28+
- String that describes the purpose of the deployment region.
29+
30+
* - ``id``
31+
- string
32+
- Reguired
33+
- Unique identifier that references this deployment region in
34+
configurations.
35+
36+
* - ``ingestionEndpoint``
37+
- string
38+
- Reguired
39+
- |onprem| instance to which the :opsmgr:`Backup Agent
40+
</reference/glossary/#std-term-backup-agent>` writes snapshot or
41+
oplog data. Value is a valid |url| such as
42+
``http://www.mongodb.com``. Supports both |http| and |https|.
43+
44+
* - ``restoreEndpoint``
45+
- string
46+
- Required
47+
- |onprem| instance that serves restore requests.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.. list-table::
2+
:widths: 20 14 66
3+
:header-rows: 1
4+
:stub-columns: 1
5+
6+
* - Name
7+
- Type
8+
- Description
9+
10+
* - ``assignmentEnabled``
11+
- boolean
12+
- Flag indicating whether you can assign :ref:`Deployment Regions
13+
<deployment-regions-interface>` to backup resources.
14+
15+
* - ``bqProxyEndpoint``
16+
- string
17+
- |onprem| instance that serves :opsmgr:`Queryable Backup
18+
</reference/glossary/#std-term-queryable-backup>` requests. Value
19+
is in the following format: ``domain:port``. For example,
20+
``localhost:8080``.
21+
22+
* - ``deploymentDescription``
23+
- string
24+
- String that describes the purpose of the deployment region.
25+
26+
* - ``id``
27+
- string
28+
- Unique identifier that references this deployment region in
29+
configurations.
30+
31+
* - ``ingestionEndpoint``
32+
- string
33+
- |onprem| instance to which the :opsmgr:`Backup Agent
34+
</reference/glossary/#std-term-backup-agent>` writes snapshot or
35+
oplog data. Value is a valid |url| such as
36+
``http://www.mongodb.com``. Supports both |http| and |https|.
37+
38+
* - ``links``
39+
- object array
40+
- .. include:: /includes/api/links-explanation.rst
41+
42+
* - ``restoreEndpoint``
43+
- string
44+
- |onprem| instance that serves restore requests.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.. list-table::
2+
:widths: 30 70
3+
:header-rows: 1
4+
5+
* - Field
6+
- Value
7+
8+
* - Ingestion Endpoint
9+
- |onprem| instance to which the :opsmgr:`Backup Agent
10+
</reference/glossary/#std-term-backup-agent>` writes snapshot or
11+
oplog data. Value must be a valid |url| such as
12+
``http://www.mongodb.com``. Supports both HTTP and HTTPS
13+
protocols.
14+
15+
* - Restore Endpoint
16+
- |onprem| instance that serves restore requests.
17+
18+
* - Queryable Proxy Server Endpoint
19+
- |onprem| instance that serves :opsmgr:`Queryable Backup
20+
</reference/glossary/#std-term-queryable-backup>` requests. Value
21+
must be in the following format: ``domain:port``. For example,
22+
``localhost:8080``.
23+
24+
* - Deployment Description
25+
- String that describes the purpose of the deployment region.
26+
27+
* - Assignment Enabled
28+
- Flag that specifies whether you can assign the region to new
29+
resources. If you disable this field, you can't assign the region
30+
to any new resource.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.. list-table::
2+
:widths: 30 70
3+
:header-rows: 1
4+
5+
* - Field
6+
- Value
7+
8+
* - Deployment ID
9+
- Unique identifier that references this deployment region in
10+
configurations. The ID can contain up to 64 alphanumeric
11+
characters and the dash (``-``), underscore (``_``), and dot
12+
(``.``) characters.
13+
14+
You can't modify the deployment ID of a region once it's created.
15+
16+
* - Ingestion Endpoint
17+
- |onprem| instance to which the :opsmgr:`Backup Agent
18+
</reference/glossary/#std-term-backup-agent>` writes snapshot or
19+
oplog data. Value must be a valid |url| such as
20+
``http://www.mongodb.com``. Supports both HTTP and HTTPS
21+
protocols.
22+
23+
* - Restore Endpoint
24+
- |onprem| instance that serves restore requests.
25+
26+
* - Queryable Proxy Server Endpoint
27+
- |onprem| instance that serves :opsmgr:`Queryable Backup
28+
</reference/glossary/#std-term-queryable-backup>` requests. Value
29+
must be in the following format: ``domain:port``. For example,
30+
``localhost:8080``.
31+
32+
* - Deployment Description
33+
- String that describes the purpose of the deployment region.
34+
35+
* - Assignment Enabled
36+
- Flag that specifies whether you an assign the region to new
37+
resources. If you disable this field, you can't assign the region
38+
to any new resource.

source/includes/steps-add-shard-to-mongodb-cluster.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,13 @@ title: "Click :guilabel:`Save` to add the new shard to the cluster."
6767
stepnum: 5
6868
level: 4
6969
ref: save-new-shard-config
70+
content: |
71+
If you enable multi-region backups, this sharded cluster initializes in a
72+
:guilabel:`Misconfigured` state, indicated in the :guilabel:`Continuous Backup`
73+
dashboard. While the cluster is in the :guilabel:`Misconfigured` state,
74+
|mms| won't take any new snapshots, although oplog tailing continues
75+
uninterrupted for cluster members with assigned regions. You
76+
must :ref:`select a deployment region <deployment-regions-assign>` for
77+
each of the newly created shards.
7078
7179
...

source/includes/steps-create-backup-wt.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,18 @@ content: |
3434
If you want to enable :ref:`regional-backup` for your replica set
3535
or sharded cluster, assign :ref:`deployment regions
3636
<deployment-regions-interface>`. For a sharded cluster, you must assign
37-
a deployment region to each shard.
37+
a deployment region for every sharded cluster member, including every
38+
shard and config server.
39+
40+
To start a single or multi-region backup:
41+
42+
a. Select :guilabel:`Turn on Multi-Region Backups` checkbox.
43+
#. Select the deployment region from the dropdown.
44+
45+
If you want to set the same deployment region for every member
46+
of the sharded cluster, click :guilabel:`Set`. Alternatively,
47+
select a different region from the dropdown for each sharded
48+
cluster member.
3849
---
3950
title: "Click :guilabel:`Start`."
4051
stepnum: 5

0 commit comments

Comments
 (0)