Running your database in the cloud presentation

34
Running Your Database in the Cloud Eran Levin VP R&D - Xeround

Transcript of Running your database in the cloud presentation

Page 1: Running your database in the cloud presentation

Running Your Database in the Cloud

Eran Levin

VP R&D - Xeround

Page 2: Running your database in the cloud presentation

Agenda

• The paradigm shift

• Real life use case

• Challenges running a database in the cloud

• Available solutions

• Q&A

Page 3: Running your database in the cloud presentation

The Paradigm Shift

From Dedicated On premise Over provisioned Self managed

• Without compromising functionality, performance, availability, …

To Shared resources Cloud hosted Pay-per-use Managed service

Page 4: Running your database in the cloud presentation

The Paradigm Shift

• The Cloud

Availability issues

Stateless

Limited control (HW, Virtualization, Networking)

Expectations (reduce capital and operational costs)

• Databases

Mission critical, lossless

Statefull

Usage patterns (data and throughput)

Page 5: Running your database in the cloud presentation

Use Case

eCommerce Application

Page 6: Running your database in the cloud presentation

Architectural Evolution - Rollout

• You are ready to roll your new eCommerce app

• Will deploy in the cloud (price, time to market, flexibility, “cool”)

Page 7: Running your database in the cloud presentation

Arch. Evolution - Failover

ActivePassive

Page 8: Running your database in the cloud presentation

Arch. Evolution – Traffic Increase

Load Balancer

Page 9: Running your database in the cloud presentation

Arch. Evolution – Application Scaling

Load Balancer

Page 10: Running your database in the cloud presentation

Arch. Evolution – Database Failover

ActivePassive

Load Balancer

Page 11: Running your database in the cloud presentation

Arch. Evolution – DB Read Scaling

Master

R

RR

Load Balancer

Page 12: Running your database in the cloud presentation

Architectural Evolution – DB Write Scaling

Master

R

RR

Load Balancer

Page 13: Running your database in the cloud presentation

Arch. Evolution – Anticipating the Peak

Master

R

RR

Load Balancer

RR

Page 14: Running your database in the cloud presentation

Arch. Evolution – Scaling Down

Master

R

RR

Load Balancer

Page 15: Running your database in the cloud presentation

Arch. Evolution – Version Upgrade

Master

R

RR

Load Balancer

Master

R

RR

Load Balancer

Page 16: Running your database in the cloud presentation

Running Your Database in the Cloud

The Challenges

Page 17: Running your database in the cloud presentation

The Challenges

• Availability

• Elasticity

• Manageability

• Cost

Solved for the Web and application levels

Imagine an equivalent solution for your database…

Page 18: Running your database in the cloud presentation

Meeting the Challenges

• Build your own

For example - MySQL on EC2, Postgres on Rackspace, …

Acquire instances

Install the database according to your architecture

Self manage your database

• Database-as-a-Service

For example - Amazon RDS, Xeround, Database.com, …

Page 19: Running your database in the cloud presentation

The Challenges

Availability

Page 20: Running your database in the cloud presentation

Availability

• Standby machine

• Replication

• Failover mechanism

Source:

Page 21: Running your database in the cloud presentation

Cloud Availability Solutions

• Amazon RDS Multi Zone

Master – Slave configuration

Up to 3 minutes recovery

Double the cost

Maintenance window

• Xeround

“Master-Master” configuration

Multiple replicas of the data

Always-on

Page 22: Running your database in the cloud presentation

The Challenges

Scalability

Page 23: Running your database in the cloud presentation

Scalability – Scale Up vs. Scale Out

• Scale Up

Select next available configuration (EC2, RDS)

Relatively simple but limited scalability

• Scale Out

Add additional resources

Complicated but high scalability

RDS Read replicas

Source:

Page 24: Running your database in the cloud presentation

Shared Everything vs. Shared Nothing

• Shared Everything

Scale throughput but limited due to shared resources

Storage and networking limitations in the cloud

ScaleDB

• Shared Nothing

Horizontal data partition / sharding

Unlimited scalability

Many design and implementationchallenges

Page 25: Running your database in the cloud presentation

Shared Nothing in the Cloud

• Xeround Virtual partitioning – decoupling of data and resources

Linear scalability for both reads and writes

Automatic balancing and repartition following changes in data and / or resources with no downtime

• ScaleBase / dbShards Automatically partition the data and direct queries to right

databases

Original databases deployment, management and cost

Partitioning events

• MySQL Cluster NOT supported on virtual environments

Page 26: Running your database in the cloud presentation

Elasticity

• Scaling out/up AND in/down

• One of the Cloud justifications (but what about databases)

Page 27: Running your database in the cloud presentation

The Challenges

Manageability

Page 28: Running your database in the cloud presentation

Manageability

• Self-serve is a fundamental characteristic of cloud computing

• DBaaS should provide User management

DB management

Control and Monitoring

Backup and restore

API to enable extendibility and interaction with the cloud ecosystem

• Solutions: Amazon RDS, Xeround, FathomDB

Page 29: Running your database in the cloud presentation

Build Your Own

Source:

Page 30: Running your database in the cloud presentation

Database as a Service

Page 31: Running your database in the cloud presentation

The Challenges

Cost

Page 32: Running your database in the cloud presentation

Cost

• Pay-per-use is another fundamental characteristic of cloud computing

• Achieving this model requires: Elasticity – scale resources according to actual usage

No over provisioning

No idle standby machines

Sharing resources to share cost

Measuring exact usage

Page 33: Running your database in the cloud presentation

Q & A

Page 34: Running your database in the cloud presentation

Running Your Database in the Cloud

Thank You

[email protected]

www.xeround.com

Visit us in Booth 407