可以通过编程方式扩展Azure实例吗? [英] Is possible to programmatically scale Azure instances?

查看:79
本文介绍了可以通过编程方式扩展Azure实例吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一些Azure API允许我从Visual Studio中的C#代码访问缩放功能?例如,当一些足球比赛结束时,我需要将实例数从2扩展到5,并在1小时后回到2.

Are there some Azure APIs that allow me to access the scaling functionalities from my C# code in Visual Studio? For example, I need to scale from 2 to 5 instances when some football matches end, and go back to 2 after 1 hour.

推荐答案

使用自动缩放应用程序块,它可以使用自定义指标进行自动缩放.不过,请注意,该库不再维护.

This indeed possible using The Autoscaling Application Block, that enables to auto-scale using custom metrics. Nevertheless, note that this library is no longer maintained.

您可能还需要阅读更新的

You may want to also read the updated Autoscaling guidance, which also describes the Autoscaling Application Block mentioned above.

这篇关于可以通过编程方式扩展Azure实例吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆