Top Banner
Windows Azure Throttling
15

Microsoft Azure Throttling

Aug 05, 2015

Download

Software

Julien Plée
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Microsoft Azure Throttling

Windows Azure Throttling

Page 2: Microsoft Azure Throttling

TalentSoft

Windows Azure Throttling

Julien PLEEResponsable R&D

TalentSoft

[email protected], @julplee

Page 3: Microsoft Azure Throttling

TalentSoft#talentsoft

AZURE THROTTLING

What is throttling?

Page 4: Microsoft Azure Throttling

TalentSoft#talentsoft

• Multi-Tenant• Resource Management

– Resource Governance– Resource Limits– Engine Throttling

• Affects multiples services• Sql Database Network

Topology

Windows Azure Sql Database Case

Page 5: Microsoft Azure Throttling

TalentSoft#talentsoft

Windows Azure Sql DatabaseUne seule base de données logique

Plusieurs réplicas

physiques

Primaire unique P

lusi

eu

rs c

ible

s se

con

dair

es

Réplic

a 1

Réplic

a 2

Réplic

a 3

Pare

-feu

Page 6: Microsoft Azure Throttling

TalentSoft#talentsoft

Soft Throttling

• Throttles the activities of a subset of Sql Databases that consume most resources

Hard Throttling

• Final Stage. • No more connections

are allowed until resources are freed up

Engine Throttling

40501: The service is currently busy. Retry the request after 10 seconds. Incident ID: <ID>. Code: <code>.

Page 7: Microsoft Azure Throttling

TalentSoft#talentsoft

• Worker Threads and Sessions limits• Depends on Web/Business/Premium

mode• Error code differs from Engine

Throttling (10928)

Resource Governance

Page 8: Microsoft Azure Throttling

TalentSoft#talentsoft

• Database Size• Transaction Duration• Transaction Lock Count• tempdb• Transaction Log Length• Memory Usage

Resource Limits

Page 9: Microsoft Azure Throttling

démo

TalentSoft#talentsoft

AZURE THROTTLING

Page 10: Microsoft Azure Throttling

TalentSoft#talentsoft

AZURE THROTTLING

How to solve problems?

Page 11: Microsoft Azure Throttling

TalentSoft#talentsoft

Solutions• Entity Framework 6• Enterprise Library 5.0 Integration

Pack for Windows Azure• More money: Sql Database Premium

Azure Throttling & Transient Fault Handling

Page 12: Microsoft Azure Throttling

TalentSoft#talentsoft

Sql Database Premium

Reservation Size

CPU Cores

Worker Threads

Active Sessions

Disk IO (IOPS)

Memory (GB)

P1 1 200 2000 150 8

P2 2 400 4000 300 16

Page 13: Microsoft Azure Throttling

démo

TalentSoft#talentsoft

AZURE THROTTLING

Manage throttling

Page 14: Microsoft Azure Throttling

TalentSoft#talentsoft

Hello Talent Case: TransactionInterceptor.cspublic void Intercept(IInvocation invocation){

...

if (Transaction.Current == null){RetryPolicy policy = new RetryPolicy<SqlDatabaseTransientErrorDetectionStrategy>(...);

var transactionOptions = ...

policy.ExecuteAction(() =>{using (var transactionScope = new TransactionScope(...)){invocation.Proceed();transactionScope.Complete();}});}

}

Page 15: Microsoft Azure Throttling