Unformatted text preview:

1 Introduction to Database Systems CSE 444 Lecture 24: Databases as a Service CSE 444 - Fall 2010 YongChul Kwon CSE 444 - Fall 2010 References • Amazon SimpleDB Website – Part of the Amazon Web services • Google App Engine Datastore Website – Part of the Google App Engine • Microsoft SQL Azure Website – Part of the Azure platform Motivation • Running a DBMS is challenging – Need to hire a skilled database administrator (DBA) – Need to provision machines (hardware, software, configuration) • If business picks up, may need to scale quickly • In general, workload varies over time • Solution: Use a DBMS service – All machines are hosted in service provider’s data centers – Data resides in those data centers – Pay-per-use policy – Elastic scalability – Zero administration CSE 444 - Fall 2010 Basic Features • Data storage and query capabilities • High availability guarantees • Operations and admin tasks handled by provider • Elastic scalability: Clients pay exactly for the resources they consume; consumption can grow/shrink dynamically – No capital expenditures – Fast provisioning CSE 444 - Fall 2010 Outline • Database in the Cloud – DIY Database in the Cloud – RDBMS as a Service – Database as a Service • Discussion – Technical challenges behind databases as a service – Broader impacts of databases as a service CSE 444 - Fall 2010 Outline: Database in the Cloud • DIY Database in the Cloud – Amazon EC2 + Database software • RDBMS as a service • Database as a service CSE 444 - Fall 20102 DIY Database in the Cloud • Setting up a database server – Buy land (building, room, server rack) – Buy computers and network gears – Install the hardware – Install OS – Install database server • How can we do this using the cloud? CSE 444 - Fall 2010 Amazon Web Services • Since 2006 • “Infrastructure web services platform in the cloud” • Amazon Elastic Compute Cloud (Amazon EC2™) • Amazon Simple Storage Service (Amazon S3™) • Amazon SimpleDB™ • Amazon CloudFront™ • Amazon Simple Queue Service (Amazon SQS™) CSE 444 - Fall 2010 Amazon EC2 • Amazon Elastic Compute Cloud (Amazon EC2™) • Rent compute power on demand (“server instances”) – Select required power: small, large, or extra large instance – Share resources with other users – Variety of operating systems • Includes: Amazon Elastic Block Store – Off-instance storage that persists independent from life of instance – Highly available and highly reliable CSE 444 - Fall 2010 Amazon S3 • Amazon Simple Storage Service (Amazon S3™) – “Storage for the Internet” – “Web services interface that can be used to store and retrieve any amount of data, at any time, from anywhere on the web.” • Some key features – Write, read, and delete uniquely identified objects containing from 1 byte to 5 gigabytes of data each – Objects are stored in buckets, located in US or Europe – A bucket can be accessed from anywhere – Authentication – Reliability CSE 444 - Fall 2010 Let’s hook up what we’ve got! • Buy an EC2 instance • Buy database software – Pre-licensed Amazon Machine Image • Launch your EC2 instance • Hooray!  – Took less than 5 minutes to here! CSE 444 - Fall 2010 Summary: DIY Database in the Cloud • Pros – Fast provision of resource! – Full-control over software • Choose your favorite database software! • Cons – Full-control over software • Operating system, backup, fault-tolerance, security, performance tuning, scaling, … • Can cloud provider manage such detail? CSE 444 - Fall 20103 Outline: Database in the Cloud • DIY Database in the Cloud • RDBMS as a service – Amazon Relational Database Service – Microsoft SQL Azure • Database as a service CSE 444 - Fall 2010 RDBMS as a Service • Cloud provider manages – Operating system, Backup, Fault-tolerance, Scaling • User manages – Schema, Data, Indexes, … • Use your favorite SQL  • Two services – Amazon Relational Database Service – Microsoft SQL Azure CSE 444 - Fall 2010 Amazon Relational Database Service • Features – Backed by MySQL – Easy administration • Backup, replication, adding more resources (CPU, disk) • Automated or initiated by AWS API or via management console – Database size: 5GB ~ 1TB per instance • How to scale? – Adding more resources to master – Adding more read-only replicas CSE 444 - Fall 2010 Microsoft Windows Azure Platform • “Internet-scale cloud computing and services platform” • “Provides an operating system and a set of developer services that can be used individually or together” CSE 444 - Fall 2010 Windows Azure Platform Windows Azure SQL Azure AppFabric DataMarket SQL Azure • Virtualized SQL Azure Server cluster – Azure manages physical cluster • SQL Azure Server – A logical SQL Server – Automatically replicated – Hosts up to 149 databases – 5 GB or 50 GB per database • How to scale? – Partition across multiple databases • Automatically distributed across multiple machines CSE 444 - Fall 2010 Summary: RDBMS as a Service • Remove burden of database administration – Amazon RDS: automate common administration tasks – SQL Azure: separate logical/physical database cluster • Pros – No change to existing applications – Support full SQL, transaction, consistencies – Highly-available, scalable • Cons – Managing schema, indexes, partitioning, tuning, … CSE 444 - Fall 20104 Outline: Database in the Cloud • DIY Database in the Cloud • RDBMS as a service • Database as a service – Amazon SimpleDB, Google App Engine – Google Fusion Table, Big Query CSE 444 - Fall 2010 Database as a Service • RDBMS as a Service is good – But user still has to know a lot about database! • Can cloud manage following? – Schema, Partitioning, Indexing • Two services – Amazon SimpleDB – Google App Engine CSE 444 - Fall 2010 Amazon SimpleDB • “Web service providing the core database functions of data


View Full Document

UW CSE 444 - Lecture Notes

Documents in this Course
XML

XML

48 pages

SQL

SQL

25 pages

SQL

SQL

42 pages

Recovery

Recovery

30 pages

SQL

SQL

36 pages

Indexes

Indexes

35 pages

Security

Security

36 pages

Wrap-up

Wrap-up

6 pages

SQL

SQL

37 pages

More SQL

More SQL

48 pages

SQL

SQL

35 pages

XML

XML

46 pages

Triggers

Triggers

26 pages

Load more
Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?