RightScale Conference Santa Clara 2011: ServerTemplates are the innovative "secret sauce" of the RightScale Cloud Management Platform. Slice up existing configurations into your own custom blueprints for cloud servers in order to easily architect, launch, manage, and monitor multi-server deployments. A majority of the 40,000-plus RightScale ServerTemplates were created from scratch by our customers. We'll share best practices for developing, testing, and maintaining your own custom ServerTemplates.
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Roll Your Own ServerTemplates
1. 1
Roll Your Own ServerTemplates
Darryl Eaton
Director of Product Management, RightScale
2. 2#
Agenda
First…
• What are ServerTemplates?
Then…
• The Base ServerTemplates
• How to Mine the MarketPlace
• How to Record your Shell Scripting Genius in RightScripts
• How to clean up after yourself (Decommission)
• How to guarantee your servers will launch
• Where to go next
Real Cloud Experience. Shared.
3. 3#
First step to automation: ServerTemplates
ServerTemplate
Virtual Machine Image
• Chiseled in stone. • Live above the image.
• Painful to change. • Live above the cloud.
• So pre-cloud. • Code your infrastructure.
Real Cloud Experience. Shared.
4. 4#
Everybody is doing it. You can do it.
• Most servers we manage are operated with customer-built or
modified ServerTemplates, rather than with out-of-the box
templates.
Active Servers
23%
Custom
51% Cloned
RightScale
27%
Real Cloud Experience. Shared.
5. 5#
The Base ServerTemplate
Your starting point.
• Linux & Windows
• Monitoring by default
• Images across clouds
• Images across distros
MON_PROCESSES:
Put in the name of the
processes you’d like to
monitor using RightScale.
Tip!
Real Cloud Experience. Shared.
6. 6#
Record every step you take.
Work on the instance.
• Copy successful commands to
new RightScripts.
• Extract variable information.
• Attach needed files, or
compilations as archives.
Idempotency:
Be able to run your script
again and again without
messing up your server!
Tip!
Real Cloud Experience. Shared.
7. 7#
Don’t reinvent the wheel!
Use the Marketplace.
• Find what you need
• Browse examples
• Use Diff
• Partners!
Advanced Search:
Search by title AND
description. Search by
cloud. Search by category.
Tip!
Real Cloud Experience. Shared.
8. 8#
Clean up on Decommission
Leave with a smile.
• Backup files and databases.
• Disconnect from load
balancers.
• Detach volumes.
rs_run_right_script:
If you need to tell other
machines you’re
leaving, run a RightScript on
that machine.
Tip!
Real Cloud Experience. Shared.
9. 9#
Use Compatibility Releases
Our blood, sweat, and tears.
• Tested together
• Marked by name (11H1)
• Common base images
• Frozen repositories – guarantee
launch
Compatibility checker:
Search for Compatibility
Release on the support
site, then use the drop
down list to check!
Tip!
Real Cloud Experience. Shared.
10. 10#
Don’t type the same command twice.
• Start from a base.
• Record what you’re doing.
• Test what you’ve done.
• Learn from others in the
Marketplace.
• Or learn from others at the conference! Introducing…
Erik Osterman
Director of Operations
CBS Interactive
Real Cloud Experience. Shared.
Editor's Notes
PAVELOverview: Today’s webinar focuses on great and not so great workloads for the Cloud and our experiences from in the field!
First, a point to drive home. Live above the cloud. Live above the image. Configure vanilla machines at runtime. The flexibility of the cloud ends at the image.
“The ServerTemplate methodology is great because it forces us to script out our configurations, which are best practices anyway.”
You’ll get all the machine monitoring out of the box – cpu, disk, etc. Input to monitor any other stuff you install… move this script to the end of the template if you do.
You might just find exactly what you need.Or you can find snippets of what you need and build it and test it. Minimize external dependencies by attaching files or anything you need to compile as a .tar.Finally, we have partners that have put up a lot of the software for you. And they build test it everyday.
You might just find exactly what you need.Or you can find snippets of what you need and build it and test it. Finally, we have partners that have put up a lot of the software for you. And they build test it everyday. Open Diff in new tab.Clone LAMP all in one. Rename to Wordpress. Bookmark.Remove continuous backups.Add APP Wordpress configure to bottom of template.Set default inputs on new template.
You might just find exactly what you need.Or you can find snippets of what you need and build it and test it. Finally, we have partners that have put up a lot of the software for you. And they build test it everyday.