ServerTemplate Best Practices - RightScale Compute 2013


Published on

Tim Miller - Sr. Director Engineering, RightScale
Cary Penniman - Sr. Software Engineer, RightScale

ServerTemplates™ are a key to maintaining consistent, production-quality configurations in the cloud. Our ServerTemplate team will discuss best practices for using ServerTemplates. We will cover tips to optimize your development workflow, deliver consistent configurations across your organization, leverage toolboxes, and much more.

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • How many are using the Chef based STs?How many are using the RightScript based STs?How many are not sure what a ServerTemplate is?
  • -- Show production workflow, but then you hava bug. Ugg.-- But we can bypass all that with a workflow enabled by a little known tag, to save a TON of time.The thing you can learn from us here is “Run scripts locally first”DEMO: showing workflow of CHANGE – SYNC – RUN (x3)sync -avz --exclude=.git -e "ssh -i $CLOUD_KEY" . root@$IP:/var/cache/rightscale/cookbooks/default/06297a26fe34ceabe57626f272268b4b/buggy-cookbook/sync_to.rb $IP /var/cache/rightscale/cookbooks/default/06297a26fe34ceabe57626f272268b4b/buggy-cookbook/rs_run_recipe -n buggy-cookbook::default && tailf /var/log/syslog
  • - what you tested, is what you launch with.Packages change every dayDevelopers commit changes.Tags and branches are mutable, SHAs are
  • Many of you make changes directly on your Production ST.That works great! Until an escalation comes up and you have changed the ServerTemplate since it was launched. What do you do? Here’s where you can “learn from us”… (click)Keep your Production ST pristine, maintain a Staging clone where all development occurs. (click)Follow standard version control branching and merging strategy – even with your ServerTemplates. So how do you do that?
  • Base ServerTemplate – gives you a *HUGE* headstart.
  • One of the hardest problem in the cloud is storage
  • Taken our yeasr of experience running databases in the cloud and broke it out into a ST you can use to build your our servers that need storage Clone this ST and develop your server right on topSo here is how is works…
  • ServerTemplate Best Practices - RightScale Compute 2013

    1. 1. april25-26sanfranciscocloud success starts hereServerTemplate Best PracticesTim Miller, Sr. Director ServerTemplate DevelopmentCary Penniman, Sr. Software Engineer
    2. 2. #2#2#RightscaleComputeAgenda• Best Practices• Efficient Development Workflow• Going to Production• How to Control Changes• Customizing• Data Storage with the Storage Toolbox• Q/A
    3. 3. #3#3#RightscaleComputeQuick Poll
    4. 4. #4#rightscalecomputeBest PracticesOur Picks
    5. 5. #5#5#RightscaleComputeEfficient Development Workflow• Chef workflow using rsync• rs_run_recipe –n cookbook::recipeRun locally firstAvoid re-launch
    6. 6. #6#6#RightscaleComputeGoing to Production• Don’t run on HEAD!• Package Repository Freeze Dates• Cookbook Repositories• External Dependencies
    7. 7. #7#7#RightscaleComputeControlling Changes• Pristine Production, Staging clone for development• Follow standard branching and merging
    8. 8. #8#8#RightscaleComputeCustomizing• 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
    9. 9. #9#9#RightscaleCompute• Keep data in multiple locations!• Local backups to volumes• Remote backups to object storageData Storage
    10. 10. #10#10#RightscaleComputeData Storage (cont.)• Get to know the RightScale "Storage Toolbox”
    11. 11. #11#11#RightscaleComputeLeveraging the Storage Toolbox1. Backup data to another2. Restore data in case of outage
    12. 12. #RightscaleCompute#12#12
    13. 13. #13#13#RightscaleComputeFor more information• ServerTemplate Developer Guide (• Chef workflow using rsync (• Prepare for Production (• Base ServerTemplate (• Storage Toolbox ServerTemplate (
    14. 14. april25-26sanfranciscocloud success starts hereQuestions?