ams+dm server+ec2

26
Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Managing Enterprise applications on EC2

Upload: iwein-fuld

Post on 08-Sep-2014

1.381 views

Category:

Technology


0 download

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

Page 1: Ams+Dm Server+Ec2

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

Managing Enterpriseapplications on EC2

Page 2: Ams+Dm Server+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

Page 3: Ams+Dm Server+Ec2

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:

Page 4: Ams+Dm Server+Ec2

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

Page 5: Ams+Dm Server+Ec2

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

Page 6: Ams+Dm Server+Ec2

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

Tooling

6

Page 7: Ams+Dm Server+Ec2

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

Relations overview

7

Page 8: Ams+Dm Server+Ec2

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

Page 9: Ams+Dm Server+Ec2

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

Page 10: Ams+Dm Server+Ec2

10

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

Architecture

10

Page 11: Ams+Dm Server+Ec2

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

Page 12: Ams+Dm Server+Ec2

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

Page 13: Ams+Dm Server+Ec2

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

Page 14: Ams+Dm Server+Ec2

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

Page 15: Ams+Dm Server+Ec2

15

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

Instances in the demo

15

Page 16: Ams+Dm Server+Ec2

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

Page 17: Ams+Dm Server+Ec2

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

DEMO 1

Start the AMS server

Page 18: Ams+Dm Server+Ec2

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

DEMO 2

Start the dm Server

Page 19: Ams+Dm Server+Ec2

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

DEMO 3

Auto discover

Page 20: Ams+Dm Server+Ec2

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

Page 21: Ams+Dm Server+Ec2

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

Page 22: Ams+Dm Server+Ec2

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

Page 23: Ams+Dm Server+Ec2

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

Page 24: Ams+Dm Server+Ec2

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

Page 25: Ams+Dm Server+Ec2

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

Page 26: Ams+Dm Server+Ec2

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

Questions?