Resizing Azure VM image automagically

依然范特西╮ 提交于 2019-12-11 06:31:26

问题


Is it possible to trigger a resize of an Azure VM automatically based on a set condition?

For example, increase from a 'Medium' machine to 'Large' if the processor/RAM is over 90% usage out for 5 minutes? Then, obviously scale back down when usage reduces?

Or... is it possible to schedule a resize between (peak) UK office hours then downscale off-peak?

Just a thought...


回答1:


Worth checking out the Auto Scaling Building Block from the patterns and practices team, part of the Enterprise Library 5.0 for Windows Azure

The Microsoft Enterprise Library Autoscaling Application Block (WASABi) lets you add automatic scaling behavior to your Windows Azure applications. You can choose to host the block in Windows Azure or in an on-premises application. The Autoscaling Application Block can be used without modification; it provides all of the functionality needed to define and monitor autoscaling behavior in a Windows Azure application.

The Enterprise Library Autoscaling Application Block includes the following features:

  • It allows you to use the graphical Enterprise Library configuration tool to manage configuration settings.
  • It allows you to configure the storage locations and logging mechanisms used by the block.
  • It allows you to extend the block by adding custom autoscaling rules and actions.



回答2:


No, it is not possible. But you can fairly easy program that auto scale. Take e a look at the Azure Scale Me project. This uses calls to Cloud Services, but you can fairly easy add calls to the Virtual Machines REST API Calls instead of Hosted Services REST API calls.




回答3:


If you want a hands-free approach and do not mind using a third-party service checkout AzureWatch There is a lot of coding, maintaining, monitoring and worrying about the nuance of auto-scaling if you end up implementing whatever auto-scaling solution by yourself with or without open-source blocks - and the cost that is perceived to be saved is still incurred when the auto-scaling solutions need to be hosted somewhere, sometimes at a greater scale.



来源:https://stackoverflow.com/questions/13235508/resizing-azure-vm-image-automagically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!