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
- Restrict Alert Metric to Accept: only "cpu_percent" for vCore scale change, only "storage_percent"|"storage_used"|"storage_limit" for Storage size scale change
Event driven Azure Logic App & Functions App that scale-up or scale-down the capacity of your Azure database service instance (Currently only vCore # is supported)
3
3
4
-
Targets Azure Databases to scale in this project:
4
+
### Targets Azure Databases to scale in this project:
5
5
-[Azure Database for MySQL](https://azure.microsoft.com/en-us/services/mysql/)
6
6
-[Azure Database for PostgreSQL](https://azure.microsoft.com/en-us/services/postgresql/)
7
7
8
-
What to scale up/down?
8
+
### What to scale up/down?
9
9
- vCores ([What is vCore?](https://docs.microsoft.com/en-us/azure/mysql/concepts-pricing-tiers#compute-generations-vcores-and-memory))
10
+
- Storage Size ([What is Storage size?](https://docs.microsoft.com/en-us/azure/mysql/concepts-pricing-tiers#storage))
10
11
11
-
How to scale up/down?
12
-
- azure-database-scaler starts scaling-up or scaling-down the number of vCore when it is triggered by Azure Monitor Metric Alerts (Alerts providers must be either `Microsoft.DBforMySQL` or `Microsoft.DBforPostgreSQL`)
12
+
### How to scale up/down?
13
+
- azure-database-scaler starts changing vCore capacity or Storage size when it was triggered by Azure Monitor Metric Alerts (Alerts providers must be either `Microsoft.DBforMySQL` or `Microsoft.DBforPostgreSQL`)
13
14
- azure-database-scaler scale-up or scale-down the number of vCore within the same database tier & the same compute generations (Gen4 / Gen5) of your instance in the way like:
- azure-database-scaler scale-up the number of vCore when Alert Operator of triggering Alerts is either `GreaterThan` or `GreaterThanOrEqual`
18
-
- azure-database-scaler scale-down the number of vCore when Alert Operator of triggering Alerts is either `LessThan` or `LessThanOrEqual`
18
+
- azure-database-scaler only scale-up the Storage size (Not scale-down supported). It can increase the Storage size by the amount of `StorageScaleupSize`(GB) parameter value to specify in [project config file](scripts/project.conf) for each scale-up action triggered by Azure Monitor Metric Alerts until the Storage size reaches `MaxStorageScaleLimit`(GB) parameter value to specify in [project config file](scripts/project.conf). `MaxStorageScaleLimit`(GB) should be within the follwoing storage size range:
19
+
- Basic Tier: 5 GB to 1 TB (1024 GB)
20
+
- General Purpose Tier: 5 GB to 2 TB (2048 GB)
21
+
- Memory Optimized Tier: 5 GB to 2 TB (2048 GB)
19
22
20
-
Architecture:
23
+
### Alert Metrics, Alert Operator, and Actions
24
+
25
+
|Alert Metric|Metric display name | Operators to match | Action |
26
+
|---|---|---|---|
27
+
|`cpu_percent`|CPU percent|`GreaterThan` or `GreaterThanOrEqual`| scale-up vCore capacity|
28
+
|`cpu_percent`|CPU percent|`LessThan` or `LessThanOrEqual`| scale-down vCore capacity|
29
+
|`storage_percent`|Storage percent|`GreaterThan` or `GreaterThanOrEqual`| scale-up Storage size|
30
+
|`storage_used`|Storage used|`GreaterThan` or `GreaterThanOrEqual`| scale-up Storage size|
31
+
|`storage_limit`|Storage limit|`GreaterThan` or `GreaterThanOrEqual`| scale-up Storage size|
32
+
33
+
For the detail on the supported metrics, please see [supported metrics for Azure Database for MySQL](https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-supported-metrics#microsoftdbformysqlservers) or [supported metrics for Azure Database for PostgreSQL](https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-supported-metrics#microsoftdbforpostgresqlservers)
0 commit comments