Deploying a Major Server Upgrade on the Cloud

21
© 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

description

RightScale Webinar: January 22, 2009 – This webinar continues our exploration of how to manage deployments on the cloud. What happens when you need to perform a major software upgrade – either application software or underlying system software? We demonstrate how much easier and more efficient it is to perform maintenance tasks on the cloud using the RightScale Cloud Management Platform. And we also show how you can stay in control through the entire process.

Transcript of Deploying a Major Server Upgrade on the Cloud

Page 1: 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

Page 2: Deploying a Major Server Upgrade on the Cloud

© 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

Page 3: Deploying a Major Server Upgrade on the Cloud

© 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

Page 4: Deploying a Major Server Upgrade on the Cloud

© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential

4

Cloud Deployment Life Cycle

Page 5: Deploying a Major Server Upgrade on the Cloud

© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential

5

Ongoing Management Tasks

Page 6: Deploying a Major Server Upgrade on the Cloud

© 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

Page 7: Deploying a Major Server Upgrade on the Cloud

© 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

Page 8: Deploying a Major Server Upgrade on the Cloud

© 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

Page 9: Deploying a Major Server Upgrade on the Cloud

© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential

9

Ongoing Management Tasks

Page 10: Deploying a Major Server Upgrade on the Cloud

© 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

Page 11: Deploying a Major Server Upgrade on the Cloud

© 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

Page 12: Deploying a Major Server Upgrade on the Cloud

© 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

Page 13: Deploying a Major Server Upgrade on the Cloud

© 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

Page 14: Deploying a Major Server Upgrade on the Cloud

© 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

Page 15: Deploying a Major Server Upgrade on the Cloud

© 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

Page 16: Deploying a Major Server Upgrade on the Cloud

© 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

Page 17: Deploying a Major Server Upgrade on the Cloud

© 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

Page 18: Deploying a Major Server Upgrade on the Cloud

© 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…

Page 19: Deploying a Major Server Upgrade on the Cloud

© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential

19

Managing Cloud Deployments• Resources On Demand• More Automation• Less Administration• Full Control

Page 20: Deploying a Major Server Upgrade on the Cloud

© 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!

Page 21: Deploying a Major Server Upgrade on the Cloud

© 2009 RightScale Inc.—All rights reserved. RightScale Company Confidential

21

Best Practices in the Cloud: Managing the

Deployment Life Cycle – Part 2