9. Discipline
• Moving to the cloud
– Get your meatspace in order
– Create your own AMI (image)
– Use sane defaults
• Test
– And test
– And test some more
9
10. Discipline
• Loca6on, loca6on, loca6on
– Be aware of latency
– Amazon offers many loca6ons (regions)
• US East
• US West
• EU (Ireland)
• Asia/Pacific (Singapore)
10
11. Discipline
• Decide on image availability
– Reserved instances
– Spot instances
– On demand instances
• Tie storage to an instance
– Only when necessary
• Create with transience in mind
11
12. Tools
• Web based
– Amazon’s AWS console
• Free
• Full featured
– Rightscale
• Not free
• Excellent for full automa6on
– SCALR
• Not free
• Excellent for full automa6on
12
13. Tools
• Elas6fox
– Graphical
– Firefox based
– 80%
• Tim Kay’s aws tools
– Command line
– hep://www.6mkay.com/aws/
– scriptable (key!)
13
14. Tools
• boto
– Python based
– hep://code.google.com/p/boto/
– command line
– scriptable
• mr.awsome
– Python based
– Uses boto
– hep://pypi.python.org/pypi/mr.awsome
– command line
– scriptable
14
16. Concept
• Base AMI
– Built on Debian Lenny
– Stripped to the minimum
– puppet client installed
• Start new AMI
– Assign a class
– Authen6cate to puppet
– Go get coffee
16
17. Concept
• puppet
– installs packages based on class
– sets up configura6on
– adds users and groups
– sets up ssh auth
– starts essen6al services
17
18. Concept
• ZenOSS
– Can autodiscover new hosts
– Hosts can be grouped by func6on
– Monitoring and stats gathering
• flume
– Centralizes logs
– Allows for analysis
18