... ...

Presentation is loading. Please wait.

Presentation is loading. Please wait.

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:

1 Building Robust Windows Azure Applications with P&P Guidance @MaheshKrishnan Principal Consultant, Readify AZR323a

2

3

4

5

6

7

8

9

10

11

12

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

14

15 <rules xmlns= "http://schemas.microsoft.com/practices/2011/entlib/autoscaling/rules"> -->... <rules xmlns= "http://schemas.microsoft.com/practices/2011/entlib/autoscaling/rules"> -->...

16

17

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"/>

19

20

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

24

25

26

27

28

29

30

31

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; });

34

35 demo Name Title Group TOPAZ in action

36

37

38


Download ppt "Building Robust Windows Azure Applications with P&P Principal Consultant, Readify AZR323a."

Similar presentations


Ads by Google