Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Containers on AWS - AWS User Group Bosnia meetup

Containers on AWS - AWS User Group Bosnia meetup

Slides from AWS User Group Bosnia online meetup about containers on AWS.
https://www.meetup.com/AWS-User-Group-Bosnia/events/269640742/

Speakers:
Dzenan Dzevlan
Milan Deket

Dzenan Dzevlan

March 29, 2020
Tweet

More Decks by Dzenan Dzevlan

Other Decks in Programming

Transcript

  1. Agenda • What is ECS • ECS Cluster • ECS

    Taks and Containers • ECS Service • AWS Fargate Service • Docker on AWS with Demo (Milan Dekete) • Where to go next
  2. What is ECS • Amazon Elastic Container Service (Amazon ECS)

    is a fully managed container orchestration service. • Eliminates the need to install, operate and scale your own container management infrastructure
  3. ECS Components • Cluster is made up of one or

    more EC2 instances. Each cluster instance runs one or more Services • Servies: layer that manages and places Tasks • Tasks: container wrapper and Configuration around the process running on the instance
  4. Tasks and Task Definitions • Task Definitions • Blueprint for

    describing how a container should launch • Similar to Docker Compose config • Which Docker image to use • CPU & Memory • Launch Type (EC2 or Fargate) • Linked containers • Port mappings • Environment variables • Volumes • IAM role • JSON-based configuration
  5. Tasks and Task Definitions • Task • Basic unit of

    work in ECS • One or more containers per Task • Running container with settings specified by Task Definition
  6. What is a Service • Services supervise tasks. Their job

    is to keep one task running along with status and history • Launch instances to maintain scheduling strategy • Keep task statistics and history • Expose tasks to the outside world • Track where in the cluster a task is running • Direct network traffic to the correct host and port
  7. Task Placement Strategies • Task Placement Strategy is an algorithm

    that determines how to spread tasks across a cluster, given CPU & memory requirements and available resources • Binpack places tasks based on the least available CPU or memory. Minimizes instances in use. • Spread places tasks evenly based on a container instance attribute (AZ) • Random places tasks on any random instance
  8. Where to go next Amazon ECS Workshop :: Amazon ECS

    Workshop (ecsworkshop.com) github.com/nathanpeck/awesome-ecs AWS Containers Blog aws.amazon.com/blogs/containers/welcome-to-the-aws-containers-blog/ AWS Documentation https://aws.amazon.com/ecs/ https://aws.amazon.com/fargate/