Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

17
Jiazhang Liu;Yiren Ding Team 8 [10/22/13]

description

Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]. Traditional Database. Servers Database Admin DBMS. 1. Traditional Database. High cost Lack of e lasticity Hard to maintain. 1. Introduction. Relational Cloud: “database-as-a-service” ( DBaaS ) Why is it attractive? - PowerPoint PPT Presentation

Transcript of Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Page 1: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Jiazhang Liu;Yiren DingTeam 8

[10/22/13]

Page 2: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Traditional Database

• Servers • Database Admin• DBMS

1

Page 3: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Traditional Database

• High cost• Lack of elasticity• Hard to maintain

1

Page 4: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Introduction

• Relational Cloud: “database-as-a-service” (DBaaS )• Why is it attractive?– Hardware and energy cost much lower– The cost is proportional to actual use (pay-per-use)

• So, how to make Relational Cloud more attractive?– Efficient multi-tenancy – Elastic scalability– Database privacy

2

Page 5: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Efficient multi-tenancy

• Given a set of databases and workloads, what is the best way to serve them from a given set of machines?

3

Page 6: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Efficient multi-tenancy

• Solution:– uses a single database server on each machine which

hosts multiple logical databases.– Relational Cloud periodically determines which

databases should be placed on which machines using a novel non-linear optimization formulation.

– a cost model that estimates the combined resource utilization of multiple databases running on a machine.

3

Page 7: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Elastic scalability

• A good DBaaS must support database and work- loads of different sizes.

• The challenge arise when a database work- load exceeds the capacity of a single machine.

• Must support scale-out, where responsibility for query processing is partitioned among multiple nodes to achieve higher throughput.

4

Page 8: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Database Privacy

• Encrypt all the data stored in the DBaaS. – privacy concerns would largely be eliminated.

• However, any impact on processing encrypted data?

5

Page 9: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Database Privacy

– Developed CryptDB: to provide privacy with an acceptable impact on performance (22.5% reduction in throughput)

5

Page 10: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Database partitioning

• to scale a single database to multiple nodes, useful when the load exceeds the capacity of a single machine.

• to enable more granular placement and load balance on the back-end machines compared to placing entire databases.

6

Page 11: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Database Placement

• Resource allocation is a major challenge when designing a scalable, multi-tenant Service like Relational Cloud.

7

Page 12: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Database Placement

• Resource MonitorMonitor the resource requirements of each workload• Combined Load PredictorPredicting the load multiple workloads will generate when run together on a server• Consolidation Engine Assigning workloads to physical servers

7

Page 13: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

SYSTEM DESIGN

• Relational Cloud Architecture

8

Page 14: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

9

Page 15: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Flipboard

• Greg Scallan, Chief Architect at Flipboard says, “Our service currently runs 100% on AWS in multiple availability zones.”

• “We chose AWS because they were able to provide a majority of the solution we needed as we built our data center. Also, we appreciated the flexibility as we tried out various solutions to our business vision.”

10

Page 17: Jiazhang Liu ; Yiren Ding Team 8 [ 1 0/22/13]

Questions?

12