Top Banner
@ITCAMPRO #ITCAMP15 Community Conference for IT Professionals How to scale above clouds limits Radu Vunvulea Technical Lead, iQuest Group @RaduVunvulea vunvulearadu.blogspot.com
65
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: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

How to scale above clouds limits

Radu Vunvulea

Technical Lead, iQuest Group

@RaduVunvulea

vunvulearadu.blogspot.com

Page 2: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

WHY SCALING IS IMPORTANT

Page 3: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

WHY SCALING IS IMPORTANT

8000m – Cirrus

6000m – Cumulonimbus

4000m – Altostratus

2000m - Nimbostratus

Page 4: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Understand that scaling and failover

is not only cloud provider’s responsibilities,

is also our yours

Goal

Page 5: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

RADU VUNVULEA MCTS MCP BANK HOME AUTOMATION

MVP IoT

AUTOMOTIVE PHARMA

LEAN AND AGILE E-COMMERCE

WEB&SPA iQuest

AZURE JAVASCRIPT VUNVULEARADU.BLOGSPOT.COM

MOBILE DOTNET @RaduVunvulea

WCF WPF ENTHUSIASTIC

Page 6: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Many thanks to our sponsors & partners!

GOLD

SILVER

PARTNERS

PLATINUM

Page 7: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

• Identify limitations

• Investigate different problems

• Overview on different solutions

Agenda

Page 8: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Hardware

Capabilities

Functionality

App Design

Types of limitations

Page 9: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Hardware

Capabilities

Functionality

App Design

Types of limitations

Page 10: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Hardware

Capabilities

Functionality

App Design

Types of limitations

Page 11: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Hardware

Capabilities

Functionality

App Design

Types of limitations

Page 12: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Hardware

Capabilities

Functionality

App Design

Types of limitations

Page 13: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

STORAGE BANDWIDTH

Page 14: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage bandwidth

Target throughput for single blob

• 60MB/s

• 500 requests/s

Per storage account

• 30Gb/s

Page 15: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage bandwidth

Target throughput for single blob

• 60MB/s

Can we still have 10MB/s for

each client?

Page 16: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage bandwidth

Target throughput for single blob

• 60MB/s

Can we still have 10MB/s for

each client? NO

Page 17: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage bandwidth

Solutions

• CDNs

• Content replication

Page 18: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage bandwidth

Solutions

• CDNs

• Content replication

Page 19: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

STORAGE CAPACITY

Page 20: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage capacity

Storage account capacity

• 500TB

Storage accounts

• 100 per subscription

Page 21: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage capacity

Storage account capacity

• 500TB

What happens in 1 year if we produce

2TB of data per day?

Page 22: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage capacity

Storage account capacity

• 500TB

What happens in 1 year if we produce

2TB of data per day? Out of space

Page 23: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Storage capacity

Solution:

• Work with multiple storage

accounts

To be able to do this our application

needs to be able to store a list of

storage accounts, not only one

Page 24: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Configuration

Page 25: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

• CSDEF

• SQL Database

• Azure Table

• Azure Storage

Configuration

Page 26: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

• CSDEF

• SQL Database

• Azure Table

• Azure Storage

–Blobs

–XML Format

Configuration

Page 27: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

HOW LONG WE CAN SCALE?

Adding more and more instances and resources is a good solution.

Can we quarantee the quality of our service when we are adding more and more

resources?

How much we can stretch in this way?

Page 28: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Adding more instances

Page 29: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Adding more instances

Page 30: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Adding more instances

Page 31: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Adding more instances

• Soon this will break, why?

–The quality of service will not remain the same by adding

more and more resources

–Managing a large infrastructure will

be a nightmare

–Our confidence will be lower and

lower

Page 32: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Adding more instances

• Soon this will break, why?

–The quality of service will not remain the same by adding

more and more resources

–Managing a large infrastructure will

be a nightmare

–Our confidence will be lower and

lower

• In the end the system will BREAK

Page 33: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Page 34: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Scaling Unit

• Grouping resources together and defining the

quality attributes of that scaling unit

• When the limits are hit

another scaling unit is

added, without adding

more resources to the

current one(s)

Page 35: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Scaling Unit

Page 36: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Scaling Unit

20.000 + 1

Page 37: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Scaling Unit

20.000 + 20.000+ 1

Page 38: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

FAILOVER MECHANISM

What should we do when we need better SLA?

Or a failover mechanism…

… to be able to be up and running even during and after a major disaster…

Page 39: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

• One or more services from

current region are going

down

• What should we do?

Failover mechanism

Page 40: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

• Adding resources in another region

Failover mechanism

Page 41: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

• Adding resources in another region

–Before

–During

–After

a disaster

Failover mechanism

Page 42: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

• Adding resources in another region

–Before, is great. But with extra costs

–During, we can lose a part of data

–After, is to late. We are not the only one in this situation

a disaster

Failover mechanism

Page 43: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

ACTIVE-PASSIVE

Page 44: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Active - Passive

• Active is upOnly storage is allocated

on the passive

Page 45: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Active - Passive

• Active is up

Page 46: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Active - Passive

• Active is down

Page 47: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

ACTIVE-ACTIVE

Page 48: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Active - Active

• Active is up75% of computation power is

allocated on passive

Page 49: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Active - Active

• Active is up

Page 50: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Active - Active

• Active is down

Page 51: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Active-Active

• Minimum downtime

• Resource reservation

• You pay for resources that you don’t use

• Data sync can be a nightmare

Active-Passive

• A few seconds (minutes) downtime

• No resources reservation

• No extra costs (except storage)

• Data sync can be a nightmare

Active – Active & Active - Passive

Page 52: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Page 53: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Page 54: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

WHAT ABOUT COMMUNICATION

It is not enough to have a failover mechanism for storage and computing

If there is no communication channel between the components then by they are used…

Page 55: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Communication Channel

Page 56: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Communication Channel

• Active-Active

• Active-Passive

Page 57: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Communication Channel

• Active-Passive

Page 58: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Communication Channel

• Active-Passive

Page 59: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Communication Channel

• Active-Active

Page 60: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

CONCLUSION

Page 61: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

• We should scale our system in different ways, not

only by adding more instances

• Scaling Unit is a good way for scaling

• Active-Active can be useful but is expensive and can

be a nightmare

Conclusion

Page 62: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

Q & A

Page 63: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

THANK YOU

@Radu Vunvulea

[email protected]

www.vunvulearadu.blogspot.com

Page 64: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

TAKE A LOOK ON SCALING UNIT CONCEPT

Next steps

Page 65: It camp 2015   how to scale above clouds limits, radu vunvulea

@ITCAMPRO #ITCAMP15Community Conference for IT Professionals

THANK YOU