10
Roll your own ServerTemplates Darryl Eaton, Director of Product Management, RightScale June 8 th , 2011

Rolling Your Own ServerTemplates

Embed Size (px)

Citation preview

1

Roll your own ServerTemplatesDarryl Eaton, Director of Product Management, RightScale

June 8th, 2011

2

Real Cloud Experience. Shared.

# 2

What we’ll cover…• What are ServerTemplates?

Ok, you already know what those are, but do you know…• The Base ServerTemplates?• How to mine the Library?• How to record your shell scripting genius in RightScripts?• How to clean up after yourself (decommission)?• How to be independent (minimize external dependencies)?• How to live a fulfilling cloud life?

You soon will… and this will be available on the web after…

3

Real Cloud Experience. Shared.

# 3

First step to Nirvana: ServerTemplates

• Chiseled in stone• Painful to change• So pre-cloud

• Live above the image• Live above the cloud• Code your infrastructure

Virt

ual M

achi

ne Im

age

Ser

verT

empl

ate

4

Real Cloud Experience. Shared.

# 4

The Base ServerTemplate

• Linux & Windows• Monitoring by default• Images across clouds• Images across distros

Your starting point.

MON_PROCESSES:Put in the name of the processes you’d like to monitor using RightScale.

Tip!

5

Real Cloud Experience. Shared.

# 5

Don’t reinvent the wheel!

• Find what you need• Browse examples• Use Diff • Partners!

Use the marketplace.

Advanced Search:Search by title AND description. Search by cloud. Search by category.

Tip!

6

Real Cloud Experience. Shared.

# 6

Record every step you take

• Copy successful commands to new RightScripts

• Extract variable information• Attach needed files, or

compilations as archives

Work on the instance.

Idempotency:Be able to run your script again and again without messing up your server!

Tip!

7

Real Cloud Experience. Shared.

# 7

Clean up on Decommission

• Backup files and databases• Disconnect from load

balancers• Detach volumes

Leave with a smile.

rs_run_right_script:If you need to tell other machines you’re leaving, run a RightScript on that machine.

Tip!

8

Real Cloud Experience. Shared.

# 8

Use Compatibility Releases

• Tested together• Marked by name (11H1)• Common base images• Frozen repositories

Our blood, sweat, and tears.

Compatibility checker:Search for Compatibility Release on the support site, then use the drop down list to check!

Tip!

9

Real Cloud Experience. Shared.

# 9

Don’t type the same command twice

• Start from a base• Record what you’re doing• Test what you’ve done

• Learn from others

10

Questions?

Darryl Eaton, Director of Product Management, RightScale

June 8th, 2011