2. Story teller?
✤ Denish Patel
✤ denish@omniti.com
✤ Database Architect at OmniTI
✤ Heterogeneous Environment
✤ PostgreSQL, Oracle , MySQL, NoSQL
✤ Scalability, Performance & Simplicity
✤ OmniTI is hiring Database Engineer!
2
Tuesday, May 7, 13
3. Situation
✤ Startup
✤ Ruby on Rails Shop
✤ Entire IT architecture on Amazon Cloud
✤ 2 Identical Database Environments on EC2
✤ 4 Production Instances
✤ 50GB Each PostgreSQL 9.0 Master - Slave ( 2 Pairs)
✤ 2 QA and 2 Dev environments
3
Tuesday, May 7, 13
4. Situation
✤ Weekly flake out issues on EC2 instances
✤ Weekly backups using pg_dump
✤ No file system level backup
✤ Master-slave wasn’t working for months!
✤ Schema mismatch between 2 environments
✤ Almost NO monitoring in-place for DBs
4
Tuesday, May 7, 13
5. Situation
✤ Prod , QA and Dev ...
✤ M1 Extra large instances (m1.xlarge)
✤ 15 GB RAM, 4 Virtual Cores with 2 EC2 compute units each
✤ Configuration Management tool - Puppet
5
Tuesday, May 7, 13
6. The Amazon Cloud
✤ Business Benefits
✤ Offloading heavy lifting
✤ Lowers cost
✤ Reduces time to market
6
Tuesday, May 7, 13
10. Network and Security
✤ Amazon Security Groups
✤ Keep your Amazon EC2 firewall permissions as restrictive as
possible.
✤ Elastic IP Address (EIP)
10
Tuesday, May 7, 13
12. Sizing Instances/Storage
✤ Understand your database , schema and data
✤ Env 1: 50GB , Env 2: 25GB
✤ 2 large archival tables
✤ Working Set about 20-30GB in total
✤ Both environments are inter-related.
✤ Decided to consolidate both environment into single cluster
12
Tuesday, May 7, 13