What is the difference between a task and a service in AWS ECS?

后端 未结 3 395
青春惊慌失措
青春惊慌失措 2021-01-29 18:34

It appears that one can either run a Task or a Service based on a Task Definition. What are the differences and similarities between Task and Service? Is there a clue in the fac

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-29 19:32

    Task Definition:

    This is the blueprint describing which Docker containers to run and represents your application. It includes several tasks.

    Service:

    An instance of Task Definition. It also defines the minimum and maximum Tasks from one Task Definition run at any given time, autoscaling, and load balancing.

    ECS Container Instances:

    This is an EC2 instance that has Docker and an ECS Container Agent running on it. The Agent takes care of the communication between ECS and the instance, providing the status of running containers and managing running new ones.

    Relationship:

提交回复
热议问题