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
+34-16Lines changed: 34 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,30 +14,26 @@ ms.author: kesheth
14
14
15
15
Azure API for FHIR, as a managed service, allows customers to persist with Fast Healthcare Interoperability Resources (FHIR®) compliant healthcare data and exchange it securely through the service API. To accommodate different transaction workloads, customers can use manual scale or autoscale.
16
16
17
-
## What is autoscale?
17
+
Azure API for FHIR provides scaling capabilities at database and compute level.
18
18
19
-
By default, 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 100,000 and submit a request to increase the limit.
19
+
## Auto scale at Database level
20
20
21
-
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
+
By default, Azure API for FHIR is set to manual for database scaling. This option works well when the transaction workloads are known and consistent. Customers can adjust the throughput `RU/s`through the portal up to 100,000 and submit a request to increase the limit.
22
22
23
-
## What is the guidance on when to enable autoscale?
23
+
The autoscale feature is designed to scale Azure resources including the database throughput automatically according to the workloads, eliminating possible bottlenecks in the data layer.
24
24
25
-
In general, customers should consider autoscale when their workloads vary significantly and are unpredictable.
25
+
Lets understand how to enable autoscaling at database level with next sections
26
+
27
+
### Guidance to enable autoscale
26
28
27
-
## How to enable autoscale?
29
+
In general, customers should consider autoscale when their workloads vary significantly and are unpredictable.
28
30
29
-
To enable the autoscale feature, you can create a one-time support ticket to request it. The Microsoft support team will enable the autoscale feature based on the support priority.
31
+
To enable the autoscale feature, customer needs to create a one-time support ticket to request it through Azure portal. The Microsoft support team enables the autoscale feature based on the support priority.
30
32
31
33
> [!NOTE]
32
34
> The autoscale feature isn't available from the Azure portal.
33
35
34
-
## How to migrate to manual scale?
35
-
36
-
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.
37
-
38
-
Once the change is completed, the new billing rates will be based on manual scale.
39
-
40
-
## How to adjust the maximum throughput RU/s?
36
+
### Autoscale for RU/s
41
37
42
38
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 between 10% and 100% of the `Tmax` value.
43
39
@@ -54,7 +50,23 @@ You can adjust the max `RU/s` or `Tmax` value through the portal if it's a valid
54
50
>[!Note]
55
51
>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.
56
52
57
-
## How to estimate throughput RU/s required?
53
+
## Autoscale at Compute Level
54
+
55
+
Autoscaling policies defined for FHIR service compute level consists:
56
+
57
+
* Scaling Trigger
58
+
59
+
Scaling Trigger describes when scaling of the service will be performed. Conditions that are defined in the trigger are checked periodically to determine if a service should be scaled or not. All triggers that are currently supported are Average CPU, Max Worker Thread, Average LogWrite, Average data IO.
60
+
61
+
* Scaling mechanism
62
+
63
+
The scaling mechanism is applied if the trigger check determines that scaling is necessary. Additionally, the scaling trigger won't be evaluated again until the scaling interval has expired, which is set to one minute for Azure API for FHIR.
64
+
65
+
To ensure the best possible outcome, we recommend customers to gradually increase their request rate to match the expected push rate, rather than pushing all requests at once.
66
+
67
+
## FAQ
68
+
69
+
### How to estimate throughput RU/s required?
58
70
59
71
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.
60
72
@@ -71,7 +83,13 @@ Use the formula to calculate required RU/s.
71
83
72
84
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.
73
85
74
-
## What is the cost impact of autoscale?
86
+
### I enabled autoscale how can I migrate to scaling manually?
87
+
88
+
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.
89
+
90
+
Once the change is completed, the new billing rates are based on manual scale.
91
+
92
+
### What is the cost impact of autoscale?
75
93
76
94
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