container management with amazon ecs

36
©2016, Amazon Web Services, Inc. or its affiliates. All rights reserved Container Management with Amazon ECS Sascha Möllering Solutions Architect

Upload: aws-germany

Post on 10-Jan-2017

129 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Container Management with Amazon ECS

©2016, Amazon Web Services, Inc. or its affiliates. All rights reserved

Container Management with Amazon ECSSascha Möllering

Solutions Architect

Page 2: Container Management with Amazon ECS

AWS Global Infrastructure

13 Regions35 Availability Zones63 Edge Locations

Page 3: Container Management with Amazon ECS
Page 4: Container Management with Amazon ECS

Agenda

• Amazon EC2 Container Service• Amazon EC2 Container Registry• Common patterns• Demo

Page 5: Container Management with Amazon ECS

Amazon EC2 Container Service

Page 6: Container Management with Amazon ECS

Easily manage clusters for any scale

• Nothing to run• Complete state• Control and monitoring• Scale

Page 7: Container Management with Amazon ECS

Flexible container placement

• Applications• Batch jobs• Multiple schedulers

Page 8: Container Management with Amazon ECS

Designed for use with other AWS services

• Elastic Load Balancing• Amazon Elastic Block Store• Amazon Virtual Private

Cloud• AWS Identity and Access

Management (IAM)

Page 9: Container Management with Amazon ECS

Designed for use with other AWS services

• AWS CloudTrail• Auto Scaling• CloudWatch Logs

Page 10: Container Management with Amazon ECS

Extensible

• Comprehensive APIs• Open source agent• Custom schedulers

Page 11: Container Management with Amazon ECS

Amazon EC2 Container Registry

Page 12: Container Management with Amazon ECS

Fully managed

• Nothing to run• Control and monitoring• Scale

Page 13: Container Management with Amazon ECS

Secure

• IAM resource based policies• Transfer via HTTPS• Encryption at rest

Page 14: Container Management with Amazon ECS

Simplified Workflow

• Tight integration with Amazon ECS

• Use Docker CLI commands (e.g., push, pull, list, tag)

Page 15: Container Management with Amazon ECS

Highly Available

• Backed by Amazon S3• Images redundantly stored

across multiple facilities and multiple devices in each facility

Page 16: Container Management with Amazon ECS

Common Patterns

Page 17: Container Management with Amazon ECS

Pattern 1: Services and applications

• Simple to model• Micro services• Blue/green deployments

Page 18: Container Management with Amazon ECS

Pattern 2: Batch jobs

• Share resource pools• Ideal for bursty jobs• Spot instances

Page 19: Container Management with Amazon ECS

Amazon ECS Terminology

Page 20: Container Management with Amazon ECS

Amazon EC2 instances

Docker daemon

Amazon ECS agent

Key components: container instances

Page 21: Container Management with Amazon ECS

Regional

Resource pool

Grouping of container instances

Start empty, dynamically scalable

Key Components: Clusters

Page 22: Container Management with Amazon ECS

Key components: task definitions

Volume definitions

Container definitions

Page 23: Container Management with Amazon ECS

Unit of work

Grouping of related containers

Run on container instances

Key components: tasks

Page 24: Container Management with Amazon ECS

Key components: Run a task

Good for short-lived containers, e.g.

batch jobs

Page 25: Container Management with Amazon ECS

Key components: Create a service

Good for long-running applications

and services

Page 26: Container Management with Amazon ECS

Key components: Create a service

• Load balance traffic across containers• Automatically recover unhealthy containers• Auto Scaling• Discover services

Elastic Load Balancing

Page 27: Container Management with Amazon ECS

Key components: Update a service

• Scale up• Scale down

Elastic Load Balancing

Page 28: Container Management with Amazon ECS

Key components: Update a service

• Deploy a new version• Drain connections

Elastic Load Balancing

Page 29: Container Management with Amazon ECS

Typical user workflow

I want to run a service.

Page 30: Container Management with Amazon ECS

Typical user workflow

Run Instances

Amazon EC2

Use custom AMI with Docker support and

ECS agent. Instances register

with specified cluster.

Page 31: Container Management with Amazon ECS

Typical user workflow

Create Task DefinitionDeclare resource requirements for

containers

Page 32: Container Management with Amazon ECS

Typical user workflow

Create ServiceDeclare resource requirements for

service

X 5

Elastic Load Balancing

Page 33: Container Management with Amazon ECS

Typical user workflow

Describe Service

Page 34: Container Management with Amazon ECS

Demo

Page 35: Container Management with Amazon ECS

Summary

• ECS is a highly scalable container management service

• ECR is a fully-managed Docker container registry

• Designed for use with other AWS services

Page 36: Container Management with Amazon ECS

BERLIN