Deploying a Major Server Upgrade on the Cloud
-
Upload
rightscale -
Category
Technology
-
view
568 -
download
0
description
Transcript of Deploying a Major Server Upgrade on the Cloud
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
1
Best Practices in the Cloud: Managing the
Deployment Life Cycle - Part 2
Watch the video of this webinar
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
2
Welcome to RightScale Ongoing Management Tasks Demo 1: Server Failure Demo 2: Major System Upgrade Q&A – Getting Started
Please use chat to ask questions anytime!
Agenda
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
3
Your Panel Today• Michael Crandell – CEO• Thorsten von Eicken - CTO• Ed Goldberg – RightScale Evangelist• Matthew Small – Sr. Account
Manager• Eugene Gimelberg – Sr. Software
Engineer
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
4
Cloud Deployment Life Cycle
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
5
Ongoing Management Tasks
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
6
Response To Server Failure
RightScaleDemo.com
Master Slave
App Srvr
replication
App Srvr
Load bal Load bal
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
7
Response To Server FailureRightScaleDemo.com
Master Slave
App Srvr
replication
App Srvr
Load bal Load bal
Clone failing server configLaunch and assign EIP at boot1
App Srvr
Load bal
clone
rightscaledemo.com. IN A 75.101.145.173rightscaledemo.com. IN A 75.101.135.166
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
8
Response To Server Failure
Clone working serverLaunch and assign EIP1
2 Connect new app server to masterCross connect app servers
RightScaleDemo.com
Master Slave
App Srvr
replication
App Srvr
Load bal Load bal
App Srvr
Load balconnect
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
9
Ongoing Management Tasks
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
10
Deploy Major System Update
RightScaleDemo.com
Master Slave
App Srvr
replication
App Srvr
Load bal Load bal
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
11
Deploy Major System Update
Clone serversLaunch w/out assigning EIP
1
RightScaleDemo.com
Master Slave
App Srvr
replication
App Srvr
Load bal Load bal
App Srvr
Load bal
App Srvr
Load bal
add clone
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
12
Upgrade Strategies• In-place update of servers
– Quick and easy– Good for simple code updates– Avoid when changing system/library
files
• Relaunch fresh servers– More involved but cleaner– Good when rolling out major update, or
changing system/library files
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
13
Clone vs. add server• Clone
– Copies all server-specific settings– EIPs, hostnames, disabled scripts, …– Good when replacing a server as-is
• Add– Creates a fresh server from template– Inherits deployment settings, need to
manually set server-specifics– Good when server template has
changed
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
14
System update step-by-step1. Launch replacement servers2. Quick test of replacement servers3. Run any pre-upgrade DB migrations4. Put maintenance page up5. Halt old server processes6. Run DB migrations7. Start new server processes8. Test new servers9. Switch EIPs from old to new servers10. Test site, watch log files11. Run post-upgrade DB migrations12. Terminate old servers when convenient
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
15
Deploy Major System Update
Clone serversLaunch w/out assigning EIP
1
RightScaleDemo.com
Master Slave
App Srvr
replication
App Srvr
Load bal Load bal
App Srvr
Load bal
App Srvr
Load bal
2 Ensure new servers are readyRun database migrations
connect
launch launch
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
16
Deploy Major System Update
Clone serversLaunch w/out assigning EIP
1
RightScaleDemo.com
Master Slave
App Srvr
replication
App Srvr
Load bal Load bal
App Srvr
Load bal
App Srvr
Load bal
2 Ensure new server are readyRun database migrations
3 Test new serversSwitch over by reassigning EIPs
ec2-12-22-3-45.c-1.amazonaws.com
test
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
17
Deploy Major System Update
Clone serversLaunch w/out assigning EIP
1
RightScaleDemo.com
Master Slave
App Srvr
replication
App Srvr
Load bal Load bal
App Srvr
Load bal
App Srvr
Load bal
2 Ensure new server are readyRun database migrations
3 Test new serversSwitch over by reassigning EIPs
reassign
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
18
Cloud Principle #1:grab the next one!• Database management
– Always roll forward, never fail-back– Animoto upgraded large->XL @600 servers
• App server management– Always roll forward, never fix in-place– www1 bust? Launch www3! Then
troubleshoot
• Smart sysadmins have the urge to fix…
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
19
Managing Cloud Deployments• Resources On Demand• More Automation• Less Administration• Full Control
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
20
Contact a RightScale representative for a live demo or request presentation slides at: [email protected] (866) 720 – 0208
Sign up for a free developer account at: RightScale.com/FreeTrial
Check out our documentation & tutorials at: http://wiki.rightscale.com
Check out our blog at: http://blog.rightscale.com
Q&A - Getting Started
Thank you for listening!
© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential
21
Best Practices in the Cloud: Managing the
Deployment Life Cycle – Part 2