I am looking for some code that will scale a role to a given amount of instances given the roleID I want to scale. I am looking for someone to implement this method.
Private Shared Sub DoScaleOperation(RoleID As String, InstanceCount As Integer)
'TODO:
'Check if the current number of instances in the role RoleID matches InstanctCount
'and if the numbers don't match then scale down or scale up as appropriate.
End Sub
This method should work for both the dev environment and the cloud environment. Does anyone know how to do this?
Also out curiorsity I an wondering what the names of the Role Instances will be on a scale up and what will be the names of the instances removed during a scale down. I am hoping the names of the instances will be something like RoleID_(0 to InstanceCount - 1).
There is an API that you want to call in order to programmatically change instance count in Azure: http://msdn.microsoft.com/en-us/library/windowsazure/ee460809.aspx This API does not work in local dev environment. You will need to provide a management certificate with your call. You can also use Azure cmdlets to change instance counts.
I assume you have looked at WASABi, the Autoscaling Application Block?
What were your conclusions for the P&P product in your scenario?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With