... Download presentation Presentation is loading. Please wait. Published byHector Smith
Modified over 9 years ago
1
Building Robust Windows Azure Applications with P&P Guidance @MaheshKrishnan Principal Consultant, Readify AZR323a
13
public class WorkerRole : RoleEntryPoint { private Autoscaler _autoscaler;... public override bool OnStart() { _autoscaler = EnterpriseLibraryContainer.Current. GetInstance (); _autoscaler.Start();... } public override void OnStop() { _autoscaler.Stop();... } public class WorkerRole : RoleEntryPoint { private Autoscaler _autoscaler;... public override bool OnStart() { _autoscaler = EnterpriseLibraryContainer.Current. GetInstance (); _autoscaler.Start();... } public override void OnStop() { _autoscaler.Stop();... } Changes in code
15
<rules xmlns= "http://schemas.microsoft.com/practices/2011/entlib/autoscaling/rules"> -->... <rules xmlns= "http://schemas.microsoft.com/practices/2011/entlib/autoscaling/rules"> -->...
18
<performanceCounter alias="CPU" performanceCounterName="\Processor(_Total)\% Processor Time" source="SM.Website" timespan="00:05:00" aggregate="Average"/> <performanceCounter alias="CPU" performanceCounterName="\Processor(_Total)\% Processor Time" source="SM.Website" timespan="00:05:00" aggregate="Average"/>
21
<role roleAlias=“SM.Website” scaleDownCooldown=“00:10:00” scaleUpCooldown=“00:10:00” scaleDownOnlyinLastMinutesOfHour=“10” scaleUpOnlyInFirstMinutesOfHour=“30”> <role roleAlias=“SM.Website” scaleDownCooldown=“00:10:00” scaleUpCooldown=“00:10:00” scaleDownOnlyinLastMinutesOfHour=“10” scaleUpOnlyInFirstMinutesOfHour=“30”>
22
demo Name Title Group WASABi in action
23
Transient Errors Handling them using TOPAZ
32
//Use retry aware connection using (var conn = new ReliableSqlConnection (connString, retryPolicy)) { conn.Open(); var cmd = conn.CreateCommand(); cmd.CommandText = sqlStmt; //retry aware ExecuteCommand int count = cmd.ExecuteScalar(); } //Use retry aware connection using (var conn = new ReliableSqlConnection (connString, retryPolicy)) { conn.Open(); var cmd = conn.CreateCommand(); cmd.CommandText = sqlStmt; //retry aware ExecuteCommand int count = cmd.ExecuteScalar(); }
33
sqlRetryPolicy.ExecuteAction(() => { // Invoke a LinqToSQL query. }); return sqlRetryPolicy.ExecuteAction >( () => { // Invoke a EF LINQ query return result; }); sqlRetryPolicy.ExecuteAction(() => { // Invoke a LinqToSQL query. }); return sqlRetryPolicy.ExecuteAction >( () => { // Invoke a EF LINQ query return result; });
35
demo Name Title Group TOPAZ in action
Similar presentations © 2025 SlidePlayer.com. Inc. Log in
Building Robust Windows Azure Applications with P&P Principal Consultant, Readify AZR323a.
Similar presentations
Presentation on theme: "Building Robust Windows Azure Applications with P&P Principal Consultant, Readify AZR323a."— Presentation transcript:
Similar presentations
All rights reserved.