你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Azure Database for MySQL 是基于 MySQL Community Edition 的 Microsoft 云中的关系数据库服务。 You can use either Single Server or Flexible Server to host a MySQL database in Azure. 它是完全托管的数据库即服务产品,能够处理任务关键型工作负荷,并提供可预测的性能和动态可伸缩性。
For more information about how Azure Database for MySQL supports cost optimization for your workload, reference Server concepts, specifically, Stop/Start an Azure Database for MySQL.
以下部分包括设计注意事项、配置清单以及特定于 Azure Database for MySQL 的建议配置选项。
Design considerations
Azure Database for MySQL 包括以下设计注意事项:
- 充分利用 Azure Database for MySQL 的缩放功能,尽可能降低消耗成本。 若要根据需要纵向扩展和缩减数据库,请参阅以下Microsoft支持文章,其中介绍了使用 Runbook 的自动化过程: 如何使用 Azure Runbook 和 Python 自动缩放 Azure Database for MySQL/PostgreSQL 实例。
- 根据您的运营级别要求规划恢复点目标(RPO)。 如果备份存储空间最多不超过总预配服务器存储空间的
100%
,则无需额外付费。 备份存储的额外消耗将在GB/month
中收费。 - The cloud native design of the Single-Server service allows it to support
99.99%
of availability, eliminating the cost of passive hot standby. - 请考虑将灵活服务器 SKU 用于非生产工作负载。 灵活服务器提供更好的成本优化控制,能够停止和启动服务器。 它们提供一个突发型计算层,对于不需要持续全容量计算的工作负载来说非常理想。
工作负荷设计清单
是否考虑到成本优化配置了 Azure Database for MySQL?
- 为工作负荷选择适当的服务器大小。
- 请考虑为 Azure Database for MySQL 单一服务器预留容量。
Configuration recommendations
浏览以下建议表,以优化 Azure Database for MySQL 配置以优化成本:
Recommendation | Description |
---|---|
为工作负荷选择适当的服务器大小。 | Configuration options: Single Server and Flexible Server. |
请考虑为 Azure Database for MySQL 单一服务器预留容量。 | 与 Azure Database For MySQL 单服务器预留折扣关联的计算成本。 确定区域中 Azure Database for MySQL 的总计算容量和性能层后,可以使用此信息来保留容量。 预留可以跨越一年或三年。 可以通过此承诺实现显著的成本优化。 |