FargateĪWS Fargate manages the task execution. Unused CPU shares can be used by other containers if available. Check out our reference architecture with auto-scaling if you are interested.Īn ECS container instance can run on Linux or Windows. You have to scale down without killing running tasks, which is an even more significant challenge for long-lived tasks.Įven the AWS reference architecture does not include auto-scaling for the cluster.The auto-scaling group and ECS are not aware of each other, making task deployments very hard during cluster scale in or rolling updates via CloudFormation (Capacity Providers address this issue but are not ready for prime time yet).There is no obvious metric to scale the cluster and no integration to scale when the task placement fails because of insufficient capacity.Especially the scaling is not easy because: The downside is that you have to scale, monitor, patch, and secure the EC2 instances yourself. Usually, you run a cluster of container instances in an auto-scaling group. The ECS Container Agent regularly polls the ECS API if new containers need to be started or stopped. The instance appears in the list of EC2 instances like any other EC2 instance. The EC2 instance is owned and managed by you. The following figure demonstrates the difference.Īn ECS container instance is nothing more than an EC2 instance that runs the ECS Container Agent. You can use ECS container instances, or you can use Fargate. So, who runs the containers? Running containers ECS only provides the control plane to manage tasks. ![]() However, ECS does not run or execute your container. You can ask ECS to start or stop a task, and it stores your intent. A task is usually made of one or two containers that work together, e.g., an nginx container with a php-fpm container. Managing the lifecycle and placement of tasksįirst, ECS is responsible for managing the lifecycle and placement of tasks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |