More Related Content
Similar to Deploying in the Cloud: Why and How (20)
Deploying in the Cloud: Why and How
- 1. Deploying in the Cloud:
Why and How
Unix Users Association of Southern CA
January 8th, 2009
Presented by:
Matthew Small
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
1
- 2. Agenda
Welcome to RightScale
Cloud Deployment Life Cycle
Deploying in the Cloud
Autoscaling Servers
Ongoing Management Tasks
Examples and Demonstrations
Q&A – Getting Started
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
2
- 3. Cloud Computing
On-demand
•
Pay-as-you-go
•
Virtually infinite
•
Surpasses traditional hosting
•
Multiple server sizes: ½ core to 8 cores
–
Reassign IPs / VIPs
–
Multiple failure zones and geographies
–
Disk Volumes
–
Cloud interoperability
–
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
3
- 4. EXPERTISE
Cloud Management Platform
Cloud Applications
EXPERTISE
AUTOMATED COMPONENT
RightScale
& SUPPORT
MANAGEMENT LIBRARIES
WEB SITE RIGHTSCRIPTS
GRID MYSQL MGR
Other
Amazon FlexiScale SliceHost GoGrid
Clouds
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
4
- 5. RightScale Ecosystem
Customers Software Vendors
Pre‐packaged components Cloud roadmap & portability
Expertise & best practices Customer acquisition
RightScale Platform
Cloud Providers
State‐of‐the‐art management system
Access to customers & ISV content
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
5
- 6. Agile Deployment
• Agile = automate and benefit!
– From boot to production on auto-pilot
– Across different stacks & different clouds
– Auto-failover, auto-restart, auto-scale
Agile Development
Meets Agile Deployment
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
6
- 7. Next Generation Server Architecture
• “Cloud-ready” servers and clusters
– More than just running a bundled image
• Dynamic vs. static configuration
– Leverage one server model across different deployments
– Replicable design
– Complete lifecycle management … version control
• RightScale ServerTemplates
– Define the composition and configuration of your servers
– Like burning a CD from a Playlist
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
7
- 8. RightScale ServerTemplates
• Base OS image plus the intelligence to
run RightScripts
• Boot, Operational and Decommission
Scripts
– Configure instances during boot time including installing software and
passing environment variables
– Reconfiguration with Operational scripts
– Decommission scripts
• Library of RightScale and Partner
Templates or create your own
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
8
- 9. Key Benefits: Cloud-Ready Servers
✓ Save time and reduce complexity
- Dynamic configuration
✓ Portability
- Configure once, deploy multiple times
✓ Do more with less
- Complete lifecycle management
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
9
- 10. Sample Deployment
• 4-servers
– 2x load balancer/app servers
– 2x master/slave database
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
10
- 11. Auto Scaling
• Rules-based system
• More than just launching an instance
– Complete system architecture
– Auto configuration into cohesive resilient cluster
– Support for workflow and lifecycle management
• Addressing multiple business cases
– Load: Highly elastic web applications (e.g., Facebook app)
– Schedule: Event-based content sites
– Queue: Size and time in queue for batch processing needs
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
11
- 12. Scale-Out the App
• 2x front-ends
w/Elastic IPs
• 2+N app servers
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
12
- 13. Back-end Processing
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
13
- 14. PHOTOS
+
MUSIC
=
VIDEO
~8 cpu minutes
for each video
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
14
- 15. in 3.5 days
80 to 3500 servers
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
15
- 16. Cloud Deployment Life Cycle
Manage Design
Deploy
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
16
- 17. Managing Cloud Deployments
Resources On Demand
•
More Automation
•
Less Administration
•
Full Control
•
Manage Design
Deploy
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
17
- 18. Ongoing Management Tasks
• Migrate to larger instances
Demand Grows • Add more servers
• Set up dynamic arrays and auto-scaling
New Feature • Stage, Test
• Update application servers
Rollout
• Stage, Test
New System • Update servers
Software Versions
• Restart servers
Failures • Failover to new servers
• Failover to slave databases
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
18
- 19. Deployment Management
Traditional Way … Cloud Way …
When software needs to be When software needs
upgraded, risk in place to be upgraded, launch
upgrade and downtime or new servers with
purchase duplicate upgraded software;
hardware decommission old when
new environment
stabilizes
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
19
- 20. Deployment Management
Traditional Way … Cloud Way …
When database fails over to When database fails
slave, troubleshoot and over to slave, start up
fix master new slave
When database machine When database
needs to be upgraded, machine needs to be
either upgrade with no upgraded, launch new
redundancy or purchase servers; decommission
duplicate hardware; old when new
afterward redeploy or environment stabilizes
dispose of old hardware
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
20
- 21. Migrate Database to Larger
Instance Clone slave to large instance
1
Change from small to large slave
Launch large slave, wait to synchronize
App Srvr
Small Small Small Small
replication
master slave master slave
Large
slave
Failover from small master
2
to large slave
Launch new large slave
3
App Srvr App Srvr
Terminate old servers
Small Small
master slave
Large
Large Large
replication
slave
master master
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
21
- 22. Respond to Server Failure 1
www.mysite.com www.mysite.com
Clone working server
Launch and assign EIP
Failing Failing New
App Srvr App Srvr
App Srvr App Srvr App Srvr
master slave master slave
replication replication
Cross connect app servers Terminate old server
3
2
Connect new app server to master
Failing New New
App Srvr App Srvr
App Srvr App Srvr App Srvr
master slave master slave
replication replication
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
22
- 23. Rollout New Features
Upgrade In-place
Decommission one server at a time, load
www.mysite.com 1
balancer manages demand
Update from SVN operational script
2
Apache Apache
HAproxy HAproxy
Rinse and Repeat
3
App Srvr
App Srvr
App Srvr
V1.0
V2.0
V1.0
V1.0
MySQL MySQL
replication
master slave
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
23
- 24. Deploy Major System Update
Option 1 – New and Old Co-exist
www.mysite.com www.mysite.com
1
Provision New Server New
Launch with Updated
App Srvr App Srvr App Srvr App Srvr
App Srvr
System
master slave master slave
replication replication
Cross connect app servers
Terminate old server
3
2 Connect new app server to master
Assign EIP
New
New
App Srvr
App Srvr App Srvr
App Srvr
App Srvr
master slave master slave
replication replication
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
24
- 25. Deploy Major System Update
Option 2 – Launch Multiple Servers, Flip at Once
www.mysite.com
Provision New Servers
1
Launch Updated Servers
New New
App Srvr App Srvr
App Srvr App Srvr
master slave
replication
3
www.mysite.com
Cross connect new app servers
Terminate old servers
2 Connect new app server to master
Assign EIPs
New New New New
App Srvr App Srvr
App Srvr App Srvr App Srvr App Srvr
master slave master slave
replication replication
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
25
- 26. Demonstration
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
26
- 27. Q&A - Getting Started
Contact a RightScale representative for a live
demonstration or to request presentation slides at:
sales@rightscale.com
(866) 720 – 0208
Sign up for a free developer account at:
RightScale.com/FreeTrial
Follow one of our Tutorials
Wiki.RightScale.com
Support Resources
Forums.RightScale.com or Help.RightScale.com
Thank you for listening!
© 2008 RightScale Inc.—All rights reserved. RightScale Company Confidential
27