amazon ec2 to amazon vpc: a case study

24
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified, or distributed in whole or in part without the express consent of Amazon.com, Inc. EC2 to VPC: A case study Eric Schultze, AWS Matthew Barlocker, Lucid Software Inc November 14, 2013

Upload: matthew-barlocker

Post on 11-May-2015

2.739 views

Category:

Technology


1 download

DESCRIPTION

Originally presented at AWS re:Invent 2013 in Las Vegas, NV with Eric Shultze, product manager of VPC.

TRANSCRIPT

Page 1: Amazon EC2 to Amazon VPC: A case study

© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified, or distributed in whole or in part without the express consent of Amazon.com, Inc.

EC2 to VPC: A case study

Eric Schultze, AWS

Matthew Barlocker, Lucid Software Inc

November 14, 2013

Page 2: Amazon EC2 to Amazon VPC: A case study

About Me• Chief Architect at Lucid

Software Inc• Bachelors degree from BYU in

Computer Science• I love to

• play board games• go 4-wheeling• wrestle my sons• fly airplanes

• Follow me on nineofclouds.blogspot.com

Page 3: Amazon EC2 to Amazon VPC: A case study

Lucid Software

• Online Diagram Software• Online Print & Digital Publishing• Large Documents• Real-time Collaboration• All Changes Tracked• Vector Graphics• High Quality Images

Page 4: Amazon EC2 to Amazon VPC: A case study

Tech at Lucid• Google Closure• Javascript• PHP• Sharded MongoDB• Sharded MySQL• NodeJS

• SOA• Scala• Play!• Chef• Zabbix, Graphite• AWS

Page 5: Amazon EC2 to Amazon VPC: A case study

Lucid on AWS• Elastic Compute Cloud• Virtual Private Cloud• Elastic Block Store• Auto Scaling• Elastic Load Balancing• Simple Storage Service• CloudFront• Export/Import

• Relational Database Service

• Route53• Simple Notification

Service• Simple Email Service• Availability Zones• Regions

Page 6: Amazon EC2 to Amazon VPC: A case study

Why Lucid Chose Amazon VPC

• Pricing• Interoperability• Enhanced Features• Security

Page 7: Amazon EC2 to Amazon VPC: A case study

Other Benefits

• ELB security groups• Network ACLs• Elastic IP associations• VPN support• Reserved instance transfers

Page 8: Amazon EC2 to Amazon VPC: A case study

Drawbacks

• NAT cost and maintenance• Setup time• New terminology• Private subnet accessibility• Internal DNS names defaults

Page 9: Amazon EC2 to Amazon VPC: A case study

Things You Should Know

• EIPs or Public IPs in public subnets• NAT

• Not special• Public subnet

• Subnets• Route tables• Network ACLs• DHCP

Page 10: Amazon EC2 to Amazon VPC: A case study

Migration Plan

Page 11: Amazon EC2 to Amazon VPC: A case study

Migration Constraints• EC2 & VPC

communication• NAT traffic• Not Shared:

– Security groups– Load balancers– Auto Scale groups– Elastic IPs– EIP Limits

• Shared:– Instance Limit– EBS volumes– Snapshots– Instance Sizes– Zones– Regions

Page 12: Amazon EC2 to Amazon VPC: A case study

Migration Plan

• Move top layer first• Move one layer at a time• Meticulously manage security groups• Move monitoring/utility servers last• http://nineofclouds.blogspot.com/search/label/VPC

Page 13: Amazon EC2 to Amazon VPC: A case study

Starting Layout

Page 14: Amazon EC2 to Amazon VPC: A case study

Move Webservers First

Page 15: Amazon EC2 to Amazon VPC: A case study

Move Services Next

Page 16: Amazon EC2 to Amazon VPC: A case study

Move Databases Last

Page 17: Amazon EC2 to Amazon VPC: A case study

Top 5 Pain Points

Page 18: Amazon EC2 to Amazon VPC: A case study

5. Setup & Terminology• Subnets• DHCP• Network ACLs• Routes• Internet Gateway• Unavoidable

Page 19: Amazon EC2 to Amazon VPC: A case study

4. Security Groups• Groups Not Shared• EC2 open to NAT• Use Scripts• Avoidable using

public subnets

Page 20: Amazon EC2 to Amazon VPC: A case study

3. Access Private Subnets• OpenVPN• High Availability• SSH Tunnels• Unavoidable

Page 21: Amazon EC2 to Amazon VPC: A case study

2. MongoDB Migration• Election Algorithm• Intermediate Move to

Public Subnet• 15 min Downtime

Page 22: Amazon EC2 to Amazon VPC: A case study

1. NAT Bandwidth• NAT was t1.micro• Databases in EC2• Applications in VPC• Not enough

bandwidth through NAT

• Avoidable

Page 23: Amazon EC2 to Amazon VPC: A case study

Please give us your feedback on this presentation

As a thank you, we will select prize winners daily for completed surveys!

CPN301

Page 24: Amazon EC2 to Amazon VPC: A case study

Join the Team!• Building the next generation of

collaborative web applications• VC funded• High growth rate• Profitable• Graduates from Harvard, MIT,

Stanford• Former Google, Amazon,

Microsoft employees

https://www.lucidchart.com/jobs