mastering amazon rds data masters. special thanks to… miami innovation center for entrepreneurship

24
Mastering Amazon RDS Data Masters

Upload: barry-west

Post on 26-Dec-2015

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

MasteringAmazon RDS

Data Masters

Page 2: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Special Thanks To…

Miami Innovation Center for Entrepreneurship

www.startup-miami.com/mice

Page 3: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Our Sponsor!

John Jadvani954-527-0090

Page 4: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Short bio about me… Andrew Simkovsky 15 years working with database technology

Oracle, MySQL/MariaDB, SQL Server, Postgres

Redis, MongoDB, CouchDB, Cassandra, Neo4j Worked across many industries

Consulting, Retail, Telecommunications, Energy

Data, Marketing, Gaming, Health care

Page 5: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

DBTekPro

www.dbtekpro.com

[email protected]@asimkovsky

Page 6: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Let’s Get Started!

Page 7: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

What is the “Cloud”?

Fancy Hosting

Page 8: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Evolution of the Cloud

Website on a shared hosted server

Website on a dedicated hosted server

Virtualized servers with a management toolset

Abstract services: Storage as a service Database as a service Applications as a service

Most are “pay as you go”

Page 9: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Cloud Service Providers

Page 10: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Some Cloud-based Solutions

Page 11: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Amazon Web Services

EC2 (Elastic Cloud 2) – virtualized servers

EBS (Elastic Block Storage) – disk volumes

S3 (scalable storage) – arbitrary storage

Glacier – archive / backup storage

RDS – relational database service

Elastic Beanstalk – application containers

Page 12: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

RDS

Dynamically provisioned database storage

No operating system for you to access

Platforms: MySQL Oracle SQL Server PostgreSQL

“Mostly” pre-configured

Page 13: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Some cool features…

On-demand provisioning

Basic monitoring / metrics provided

Automated backups

Automated recovery

User initiated “snapshots”

Automated replication

Software upgrades provided

Page 14: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Some gotchas…

Failovers are NOT instant. Can take up to 6 minutes. Maybe more, depending on

database size

Only limited platforms / versions are supported.

Upgrades / patching requires downtime. You set an allowable maintenance window. Amazon will

upgrade sometime during that window.

Can suffer from “noisy neighbor” syndrome.

Performance issues are sometimes hard to pinpoint

Master-Master replication is NOT supported

Page 15: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

RDS vs EC2+Database

RDS

Quick provisioning

“Easy” management

Simple environment setup

Simplified replication strategy

No OS-level control

Limited granular fine tuning

Limited platform / versions

EC2+Database

You manage it yourself

OS & storage overhead

Software / version management

Configuration

Usually more costly

More control over config / performance

Allows more complex setups

Ease of use Power & Control

Page 16: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Some General AWS Concepts

Page 17: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Amazon Regions

Page 18: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Availability Zones

REGION

AZ1 AZ2

AZ3 AZ4

M S

SS

Page 19: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Security Groups

A “virtual” firewall

Can create a security group and place resources inside them

Can set access rules between security groups

Access rules can specify source/destination IP addresses, port numbers, etc.

Page 20: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Security Groups

Application Servers

Cache Servers

Database Servers

Server

Server

Server

Server

Database

Database

Page 21: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Amazon AWS Free Tier (first 12 months)

750 hours EC2 Linux “micro” server

750 hours EC2 Windows “micro” server

750 hours Elastic Load Balancer

30gb EBS Storage

5gb S3 Storage

100mb DynamoDB storage

750 hours RDS “micro” instance with 20gb of storage

750 ElastiCache

Page 22: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Live Demo!

Page 23: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Questions?

Page 24: Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship

Thank You For Coming!

Please rate this Meet Up:www.meetup.com/data-masters

(or go there to join!)

Check out my blog and forums:www.dbtekpro.com