RightScale Webinar: January 13, 2011 – Watch this webinar for a look behind the scenes as we discuss ServerTemplates and how are they different from alternate approaches.
12. RightScale Real Customers, Real Deployments, Real Benefits Managing Cloud Deployments for 4 Years More than 30,000 users; launched almost 2,000,000 servers On-Demand with a range of customer service offerings
14. What are ServerTemplates? Configuring servers through bundling Images: Configuring servers with ServerTemplates: Custom MySQL 5.0.24 (CentOS 5.2) Custom MySQL 5.0.24 (CentOS 5.4) A set of configuration directives that will install and configure software on top of the base image MySQL 5.0.36 (CentOS 5.4) MySQL 5.0.36 (Ubuntu 8.10) MySQL 5.0.36 (Ubuntu 8.10) 64bit Frontend Apache 1.3 (Ubuntu 8.10) Frontend Apache 2.0 (Ubuntu 9.10) - patched CMS v1.0 (CentOS 5.4) CMS v1.1 (CentOS 5.4) My ASP appserver (windows 2008) My ASP.net (windows 2008) – security update 1 Base Image Very few and basic My ASP.net (windows 2008) – security update 8 SharePoint v4 (windows 2003) – 32bit SharePoint v4 (windows 2003) –64bit Win 2003 CentOS 5.2 Ubuntu 8.10 SharePoint v4.5 (windows 2003) –64bit CentOS 5.4 Win 2007 Ubuntu 9.10 …
15. What are ServerTemplates? Anatomy of a ServerTemplate Example ServerTemplate MySQL 5.0 RightScript/Recipe 6 Initialize slave … … operations operations RightScript/Recipe 6 Perform backup RightScript/Recipe N Start all services … … RightScript/Recipe 5 Setup DNS and IPs RightScript/Recipe 4 Restore last backup boot sequence boot sequence RightScript/Recipe 3 Configure/tune MySQL RightScript/Recipe 2 Install MySQL Server RightScript/Recipe 1 Install monitoring Base Image Right Image
16. What do they help me do? Affect Cloud Resources and specify cloud properties(image, instance type, ssh key, security groups, etc.) “Record” everything you do to set up a server (install software, edit configuration files, start services, etc.) Extract variable configuration information [as Inputs] Define custom monitors and alerts Keep versions of your configurations, images, scripts… Share best practices within your organization, or to the world Incorporate best practices from others, and receive updates
17. Coupa Cloud Spend Management Goal - Focus on core business & scale with lean operations team Ruby on Rails – the cloud platform ServerTemplates are re-usable for each stage of SDLC Coupa benefits from community contributions as accelerators sanket.naik@coupa.com
18. Environment Lifecycle Management Production Staging Test Developer load bal apache apache app server app server app server api server all-in-one backgrnd backgrnd backgrnd database database database
19. Sounds great… How do I get started? Two options: Start from Scratch… or Search the Library and add a RightScript:
20. Mix-n-Match Pre-Built Components You can mix & match scripting languages on same template: Bash, PowerShell, Chef, Python, Ruby…
21. Some Key Best Practices Add new scripts vs. modifying existing scripts If you import a ServerTemplate from the Library, try not to change the existing scripts. Instead, add new ones at the end and overwrite previous operations/configurations. That way, it will be easier to incorporate any future updates. Design idempotent systems When writing scripts that create/modify configurations files, make them idempotent. If the script is run twice, it will not destroy the configuration (e.g. ‘>’ instead of ‘>>’ for a new file). Kill processes before you (re)start them – remember that often, people may just be pressing a play button in our interface Trap errors informatively Ensure everything is in the right place, exit -1 if not: you want your server to ‘strand’ appropriately with descriptive messages Leverage existing knowledge and assets Learn from others – peruse other templates in the Library
22. What if I’ve already created an image? No Problem… RightScale-enable your image Install RightLink Agent# rpm -i rightscale_5.3.0-centos_5.4-i386.rpm-or- Rebundle Tag the image as RS-enabledprovides:rs_agent_type=right_link
23. ServerTemplate Library The RightScale Library holds published ServerTemplates, RightScripts, MultiCloud Images, and Macros Public templates are available to the world – searchable, browsable, importable… Company templates are available to your organization ISV CE templates can be public, paid templates shared with specific customers
24. ServerTemplate Showdown – Q4 2010 Winner for most Useful! Winner for Most Innovative! Set up a standalone OpenLDAP server or a Provider-Consumer pair… with backups! “Create your own CDN” by deploying these globally with load balancing.
26. Accelerator for Initial Deployment Human Capital “RightScale gave us the ability to get up and running quickly. It would have taken three to four times the man-hours to complete our initial deployment.” Mobile Platform Provider “Since we have been using RightScale as part of our solution, our new customer deployment time has gone from roughly a week to a day – a time savings of about 85%.” Internet Service Developer Initial Deployment Cloud APIs or Consoles RightScale Efficiency Gains 67-85% Time
27. Reduce Effort of Ongoing Maintenance “We would spend twice the time managing our cloud deployments without RightScale.” Research Institute "Starting with an existing deployment takes the time to deploy a new application to minutes, literally a reduction in cycle time.” Major pharmaceutical Human Capital Initial Deployment Ongoing Maintenance Cloud APIs or Consoles RightScale Efficiency Gains 67-85% Efficiency Gains 50-90% Time
29. Q&A / Getting Started Have a project, but need some help? Contact us: sales@rightscale.com or (866) 720-0208 Ready to get started? Sign up for our Free Edition:www.RightScale.com/Free Call us for a VIP trial of our paid editions http://support.rightscale.com/12-Guides/Getting_Started Need to learn more? TCO calculator:www.RightScale.com/tco-calculator Webinar archive: www.RightScale.com/webinars White papers: www.RightScale.com/whitepapers
31. Customer Example: Eli Lilly IT Group maintains one compliant “Golden Image” ServerTemplates encapsulate common scientific use cases IT publishes internally to appropriate teams Teams can access and launch approved templates themselves “Alongside the elastic cloud approach, Lilly is leveraging RightScale's infrastructure management interface and services against appliance/application stacks in a "vending machine" concept that allows self-service to infrastructure and up to three tiers of applications as needed.” 25 Top Information Managers: 2010 Dave Powers, Eli Lilly & Co.
32. ISV Example: IBM Encapsulating best practices for using IBM software on the cloud Lead generation for the IBM Sales team (upgrade from Community Edition) View aggregated usage data for all templates and revisions Working with RightScale on related Solution Packs
33. Developer Example: nginx+Apache Most Imported Submission (even though for paid only) Gain notoriety by showing your expertise Build a consulting business off shared best practices Winner for Most Popular!
34. More Winners! Winner for most Useful! Winner for Most Innovative! Set up a standalone OpenLDAP server or a Provider-Consumer pair… with backups! “Create your own CDN” by deploying these globally with load balancing.
35. Beyond Machine Images Problems With Machine Images Monolithic Not modular Opaque Difficult to inspect, audit, change, version control Large 90% is uninteresting, hard to locate interesting tidbits Ex: only the apache config file may be interesting Ex: new version of apache -> 1000’s of changed files
36. ServerTemplates Alternative Modular building block approach Configuration scripts (RightScripts) Chef cookbooks & recipes A ServerTemplate defines what goes onto a server Software configuration management Default server characteristics, e.g. EC2 instance type Monitoring & alert configuration It’s a template –> it can be instantiated many times Benefits ▬> Modular + Transparent + Dynamic
53. Dynamically Configure with ServerTemplates Create agile, automated, and predictable IT infrastructure Dynamically configure servers at run-time Abstract role and behavior from cloud infrastructure Modular and variable-based for easy maintenance Launch predictable infrastructure Portable
54. Agile = automate and benefit! From boot to production on auto-pilot Across different stacks & different clouds Auto-failover, auto-restart, auto-scale “Deploy faster, better, and cheaper than your competitors” Agile Deployment
55. Next Generation Server Architecture “Cloud-ready” servers 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
Notas del editor
check out Thorsten's Poll:-how many have maintained virtual machine images?-how many have used ServerTemplates before? Agenda:deep dive into ServerTemplates what they are, why they are awesome why they are not like competition - different from Chef/Puppet why would I use a ServerTemplate vs. an AMI / virtual machine imageServerTemplatesw/ MCI pair enable multi-cloud (we'll be going deep on this in 2 weeks)... best practices, manage them, version control them examples of what customers are doing with them ok "sounds great, how do I get started"...ok, "sounds great, how do I add to my existing AMI?" - RightLink webinarif I already have an AMI, how do I put a ServerTemplate on top of it? 10% of our running servers are not RightImages - ones our customers have brought explain compatibility release briefly touch on the fact that you can share them, point to supportal
For those of you who don’t know RightScale, we’ve been helping customers manage their cloud deployments for 4 years. Today, we have more than 30,000 users and have launched almost 2,000,000 servers in the cloud.RightScale is available on demand, so you don’t need to purchase any software in advance… and we have a very experienced professional services team ready to help you architect and deploy your applications to cloud infrastructure.Our customers vary in size and industry – from large multi-national media, insurance and pharmaceutical companies…. to online gaming and Web 2.0 startups. RightScale has managed some of the largest scaling events on the cloud – like Animoto’s ramping up 4000 servers within a few days at the launch of their service. Other customers regularly launch hundreds of servers at a time and are managing many thousands w/ just a few sysadmins. Which begs the question… how do they do it?
Most images are a machine image with a software stack. With RightScale, images are just the base OS, but the software stack is provisioned on the fly through template.Modular and variable-basedBuilt with re-usable scriptsServerTemplates and scripts are version controlledDeployments* can be archived
Problems With Machine ImagesMonolithicNot modularOpaqueDifficult to inspect, audit, change, version controlLarge90% is uninteresting, hard to locate interesting tidbitsEx: only the apache config file may be interestingEx: new version of apache -> 1000’s of changed files
“Cloud Aware” configuration vs. images or other configuration solutions which are generally only aware of the machine scope
(1st bullet) – for example, we use JasperServer here for reporting, and instead of modifying the install script with our license, I simple added a script at the end and overwrote the demo license with ours.(2nd bullet) -
I won’t make the assumption that all of you know what ServerTemplates are, so…
scalable server arrayoperational flexibilitydynamic configuration -> servers fit into deploymenttest&dev flexibilityshow 3 different configurations of same building blocksshow diffshow upgrade
audit entrieshistoryversion control
RightScale’s ServerTemplates innovate beyond “machine images,” providing dynamic configuration at run-time – no more post-launch configuration! When a server is launched using a ServerTemplate it automatically configures itself in the context of a deployment running on a specific cloud. It automatically obtains the needed IP addresses, gets the address of and access to storage, checks in with load balancers, submits monitoring data, and collaborates with other servers in the deployment. While some of what our ServerTemplates can do could be programmed into a machine image, RightScale ServerTemplates are designed to do it automatically – no more developing or maintaining custom machine images.To do this, we have designed our ServerTemplates to include:A Base Machine Image which is stripped down to the barest level - the operating system and some hooks to RightScale. RightScale maintains images for each OS and cloud combination. You just select the appropriate combination for your app. Second, Cloud Configurations configure all the cloud specific resources required such as the instance size, storage required, security group, and IP address. Again RightScale maintains these configurations for each cloud. You just need to select the appropriate options.Because of this layer of abstraction, you worry about the server’s role and function, not the underlying cloud-specific infrastructure. The server’s role and function is determined by a series of scripts which you add that can be executed when the server boots, as it is running, or when the server is decommissioned. You select or write the scripts to load the application software, libraries, data … whatever is needed. You can leverage our libraries of ServerTemplates or write your own. They can be written in a number of common scripting languages (shell, bash, perl, ruby, python) or you can use Chef cookbooks and recipes. ServerTemplates are modular and variable-based - all the scripts, executables, and variables are stored outside the template. This makes maintenance much easier; you just need to make one change and it is automatically reflected in all ServerTemplates that use that script, executable, or variable value. This also enables automation. As deployments change, servers reconfigure themselves and new servers launch in the context of the current deployment. We’ll talk more about this on the next slide. ServerTemplates launch servers with the same configuration every time, so you are assured that you get the same predictable result. Finally, because the underlying cloud infrastructure is abstracted from the role and function of the server, ServerTemplates are portable across cloud infrastructure providers.