change the value of instances count programmatically in azure

房东的猫 提交于 2019-12-25 08:57:50

问题


I downloaded AutoScale from http://blog.maartenballiauw.be/post/2011/03/21/Windows-Azure-and-scaling-how-(NET).aspx and followed the instructions there. I added it as reference to my existing azure project. But I am not sure what exactly I should pass as the user defined parameters for the 6 parameters required for auto scale.

I want to only change the instance count of my worker role depending on the number of documents to be processed.


回答1:


Those parameters are all from the management API and the Silverlight Management UI

There are several more samples/tools for the Management API available - e.g. http://archive.msdn.microsoft.com/azurecmdlets/Wiki/View.aspx?title=Getting%20Started&version=1

There's also a commercial third party service available to assist - see paraleap.com

Maarten's tool has parameters:

             Console.WriteLine("  AutoScale.exe <certificatefile> <subscriptionid> <servicename> <rolename> <slot> <instancecount>");
  • To generate the certificate file, see the instructions from that cmdlet article or see the instructions in http://blogs.msdn.com/b/avkashchauhan/archive/2010/12/30/handling-issue-csmanage-cannot-establish-secure-connection-to-management-core-windows-net.aspx
  • The subscription ID is available via the silverlight azure management UI
  • the ServiceName and RoleName are what you choose when you create the service in the UI and when you create the role in code
  • the Slot is "Production" or "Staging"
  • the instanceCount is how many instances you want to run


来源:https://stackoverflow.com/questions/6713721/change-the-value-of-instances-count-programmatically-in-azure

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