ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား · SAA-C03 အပေါ် ဆက်လေ့လာရန်

ECS, EKS and Batch for ML workloads

Run training or inference containers on ECS, EKS or Batch, with GPUs and the right roles.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Solutions Architect Associate မှ သင်သိပြီးသားများ

  • Amazon ECS is the simplest AWS container service, and Amazon EKS is managed Kubernetes.
  • EKS pods get their own AWS permissions through IAM roles for service accounts or EKS Pod Identity.
Solutions Architect Associate သင်ခန်းစာကို ဖတ်ရန်
  • Amazon ECS

    GPU
    EC2 nodes with GPU AMI
    Code permissions
    Task role
    Pick it when
    Simple container serving
  • Amazon EKS

    GPU
    NVIDIA device plugin
    Code permissions
    IRSA or Pod Identity
    Pick it when
    Kubernetes is the standard
  • AWS Batch

    GPU
    GPU in job definition
    Code permissions
    Job role
    Pick it when
    Queued offline jobs
  • SageMaker AI

    GPU
    Pick a GPU instance
    Code permissions
    Execution role
    Pick it when
    Managed MLOps features
Four ways to run ML containers.

1 / 2

  • Amazon ECS

    GPU
    EC2 nodes with GPU AMI
    Code permissions
    Task role
    Pick it when
    Simple container serving
  • Amazon EKS

    GPU
    NVIDIA device plugin
    Code permissions
    IRSA or Pod Identity
    Pick it when
    Kubernetes is the standard
  • AWS Batch

    GPU
    GPU in job definition
    Code permissions
    Job role
    Pick it when
    Queued offline jobs

2 / 2

  • SageMaker AI

    GPU
    Pick a GPU instance
    Code permissions
    Execution role
    Pick it when
    Managed MLOps features
Four ways to run ML containers.
Jobs
Queue
Compute environment
Results in S3
  1. 1You submit jobs that name an image and resources.
  2. 2The queue holds them by priority.
  3. 3The compute environment starts GPU or Spot instances, and the results go to S3.
Batch holds jobs in a queue and starts compute only for them.

ဘာလဲ

For GPU work, run on EC2 nodes, because Fargate has no GPU. On Amazon ECS, use an ECS-optimized GPU AMI and request GPUs in the task definition resource requirements. On Amazon EKS, use GPU nodes with the NVIDIA device plugin and request nvidia.com/gpu in the pod. For AWS silicon, the Neuron device plugin exposes Inferentia and Trainium. Give the code its own role: the task role on ECS, IRSA or Pod Identity on EKS. The ECS task execution role only pulls images and writes logs.

ဘာလဲ

AWS Batch is for queued jobs such as training, scoring or embedding generation. A job definition names the image, vCPUs, memory and GPUs. Jobs wait in a job queue and a compute environment starts EC2, Spot or Fargate capacity, then scales back to zero. Batch has no endpoint, so it fits offline work.

Choose these over SageMaker AI when the team already runs a container platform, needs a custom serving stack or wants to share GPUs with other workloads. Choose SageMaker AI when you want managed endpoints, auto scaling, Model Registry and Model Monitor without building them.

မှတ်ထားရန်

  • No GPU on Fargate. Use EC2 nodes for ECS and EKS.
  • ECS: GPU AMI and GPU in the task definition. EKS: NVIDIA device plugin and nvidia.com/gpu.
  • Own permissions: ECS task role, or IRSA and Pod Identity on EKS.
  • Batch: job definition, job queue, compute environment. Spot cuts cost.
  • Pick SageMaker AI when you want the managed MLOps features.

စာမေးပွဲမှာ

  • “Containers need GPUs on Amazon ECS” points to EC2 launch type with a GPU instance, not Fargate.
  • “Each pod needs different AWS permissions” points to IRSA or EKS Pod Identity.
  • “Thousands of containerized scoring jobs at lowest cost” points to AWS Batch on Spot.
  • “Team already standardizes on Kubernetes for serving” points to Amazon EKS.