|
1 | 1 | # azure-database-scaler |
2 | | -Event driven Logic App and Functions that scale-up or scale-down the capacity of your Azure database service instance (Currently only vCore # is supported) |
| 2 | +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: |
| 5 | +- [Azure Database for MySQL](https://azure.microsoft.com/en-us/services/mysql/) |
| 6 | +- [Azure Database for PostgreSQL](https://azure.microsoft.com/en-us/services/postgresql/) |
| 7 | + |
| 8 | +What to scale up/down? |
| 9 | +- vCores ([What is vCore?](https://docs.microsoft.com/en-us/azure/mysql/concepts-pricing-tiers#compute-generations-vcores-and-memory)) |
| 10 | + |
| 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`) |
| 13 | +- 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: |
| 14 | + - Basic Tier: 1 <-> 2 |
| 15 | + - General Purpose Tier: 2 <-> 4 <-> 8 <-> 16 <-> 32 |
| 16 | + - Memory Optimized Tier: 2 <-> 4 <-> 8 <-> 16 <-> 32 |
| 17 | +- 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` |
| 19 | + |
| 20 | +Architecture: |
| 21 | + |
| 22 | + |
| 23 | +Relevant Services: |
| 24 | +- [Azure Database for MySQL](https://azure.microsoft.com/en-us/services/mysql/) |
| 25 | +- [Azure Database for PostgreSQL](https://azure.microsoft.com/en-us/services/postgresql/) |
| 26 | +- [Azure Functions](https://azure.microsoft.com/en-us/services/functions/) |
| 27 | +- [Azure Logic Apps](https://azure.microsoft.com/en-us/services/logic-apps/) |
| 28 | +- [Azure Monitor Alerts (Classic)](https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-overview-alerts) |
| 29 | +- [Azure Monitor Alerts (New)](https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-overview-unified-alerts) |
| 30 | +- [Slack (for notification)](https://slack.com) |
4 | 31 |
|
5 | 32 | ## How to deploy the scaler app |
6 | 33 | - [How to deploy the database scaler app](./docs/HOW-TO-DEPLOY-APP.md) |
7 | 34 |
|
8 | | -## How to setup autoscale trigger |
9 | | -- [How to setup Azure Alerts for autoscaling Azure Database Services](./docs/HOW-TO-SETUP-ALERTS.md) |
| 35 | +## How to setup Azure Metric Monitor for Autoscaling |
| 36 | +- [[Classic Metric Alert] How to setup Azure Monitor Metric Alerts](./docs/HOW-TO-SETUP-ALERTS.md) |
| 37 | +- \[New Metric Alert\] How to setup Azure Monitor Metric Alerts |
| 38 | + |
0 commit comments