You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
APPLIES TO: :::image type="icon" source="../media/applies-to/yes.png" border="false":::SQL API :::image type="icon" source="../media/applies-to/yes.png" border="false":::Cassandra API
You can perform offline container copy within an Azure Cosmos DB account using container copy jobs.
17
15
18
-
You may need to copy data within your Azure Cosmos DB account if you want to achieve either of these scenarios:
16
+
You may need to copy data within your Azure Cosmos DB account if you want to achieve any of these scenarios:
19
17
20
18
* Copy all items from one container to another.
21
-
* Change the [granularity at which throughput is provisioned - from database to container](./set-throughput.md) and vice-versa.
22
-
* Change the [partition key](./partitioning-overview.md#choose-partitionkey) of a container.
23
-
* Update the [unique keys](./unique-keys.md) for a container.
19
+
* Change the [granularity at which throughput is provisioned - from database to container](set-throughput.md) and vice-versa.
20
+
* Change the [partition key](partitioning-overview.md#choose-partitionkey) of a container.
21
+
* Update the [unique keys](unique-keys.md) for a container.
24
22
* Rename a container/database.
25
23
* Adopt new features that are only supported on new containers.
26
24
27
-
Intra-account container copy jobs can be currently [created and managed using CLI commands](./how-to-copy-container.md).
25
+
Intra-account container copy jobs can be currently [created and managed using CLI commands](how-to-container-copy.md).
26
+
27
+
## Getting started
28
+
29
+
To get started using container copy jobs, enroll in the preview by filing a support ticket in the [Azure portal](https://portal.azure.com).
28
30
29
31
## How does intra-account container copy work?
30
32
@@ -37,24 +39,28 @@ Intra-account container copy jobs perform offline data copy using the source con
37
39
* The platform may de-allocate the instances if they're idle for >15 mins.
38
40
39
41
> [!NOTE]
40
-
> We currently only support offline container copy. So, we strongly recommend to stop performing any operations on the source container prior to beginning the container copy.\
41
-
> Item deletions and updates done on the source container after beginning the copy job would not be captured. Hence, continuing to perform operations on the source container while the container job is in progress may result in data missing on the target container.
42
+
> We currently only support offline container copy. So, we strongly recommend to stop performing any operations on the source container prior to beginning the container copy.
43
+
> Item deletions and updates done on the source container after beginning the copy job may not be captured. Hence, continuing to perform operations on the source container while the container job is in progress may result in data missing on the target container.
42
44
43
45
## Overview of steps needed to do a container copy
44
46
45
47
1. Stop the operations on the source container by pausing the application instances or any clients connecting to it.
46
-
2.[Create the container copy job](./how-to-copy-container.md).
47
-
3.[Monitor the progress of the container copy job](./how-to-copy-container.md#monitor-the-progress-of-container-copy-job) and wait until it's completed.
48
+
2.[Create the container copy job](how-to-container-copy.md).
49
+
3.[Monitor the progress of the container copy job](how-to-container-copy.md#monitor-the-progress-of-a-container-copy-job) and wait until it's completed.
48
50
4. Resume the operations by appropriately pointing the application or client to the source or target container copy as intended.
49
51
50
52
## Factors affecting the rate of container copy job
51
53
52
54
The rate of container copy job progress is determined by these factors:
53
55
54
56
* Source container/database throughput setting.
57
+
55
58
* Target container/database throughput setting.
56
-
* Server-side compute instances allocated to the Azure Cosmos DB account for the performing the data transfer.\
57
-
The default is two 4-vCPU 16-GB server-side instances per account, available for free. You may opt to sign up for paid [larger SKUs](#large-skus-preview) preview.
59
+
60
+
* Server-side compute instances allocated to the Azure Cosmos DB account for the performing the data transfer.
61
+
62
+
> [!IMPORTANT]
63
+
> The default SKU offers two 4-vCPU 16-GB server-side instances per account. You may opt to sign up for [larger SKUs](#large-skus-preview) in preview.
58
64
59
65
## FAQs
60
66
@@ -64,15 +70,15 @@ Container copy jobs are currently supported on best-effort basis. We don't provi
64
70
65
71
### Can I create multiple container copy jobs within an account?
66
72
67
-
Yes, you can create multiple jobs within the same account. The jobs will run consecutively. You can [list all the jobs](./how-to-copy-container.md#list-all-the-container-copy-jobs-created-in-an-account) created within an account and monitor their progress.
73
+
Yes, you can create multiple jobs within the same account. The jobs will run consecutively. You can [list all the jobs](how-to-container-copy.md#list-all-the-container-copy-jobs-created-in-an-account) created within an account and monitor their progress.
68
74
69
75
### Can I copy an entire database within the Azure Cosmos DB account?
70
76
71
77
You'll have to create a job for each collection in the database.
72
78
73
79
### I have an Azure Cosmos DB account with multiple regions. In which region will the container copy job run?
74
80
75
-
The container copy job will run in the write region. If there are accounts configured with multi-region writes, the job will run in the first region from the list.
81
+
The container copy job will run in the write region. If there are accounts configured with multi-region writes, the job will run in one of the regions from the list.
76
82
77
83
### What happens to the container copy jobs when the account's write region changes?
78
84
@@ -82,11 +88,8 @@ The account's write region may change in the rare scenario of a region outage or
82
88
83
89
If you want to run the container copy jobs faster, you may do so by adjusting one of the [factors that affect the rate of the copy job](#factors-affecting-the-rate-of-container-copy-job). In order to adjust the configuration of the server-side compute instances, you may sign up for "Large SKU support for container copy" preview.
84
90
85
-
This preview will allow you to choose larger SKUs sizes for the server-side instances. You can also choose a node count of up to 5 for these instances.
86
-
87
-
> [!NOTE]
88
-
> Large SKU sizes are payable.
91
+
This preview will allow you to choose larger a SKU size for the server-side instances. Large SKU sizes are billable at a higher rate. You can also choose a node count of up to 5 of these instances.
89
92
90
93
## Next Steps
91
94
92
-
You can learn about [how to create, monitor and manage container copy jobs within Azure Cosmos DB account using CLI commands](./how-to-copy-container.md).
95
+
-You can learn about [how to create, monitor and manage container copy jobs within Azure Cosmos DB account using CLI commands](how-to-container-copy.md).
0 commit comments