云成本优化
什么是资源合理配置?
什么是资源合理配置?
Right-sizing resources is the process of matching cloud instance types and sizes to your actual workload at the lowest possible cost. Tools judge the level of workload based on recent usage: AWS Compute Optimizer, for instance, considers the most recent 14 days’ utilization statistics by default. The point is to spend exactly how much you should while also only using the resources that you require.
您应该使用合理调整来提高成本效率;否则,您可能会意外超支。使用合理调整以匹配性能和容量也是一个好主意。
不合理配置资源会有什么后果?
The consequences of not right-sizing resources affect both what you spend and how workloads perform:
- 过度配置:确保您只为使用的容量付费。
- Underprovisioning: You also need to ensure that you don’t have too little capacity so as not to hurt your performance and customer experience.
如何在保持性能的同时优化云资源的成本?
To optimize the cost of cloud resources while maintaining performance, focus on four aspects of cloud cost optimization:
- Continuous Monitoring: Assess your resource utilization (CPU, memory, storage, and network use at idle, average, and peak) and increase/decrease as required.
- 动态调整:监控需求变化,并据此调整您的资源规模。
- 对于具有可预测模式的工作负载,请考虑利用提供预留实例或节省计划的提供商。
- 自动化扩展:根据您预先定义的阈值触发扩展。
哪些工具或服务可以帮助进行合理调整?
在调整规模时使用这些工具:
- 监控/分析:查看仪表板和报告中的洞察信息,以确定接下来的步骤。
- 自动扩缩: Set pre-defined conditions to adjust resources on your server.
- 成本管理:查看可以跟踪支出的工具,并确定是否存在不必要的成本。
- 推荐引擎:识别使用模式并考虑是否需要向上或向下扩展。 One example is AWS Compute Optimizer, which evaluates utilization metrics for a period of 14 days as a default or up to 93 days for EC2 or RDS instances using paid enhanced infrastructure metrics.
| 工具类别 | 主要目的 | Primary Advantage |
|
监控/分析 |
||
| Insights from Dashboard | Monitor resource usage | Facilitates easy visualization of the current infrastructure performance |
|
自动扩缩 |
||
| Automatic Resource Adjustment | 动态调整服务器资源 | Ensures real-time alignment of capacity with workload demands |
|
成本管理 |
||
| Budget Analysis | Analyze and monitor spending on cloud expenditures | Detects areas of unnecessary spending and helps with optimization |
|
推荐引擎 |
||
| 使用模式分析 | Determines scale needs | Gives recommendations on resource allocation |
应该多久调整一次资源规模?
How often to right-size resources depends on different factors, such as workload nature and variability. Adjust and monitor more often if your workload changes frequently. On the other hand, you might need periodic reviews if you roughly know what your workload is.
Regardless of what you do, you should define a specific review window (e.g., monthly). During these reviews, assess to see the extent to which your resources are aligned. Doing this is necessary if you want to maintain performance while simultaneously optimizing the costs of your cloud.
结论
云成本优化需要合理调整资源规模,您应该检查平台的程度将取决于您的工作负载和使用情况。无论您做什么,都需要找到合适的平衡点。
如有必要,聘请人员监控您的云资源。您还应该查看您的云服务提供商的工具,看看是否有可以帮助您更轻松地做出决策的功能。