ams+dm server+ec2

Post on 08-Sep-2014

1.383 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

A presentation for JFall 2008. Light outline of SpringSource management strategy. Jennifer Hickey did a presentation with more details on AMS at SpringOne US.

TRANSCRIPT

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Managing Enterpriseapplications on EC2

2Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Agenda

•Overview•Proposed architecture•Node configuration•Running the system•Future•Summary

2

3Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

What’s a cloud anyway?

3

The cloud is a metaphor for the Internet (..) and is an abstraction for the complex infrastructure it conceals. It is a style of computing in which IT-related capabilities are provided “as a service”, allowing users to access technology-enabled services from the Internet "in the cloud" without knowledge of, expertise with, or control over the technology infrastructure that supports them.

Wikipedia:

4Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Virtualization

•Decouple operating systems from actual hardware

•Provide virtual equivalents for hardware resources

•Using a virtual machine is no different from using a real machine to the user

4

5Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

EC2 Reminder

5

Files and manifest needed to start a virtual machine on EC2

An instance of an AMI running on the Elastic Compute Cloud

6Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Tooling

6

7Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Relations overview

7

8Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Agenda

•Overview•Proposed architecture•Node configuration•Running the system•Future•Summary

8

9Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Hide your internals

•By default the instances can only be reached on port 22

•Same Security Group => Full network access

•Only PKA as root

•Unlock only the door where your guards are at

9

10

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Architecture

10

11

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Agenda

•Overview•Proposed architecture•Node configuration•Running the system•Future•Summary

11

12

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

AMS server

•Pre-installed AMS server with default configuration– default user/pass– default locations– built in database

•Server is started on boot•After instance startup the server is ready to

auto discover servers and applications

12

13

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

dm Server + Agent

•dm Server (EE) started on boot•agent dynamically configured on boot

– passing in AMS server host as user data

•agent started on boot

•Agent registers at AMS server•AMS auto-discovers dm Server

13

14

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

How lazy can we be?

•You only need to:– start the AMS server – copy the private dns name– start the dm Server

14

15

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Instances in the demo

15

16

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Agenda

•Overview•Proposed architecture•Node configuration•Running the system•Future•Summary

16

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

DEMO 1

Start the AMS server

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

DEMO 2

Start the dm Server

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

DEMO 3

Auto discover

20

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Agenda

•Overview•Proposed architecture•Node configuration•Running the system•Future•Summary

20

21

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Load balancing

•Classic load balancer

•But easier to add app servers behind it

•A few samples exist

21

22

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Autoscaling (1/2)

•A system that allocates more resources when it needs them

•By a node asking for help•Or a load balancer asking for extra

capacity based on the total load

22

23

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Autoscaling (2/2)

•Increased load is not always a good reason to up the capacity– DDoS– slashdotting

•Give the developer autoscaling controls so that application can make scaling decisions based on business logic

23

24

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Agenda

•Overview•Proposed architecture•Node configuration•Running the system•Future•Summary

24

25

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Summary

• With the right tools you can easily– Host your apps in the cloud– Manage a cube of instances– Automatically discover starting instances

•Useful applications beyond the buzz•Look out for auto scaling applications

25

Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited.

Questions?

top related