osom - operations in the cloud
DESCRIPTION
OSOM - Open Source Open Mind - V3.0 Back to the roots - Cluj Napoca 2012 www.osom.roTRANSCRIPT
![Page 1: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/1.jpg)
Operations in the Cloud
Marius StuparuDevOps @ SDL Language Weaver
![Page 2: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/2.jpg)
SummaryThe Cloud, AWS Web Services Best Practices in the Cloud High Availability and Scalability in the Cloud Alternative Open Source Solutions
![Page 3: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/3.jpg)
What is cloud computing?
IaaS, PaaS, SaaS
![Page 4: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/4.jpg)
![Page 5: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/5.jpg)
Who is using it?
![Page 6: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/6.jpg)
Why?
- Zynga thought 200 thousand daily active users on Farmville would count as a success(2009).- 1 million new net users every single week- Within a year, FarmVille had more than 50 million monthly active users- CityVille on AWS was able to scale up to ~60 million active monthly users in the first 2 months!!!
![Page 7: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/7.jpg)
AWS
● Amazon started really simple● Ec2 - Virtual Machines service● S3 - Storage service
![Page 8: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/8.jpg)
![Page 9: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/9.jpg)
Elastic Block Store(EBS)
● local storage is volatile ● use EBS for persistent storage(network
accessible block storage volumes). ● try to keep persistent data on S3 or RDS.
EBS performance varies
![Page 10: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/10.jpg)
Elastic Block Store(EBS)
![Page 11: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/11.jpg)
Elastic Load Balancers
Cool things:● ELB- Availability zones ● SSL termination
![Page 12: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/12.jpg)
Relational Database Service
● RDS (Multi AZ availability, fail-over ~5min) ● Easy to launch replicas and offload read
traffic (3 clicks away) ● Backup using PITR, Snapshots
![Page 13: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/13.jpg)
● Infrastructure as code● Configuration management● Orchestration● Automated Provisioning/Auto Scaling● Repeatable/Reproducible Servers
(cloning your servers)
![Page 14: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/14.jpg)
April 21 2011 Server Down
![Page 15: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/15.jpg)
Eliminate Single Point of Failures ● architect around these problems● decouple your components (queues)● build asynchronous systems and scale
horizontally● make your applications as stateless as
possible● use multiple cloud providers (AWS,
RackSpace, GoGrid, Linode.)
![Page 16: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/16.jpg)
Netflix Chaos Monkey
![Page 17: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/17.jpg)
All about being fast
● Cache database responses, objects, fully
formed html (ElastiCache)● CDN● Follow the Sun● Try to touch metal only when necessary, use
local storage or SAN, avoid NFS
![Page 18: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/18.jpg)
DNS Management
● Route 53 LBR
● LBR = Latency Based Routing
what it does:
● route your user to the closest server which
runs your application
![Page 19: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/19.jpg)
Monitor and graph everything
● RightScale collectd, AWS CloudWatch
● NewRelic
● PingDom, Catch Point, Uptrends
● Nagios, Cacti, Zabbix
● Splunk
![Page 20: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/20.jpg)
AWS Cloudwatch
![Page 21: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/21.jpg)
New Relic - RUM
![Page 22: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/22.jpg)
New Relic - Application Monitoring
![Page 23: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/23.jpg)
![Page 24: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/24.jpg)
Open Source Alternatives
Foreman (no logo) - web ui for puppet
![Page 25: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/25.jpg)
Other useful tools
● Git (Github)
● Vagrant
● If you have a python stack look at boto
(Python interface to Amazon Web Services)
![Page 26: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/26.jpg)
Q&A
![Page 27: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/27.jpg)
Thank You!
![Page 28: OSOM - Operations in the Cloud](https://reader034.vdocuments.us/reader034/viewer/2022042521/5494f6d2b47959564d8b4c16/html5/thumbnails/28.jpg)
Slides: http://www.slideshare.net/mstuparu/osom-operations-in-the-cloud
Contact information: