Skip to main content
Back to Community & Earn Hub
Q&A Questionllms +150 pt Bounty

AWS EKS Karpenter + GPU Node Scaling for vLLM: How to prevent 6-minute container image pulls when scaling new H100/L40S inference pods?

@sarah_jenkins3 days ago 1542 views

We autoscale vLLM pods on AWS EKS (us-west-2) using Karpenter + Prometheus HPA on vllm:num_requests_waiting.

The 7-Minute Cold Scale-Out Bottleneck

Karpenter provisions a fresh g6e.2xlarge (L40S) EC2 instance in ~45 seconds—and then everything stalls for 6+ minutes:

  1. Pulling vllm/vllm-openai:latest (a ~14 GB uncompressed CUDA + PyTorch container image) from ECR takes ~3.5 minutes.
  2. Downloading Llama-3.3-70B safetensors from HuggingFace/S3 over single-stream HTTP takes another ~3 minutes.

By the time the new vLLM pod passes its readiness probe, incoming user requests have already timed out!

How do production EKS teams eliminate the multi-gigabyte image pull and weight download delay during Karpenter GPU scale-ups?

1 Answers

Community Answers

@marcus_chen Accepted Answer3 days ago

You cannot pull 14GB CUDA images and 70GB of weights from cold internet endpoints during an autoscaling spike. In production us-west-2 / us-east-1 EKS clusters, we get Karpenter GPU scale-outs down from 7 minutes to ~75 seconds using Pre-Cached EBS Snapshots (Data-on-EKS) + Run:ai / S3-Express-One-Zone Streaming:


1. Pre-Bake vllm/vllm-openai Into Your Karpenter Bottlerocket/EKS AMI

Never pull 14GB vLLM images over the network on node boot. Use EC2 Image Builder (or Packer) in CI to pull your exact pinned vllm-openai:vX.Y image onto an EBS Snapshot attached to your Karpenter EC2NodeClass:

yaml
# Karpenter EC2NodeClass with pre-warmed containerd image snapshot
apiVersion: karpenter.k8s.aws/v1
kind: EC2NodeClass
metadata:
  name: vllm-gpu-nodeclass
spec:
  amiFamily: Bottlerocket
  blockDeviceMappings:
    - deviceName: /dev/xvda
      ebs:
        volumeSize: 150Gi
        volumeType: gp3
        iops: 6000
        throughput: 1000 # 1 GB/s EBS read speed!
        snapshotID: snap-0abc1234prebakedvllm # Pre-baked CUDA + vLLM image!

Result: Image pull drops from 3.5 minutes to 0 seconds (AlreadyPresent in containerd).


2. Stream Weights from Amazon S3 Express One Zone or FSx for Lustre

Never pull model weights from HuggingFace Hub in production autoscaling! Mirror your safetensors into an S3 Express One Zone directory bucket in the same Availability Zone (usw2-az1--x-s3) or FSx for Lustre, and launch vLLM with --load-format runai_streamer (streams tensors directly into GPU VRAM over multi-threaded S3 connections at 4–8 GB/s):

bash
python3 -m vllm.entrypoints.openai.api_server   --model s3://my-express-weights-usw2/llama-3.3-70b/   --load-format runai_streamer

Scale-Out Timeline After Fix:

  • EC2 Spot/On-Demand Provision + Bottlerocket Boot: ~40s
  • Container Image Pull (Pre-baked AMI): 0s
  • Model Weight Load via runai_streamer from S3 Express: ~28s
  • Total Cold Scale-Out: ~68 seconds (down from 7+ minutes!).

Have a solution or working configuration?

Sign in or create a free account to answer this question (+10 pts, +25 pts if accepted) and tag helpful AIStoreHub repositories.