您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

成本优化原则Principles of cost optimization

经济高效的工作负荷由业务目标和投资回报 (投资) ,同时保持在给定预算内。A cost-effective workload is driven by business goals and the return on investment (ROI) while staying within a given budget. 成本优化原则是一系列重要的注意事项,可帮助实现业务目标和成本合理性。The principles of cost optimization are a series of important considerations that can help achieve both business objectives and cost justification.

若要使用 Azure Well-Architected Framework 中找到的原则评估工作负荷,请参阅 Microsoft Azure Well-Architected 查看To assess your workload using the tenets found in the Azure Well-Architected Framework, see the Microsoft Azure Well-Architected Review.

保留成本限制Keep within the cost constraints

每个设计选择都有成本影响。Every design choice has cost implications. 在为该服务选择体系结构模式、Azure 服务或价格模型之前,请考虑该公司设置的预算约束。Before choosing an architectural pattern, Azure service, or a price model for the service, consider the budget constraints set by the company. 作为设计的一部分,可根据成本识别规模、冗余和性能的可接受边界。As part of design, identify acceptable boundaries on scale, redundancy, and performance against cost. 估计初始成本后,请在不同范围内设置预算和警报,以衡量成本。After estimating the initial cost, set budgets and alerts at different scopes to measure the cost. 一个成本驱动程序可以是不受限制的资源。One of cost drivers can be unrestricted resources. 这些资源通常需要缩放,并消耗更多成本来满足需求。These resources typically need to scale and consume more cost to meet demand.

适用于可缩放成本的目标Aim for scalable costs

云的主要优势是能够动态缩放。A key benefit of the cloud is the ability to scale dynamically. 工作负荷成本应根据需求线性缩放。The workload cost should scale linearly with demand. 可以通过自动缩放节省成本。You can save cost through automatic scaling. 请考虑使用情况指标和性能来确定实例的数目。Consider the usage metrics and performance to determine the number of instances. 为高度可变的工作负荷选择较小的实例,横向扩展以获取所需的性能级别,而不是向上扩展。Choose smaller instances for a highly variable workload and scale out to get the required level of performance, rather than up. 这种选择使您能够精确地进行成本计算和估算。This choice will enable you to make your cost calculations and estimates granular.

支付消耗Pay for consumption

采用租赁模型而不是拥有的基础结构。Adopt a leasing model instead of owning infrastructure. Azure 提供了许多 SaaS 和 PaaS 资源来简化总体体系结构。Azure offers many SaaS and PaaS resources that simplify overall architecture. 定价模型中包含的硬件、软件、开发、操作、安全和数据中心空间的成本。The cost of hardware, software, development, operations, security, and data center space included in the pricing model.

此外,选择 "即用即付" 固定价格。Also, choose pay-as-you-go over fixed pricing. 这样,作为使用者,你只需为你使用的内容付费。That way, as a consumer, you're charged for only what you use.

适当的资源,适当的大小Right resources, right size

选择适合于业务目标的资源,并可以处理工作负荷的性能。Choose the right resources that are aligned with business goals and can handle the performance of the workload. 不正确或配置不正确的服务可能会影响成本。An inappropriate or misconfigured service can impact cost. 例如,在服务级别不需要高可用性或异地冗余的情况下构建多区域服务时,无需任何合理的业务理由即可提高成本。For example, building a multi-region service when the service levels don't require high-availability or geo-redundancy will increase cost without any reasonable business justification.

某些基础结构资源以修复大小的构建基块的形式提供。Certain infrastructure resources are delivered as fix-sized building blocks. 确保这些块充分调整大小以满足容量需求,提供预期的性能,而不会浪费资源。Ensure that these blocks are adequately sized to meet capacity demand, deliver expected performance without wasting resources.

监视和优化Monitor and optimize

将成本监视和优化视为一个进程,而不是时间点活动。Treat cost monitoring and optimization as a process, rather than a point-in-time activity. 定期进行成本审查,并衡量和预测容量需求,使你能够动态地设置资源并按需求进行缩放。Conduct regular cost reviews and measure and forecast the capacity needs so that you can provision resources dynamically and scale with demand. 查看成本管理建议并采取措施。Review the cost management recommendations and take action.

如果你只是在此过程中开始,请在 云采用旅程期间启用成功 If you're just starting in this process review enable success during a cloud adoption journey .