14
april25-26 sanfrancisco cloud success starts here ServerTemplate Best Practices Tim Miller, Sr. Director ServerTemplate Development Cary Penniman, Sr. Software Engineer

ServerTemplate Best Practices - RightScale Compute 2013

Embed Size (px)

Citation preview

Page 1: ServerTemplate Best Practices - RightScale Compute 2013

april25-26

sanfrancisco

cloud success starts here

ServerTemplate Best Practices

Tim Miller, Sr. Director ServerTemplate Development

Cary Penniman, Sr. Software Engineer

Page 2: ServerTemplate Best Practices - RightScale Compute 2013

#2#2

#RightscaleCompute

Agenda

• Best Practices

• Efficient Development Workflow

• Going to Production

• How to Control Changes

• Customizing

• Data Storage with the Storage Toolbox

• Q/A

Page 3: ServerTemplate Best Practices - RightScale Compute 2013

#3#3

#RightscaleCompute

Quick Poll

Page 4: ServerTemplate Best Practices - RightScale Compute 2013

#4

#rightscalecompute

Best Practices

Our Picks

Page 5: ServerTemplate Best Practices - RightScale Compute 2013

#5#5

#RightscaleCompute

Efficient Development Workflow

• Chef workflow using rsync

• rs_run_recipe –n cookbook::recipe

Run locally first

Avoid re-launch

Page 6: ServerTemplate Best Practices - RightScale Compute 2013

#6#6

#RightscaleCompute

Going to Production

• Don’t run on HEAD!

• Package Repository Freeze Dates

• Cookbook Repositories

• External Dependencies

Page 7: ServerTemplate Best Practices - RightScale Compute 2013

#7#7

#RightscaleCompute

Controlling Changes

• Pristine Production, Staging clone for development

• Follow standard branching and merging

Page 8: ServerTemplate Best Practices - RightScale Compute 2013

#8#8

#RightscaleCompute

Customizing

• Zero change is ideal

• Isolate changes to custom scripts

• Start with Base ServerTemplate for Linux (v13.3)

• Monitoring, Alerts, Firewall, Logging, NTP, etc.

• Latest RightImages

Page 9: ServerTemplate Best Practices - RightScale Compute 2013

#9#9

#RightscaleCompute

• Keep data in multiple locations!

• Local backups to volumes

• Remote backups to object storage

Data Storage

Page 10: ServerTemplate Best Practices - RightScale Compute 2013

#10#10

#RightscaleCompute

Data Storage (cont.)

• Get to know the RightScale "Storage Toolbox”

Page 11: ServerTemplate Best Practices - RightScale Compute 2013

#11#11

#RightscaleCompute

Leveraging the Storage Toolbox

1. Backup data to another

2. Restore data in case of outage

Page 12: ServerTemplate Best Practices - RightScale Compute 2013

#RightscaleCompute

#12#12

Page 13: ServerTemplate Best Practices - RightScale Compute 2013

#13#13

#RightscaleCompute

For more information

• ServerTemplate Developer Guide (http://bit.ly/173Boca)

• Chef workflow using rsync (http://bit.ly/100lWHw)

• Prepare for Production (http://bit.ly/17oHz90)

• Base ServerTemplate (http://bit.ly/NZBNGp)

• Storage Toolbox ServerTemplate (http://bit.ly/15fMU5K)

https://github.com/rightscale/rightscale_cookbooks

Page 14: ServerTemplate Best Practices - RightScale Compute 2013

april25-26

sanfrancisco

cloud success starts here

Questions?