+ All Categories
Home > Technology > Windows Applications in the Cloud

Windows Applications in the Cloud

Date post: 20-Aug-2015
Category:
Upload: rightscale
View: 1,627 times
Download: 0 times
Share this document with a friend
Popular Tags:
21
1
Transcript
Page 1: Windows Applications in the Cloud

1

Page 2: Windows Applications in the Cloud

2

Moving Windows to the CloudRaphael Simon, Sr. Systems Architect

Page 3: Windows Applications in the Cloud

3

Windows in the Cloud without RightScale

• Windows images inconsistent• Do not follow best practices• Use root partition for everything

• Pre-install all required software• Bake in license• Custom configuration• Long development iterations

• No consistent automation• Trust relationships hard-coded• Ad-hoc orchestration

Page 4: Windows Applications in the Cloud

4

Windows in the Cloud with RightScale

Page 5: Windows Applications in the Cloud

5

Moving Windows to the Cloud

• Windows images inconsistent• Do not follow best practices• Use root partition for everything

• Pre-install all required software• Bake in license• Custom configuration• Long development iterations

• No consistent automation• Trust relationships hard-coded• Ad-hoc orchestration

Page 6: Windows Applications in the Cloud

6

Windows RightImages

• Consistent settings• Across regions and clouds• Firewall, file sharing, SQL Server install, ASP.NET install

• Follow best practices• Bigger root partition• Use volumes for database files

• Work in progress, keeps improving

Page 7: Windows Applications in the Cloud

7

Windows MultiCloud Images

Combination of:• 2003 / 2008• 32 bit / 64 bit• Bare / IIS / SQL Server Std• RightLink installer for

installing RightLink on pre-existing Windows images

Page 8: Windows Applications in the Cloud

8

Moving Windows to the Cloud

• Windows images inconsistent• Do not follow best practices• Use root partition for everything

• Pre-install all required software• Bake in license• Custom configuration• Long development iterations

• No consistent automation• Trust relationships hard-coded• Ad-hoc orchestration

Page 9: Windows Applications in the Cloud

9

ServerTemplates: Built-to-Order Servers

Virtual machine

OS

Storage volumes

Networking

SQL Server/ASP.NET…

App Libraries

RightImages &Multi-Cloud Images• Standard image “API”

Cloud Portability• Standard configuration

Application

Applications• Cloud independent

Modular – Portable – Reproducible

Page 10: Windows Applications in the Cloud

10

RightScale ServerTemplates vs. Images

• Big & opaque• Complex to reproduce• Static• Not cloud-portable

Slow workflow Not cloud-agile

• Modular & flexible• Reproducible & maintainable• Dynamic & agile• Multi-cloud enabled

Dev-like workflow Dynamic configuration

Virtual Machine Images RightScale ServerTemplates

Page 11: Windows Applications in the Cloud

11

ServerTemplates: A Closer Look

• Starts with a multicloud image• Defines base software

• Adds:• Boot, operational and

decommission RightScripts and/or recipes for configuration

• Alerts definitions for automation

• ServerTemplates are versioned• Reproduce exact configuration

• ServerTemplates can be published/imported• Sharing / reuse

Page 12: Windows Applications in the Cloud

12

Monitoring and Alerts• Monitoring recipe for CPU,

memory and disk space

• Create monitoring scripts to monitor custom data• Written in a ruby DSL• Can leverage WMI• Completely dynamic: Add/remove

monitoring scripts at any time

• Use monitored data to create Alerts• Can use elaborate rules to define alerting conditions• Alert escalations can send emails, reboot server, relaunch

server, run a RightScript or recipe, vote array grow and vote array shrink

Page 13: Windows Applications in the Cloud

13

Hands-On Creating a Domain Controller ServerTemplate

Page 14: Windows Applications in the Cloud

14

Moving Windows to the Cloud

• Windows images inconsistent• Do not follow best practices• Use root partition for everything

• Pre-install all required software• Bake in license• Custom configuration• Long development iterations

• No consistent automation• Trust relationships hard-coded• Ad-hoc orchestration

Page 15: Windows Applications in the Cloud

15

What is RightLink?

• Functions•Receive commands from RS•Query RightScale (instance API)•Locate related servers

• Open-source Agent•Extensible•Transparent

• Secure•Signed & encrypted AMQP transport•Deployment scope

RightScaleTagstore

server1

RL

server2

RL

serverA

RL

serverB

RL

Production Development

Page 16: Windows Applications in the Cloud

16

Leveraging RightLink• RightLink provides the following Chef resources

• Log: appends to local log and audits (audits are visible in the dashboard)• RightLink tag: Add or remove tags from instance • Remote recipe: Run recipes on remote instances (route by tag)• Server collection: Query instances by tags

• RightLink-enabled images also include the following utilities• rs_tag.cmd: Add or remove tags from instance• rs_run_right_script.cmd: Run RightScript on local instance. Starting with

5.6 also run RightScripts on remote instances• rs_run_recipe.cmd: Run recipes on local instance. Starting with 5.6 also

run recipes on remote instances• rs_server_collection.cmd: Starting with 5.6 query instances by tags

Page 17: Windows Applications in the Cloud

17

Hands-onAutomatic User Creation

Page 18: Windows Applications in the Cloud

18

Where Are We?• Underlying infrastructure in place

• RightImage 5.5 GA

• Time to build-up the stack• Expect more production ready ServerTemplates in the near future• What do you need?

Page 19: Windows Applications in the Cloud

19

Page 20: Windows Applications in the Cloud

20

Windows Best Practices• License keys registration

• Install software on boot: License key is an input that is used to generate the answer file

• Bake software into image: Write Powershell script which registers key on boot

• System updates management• Updates disabled by default• Cherry-pick updates, test, sysprep & bundle (use provided RightScript)• Roll new image

Page 21: Windows Applications in the Cloud

21

When to Install Software

• Faster startups• Attended installers

• Dynamic installation• Easier maintenance• Licensing

Bake into image for: Install on boot for:

When you have no choice Whenever you can


Recommended