1 Answer
- Newest
- Most votes
- Most comments
1
ECS has two launch type.
One is serverless Fargate.
However, this one is currently not available for GPU use, so it cannot be used at this time.
https://docs.aws.amazon.com/AmazonECS/latest/userguide/what-is-fargate.html
The other is the EC2 launch type.
This is a startup type where containers managed by ECS run on EC2.
So you can use the instance type you want to use, so you can use the G series instance type that includes a GPU.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html#launch-type-ec2
Now, as for what service to use, if you are familiar with container operations, you should have no problem using ECS.
Relevant content
- Accepted Answerasked 6 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 13 days ago
- AWS OFFICIALUpdated 2 years ago
Although I do use containers in my workflow alot, I have never touched the topic of clusters, or k8s. Can you provide some resources to create a ECS cluster as such? Also creating a cluster with the AWS console is very confusing. I tried creating an autoscaling group with the cluster, and when the task terminated, the autoscaler just started up a new one to keep the number of tasks. I have no idea how to disable this operation, and cannot find any documentation.
Documentation for creating a cluster of EC2 launch type. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/create-ec2-cluster-console-v2.html
To reduce the number of tasks, we can use AutoScaling to manage tasks. EC2s that are managed by AutoScaling and have not started a single task should be automatically deleted. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html#service-auto-scaling-deployments