Autoscaling in Windows Azure
-
2012年5月2日 15:21
Hi,I'm trying to setup an autoscaling solution for my Azure apps. I've got it to react to constraintRules but just can't make it to react to reactiveRules.
I'm using diagnostics to log all the messages from the Autoscaling (using P&P autoscaling block) - so I can see that the autoscaler sees my reactive rules, but the target is not being identified. Such as this:
<TraceSource>Autoscaling General</TraceSource> <Object>Rule match. [BEGIN DATA]{"EvaluationId":"67281173-085f-49a1-95f8-0b9c50a4de7d","MatchingRules":[{"RuleName":"Default constraints for all roles","RuleDescription":"SLA rule","Targets":["JobsRole","RESTAPI","Web"]},{"RuleName":"scaleWebApi","RuleDescription":"Scale up when cpu average over 5%","Targets":[]},{"RuleName":"scaledownWebApi","RuleDescription":"Scale down when cpu avg under 5%","Targets":[]}]}</Object>Where as the reactive rules are defined as:
<reactiveRules> <rule name="scaleWebApi" description="Scale up when cpu average over 5%" rank="2" enabled="true"> <when> <any> <greater operand="RESTAPI_CPU_Avg" than="5" /> </any> </when> <actions> <scale target="RESTAPI" by="1" /> </actions> </rule> <rule name="scaledownWebApi" rank="2" enabled="true" description="Scale down when cpu avg under 5%"> <when> <all> <lessOrEqual operand="RESTAPI_CPU_Avg" than="5" /> </all> </when> <actions> <scale target="RESTAPI" by="-1" /> </actions> </rule> </reactiveRules>What could be the problem and how can I try and make sense out of it? :)
Many thanks, Roman
- 編集済み roman-mc 2012年5月2日 15:22
すべての返信
-
2012年5月3日 6:22モデレータ
Hi,
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay.
Appreciate your patience.Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
-
2012年5月3日 7:51
Thank you :) Will wait patiently.
-
2012年5月9日 7:48
Hi Roman,
Patterns & practices – Enterprise Library has a community at http://entlib.codeplex.com/ where questions are being closely monitored and answered. I believe your questions about the Azure autoScalling block will be better answered there.
-Emma
-
2012年5月9日 8:12Thank you Emma. Will do.

