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
Copy file name to clipboardExpand all lines: articles/healthcare-apis/azure-api-for-fhir/autoscale-azure-api-fhir.md
+27-7Lines changed: 27 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: stevewohl
5
5
ms.service: healthcare-apis
6
6
ms.subservice: fhir
7
7
ms.topic: conceptual
8
-
ms.date: 07/26/2021
8
+
ms.date: 02/11/2022
9
9
ms.author: zxue
10
10
---
11
11
@@ -17,7 +17,11 @@ The Azure API for FHIR as a managed service allows customers to persist with FHI
17
17
18
18
By default, the Azure API for FHIR is set to manual scale. This option works well when the transaction workloads are known and consistent. Customers can adjust the throughput `RU/s` through the portal up to 10,000 and submit a request to increase the limit.
19
19
20
-
With autoscale, customers can run various workloads and the throughput `RU/s` are scaled up and down automatically without manual adjustments.
20
+
The autoscale feature is designed to scale computing resources including the database throughput `RU/s` up and down automatically according to the workloads, thus eliminating the manual steps of adjusting allocated computing resources.
21
+
22
+
## What is the guidance on when to enable autoscale?
23
+
24
+
In general, customers should consider autoscale when their workloads vary signficantly and are unpredictable.
21
25
22
26
## How to enable autoscale?
23
27
@@ -26,9 +30,15 @@ To enable the autoscale feature, you can create a one-time support ticket to req
26
30
> [!NOTE]
27
31
> The autoscale feature isn't available from the Azure portal.
28
32
33
+
## How to migrate to manual scale?
34
+
35
+
A support ticket is required to change autoscale to manual scale and specify the throughput RU/s. The minimum value for manual scale you can set it to is: `MAX (400, highest max RU/s ever provisioned / 100, current storage in GB * 40)`, rounded to the nearest 1000 `RU/s`. The numbers used here are different from those used in autoscale.
36
+
37
+
Once the change is completed, the new billing rates will be based on manual scale.
38
+
29
39
## How to adjust the maximum throughput RU/s?
30
40
31
-
When autoscale is enabled, the system calculates and sets the initial `Tmax` value. The scalability is governed by the maximum throughput `RU/s` value, or `Tmax`, and scales between `0.1 *Tmax` (or 10% `Tmax`) and `Tmax RU/s`.
41
+
When autoscale is enabled, the system calculates and sets the initial `Tmax` value. The scalability is governed by the maximum throughput `RU/s` value, or `Tmax`, and scales between `0.1 *Tmax` (or 10% `Tmax`) and `Tmax RU/s`. The `Tmax` increases automatically as the total data size grows. To ensure maximum scalability, the `Tmax` value should be kept as-is. However, customers can request that the value be changed to something betweeen 10% and 100% of the `Tmax` value.
32
42
33
43
You can increase the max `RU/s` or `Tmax` value and go as high as the service supports. When the service is busy, the throughput `RU/s` are scaled up to the `Tmax` value. When the service is idle, the throughput `RU/s` are scaled down to 10% `Tmax` value.
34
44
@@ -43,16 +53,26 @@ You can adjust the max `RU/s` or `Tmax` value through the portal if it's a valid
43
53
>[!Note]
44
54
>As data storage grows, the system will automatically increase the max throughput to the next highest RU/s that can support that level of storage.
45
55
56
+
## How to estimate throughput RU/s required?
46
57
47
-
## How to migrate to manual scale?
58
+
The data size is one of several factors used in calculating the total throughput RU/s required for manual scale and autoscale. You can find the data size using the Metrics menu option under **Monitoring**. Start a new chart and select "Cosmos DB Collection Size" in the Metric dropdown box and "Max" in the "Aggregation" box.
48
59
49
-
A support ticket is required to change autoscale to manual scale and specify the throughput RU/s. The minimum value for manual scale you can set it to is: `MAX (400, highest max RU/s ever provisioned / 100, current storage in GB * 40)`, rounded to the nearest 1000 `RU/s`. The numbers used here are different from those used in autoscale.
60
+
[](media/cosmosdb/metrics-new-chart.png#lightbox)
50
61
51
-
Once the change is completed, the new billing rates will be based on manual scale.
62
+
You should be able to see the Max data collection size over the time period selected. Change the "Time Range" if necessary, for example from "Last 30 minutes" to "Last 48 Hours".
63
+
64
+
[](media/cosmosdb/cosmosdb-collection-size.png#lightbox)
65
+
66
+
Use the formular to calculate required RU/s.
67
+
68
+
- Manual scale: storage in GB * 40
69
+
- Autoscale: storage in GB * 400
70
+
71
+
Keep in mind that this is only an estimate based on data size and that there are other factors that affect the required RU/s.
52
72
53
73
## What is the cost impact of autoscale?
54
74
55
-
The autoscale feature incurs costs because of managing the provisioned throughput units automatically. This cost increase doesn't apply to storage and runtime costs. For information about pricing, see [Azure API for FHIR pricing](https://azure.microsoft.com/pricing/details/azure-api-for-fhir/).
75
+
The autoscale feature incurs costs because of managing the provisioned throughput units automatically. The actual costs depend on hourly usage, but keep in mind that there are minimum costs of 10% of `Tmax` for reserved throughput RU/s. However, this cost increase doesn't apply to storage and runtime costs. For information about pricing, see [Azure API for FHIR pricing](https://azure.microsoft.com/pricing/details/azure-api-for-fhir/).
0 commit comments