Skip to main content

Inference Optimization on EKS

15 min read

Overview​

Guides for measuring inference latency, throughput, GPU memory, and cost, then choosing an optimization that addresses the observed bottleneck. Start with the L0–L5 tuning view in the inference infrastructure overview. These tuning layers are separate from the platform's six runtime layers.

Results depend on the model, input and output lengths, concurrency, hardware, and routing policy. This page helps select detailed guides; it does not prescribe a configuration that guarantees production performance or savings.

Covered Content​

All documents in this category are listed below. Gateway configuration and model selection policies belong to the separate inference routing category.

Key Topics by Document​

Key Performance Metrics​

Compare before and after against the service SLO and the same request set. There is no universal target for the metrics below.

Table 1. What to inspect and conditions to record for each inference performance metric

MetricWhat to inspectConditions to record
TTFTRequest-start to first-token latency distributionQueue-time inclusion, input length, concurrency
Output-token throughputGenerated tokens in completed requests / measurement durationPer-client rate versus aggregate server throughput
GPU memory and utilizationMemory headroom, compute and memory bottlenecksGPU type, precision, batch settings
Cache-hit ratioHits and lookups for each reuse unitToken or request denominator, cache type, cold/warm interval
Tail latency and errorsp95/p99 response latency and completion rateTimeouts, retries, and failed requests
Quality and costEvaluation pass rate and total cost per successful requestEvaluation set, idle GPU cost, gateway and storage costs

EKS GPU Infrastructure Strategy​

Three Deployment Model Comparison​

Separate node management from ownership of GPU software. GPU count or model size alone does not determine the node-management approach.

Table 2. Management boundary and detailed checks by EKS GPU deployment model

ApproachManagement boundaryDetailed checks
EKS Auto ModeEKS manages the GPU driver and device pluginAvailable features and support for user-installed components
KarpenterProvisions nodes according to NodePool policySelected AMI, GPU components, static versus dynamic capacity
Managed node groupManages capacity through a node group and AMIPre-installed components versus separately installed drivers/plugins

Check DRA support against both Kubernetes version and capacity provisioning. The current EKS NVIDIA device guide distinguishes Karpenter static capacity, managed node groups, and self-managed nodes while excluding Auto Mode. See GPU node strategy for selection criteria.

GPU Instance Selection Matrix​

Table 3. Evaluation criteria for each GPU instance selection decision

DecisionEvaluation criteria
MemoryWeight precision, KV cache, concurrency, runtime headroom
CommunicationBandwidth for single-GPU, within-node, or cross-node parallelism
AvailabilityCapacity, quotas, and alternatives in the target Region and AZs
CostQuote date, Region, purchase option, and measured throughput

Do not derive GPU count from parameter count alone. Review memory settings in vLLM serving and allocation policies in GPU resource management.

Auto Mode GPU Operator Hybrid Configuration​

A separate GPU Operator must not take duplicate ownership of components managed by Auto Mode. This overview does not provide a generic installation procedure that applies AL2023 or Bottlerocket GPU Operator options to Auto Mode.

The accelerated AMI guide describes options according to each AMI's pre-installed components. Even when only observability is needed, verify support on the target nodes and consult the component descriptions in the NVIDIA GPU stack.

Decision Flow​

Figure 1. Inference deployment selection flow by model scale

Expand the diagram to read labels and follow connections.
Choosing an inference deployment
Test memory and SLOs on one GPU first, then evaluate within-node parallelism and multiple nodes when needed.

These are evaluation stages, not fixed specifications tied to parameter counts.

Table 4. Condition and next guide for each 3-Tier deployment stage

StageConditionNext guide
Single GPUMeets both memory and SLO requirementsvLLM serving
Within-node parallelismA single GPU reaches a memory or performance limitMoE serving
Multi-node or disaggregated servingMeasurements show within-node capacity is insufficientDisaggregated serving

Hybrid Architecture: Complete Picture​

When combining EKS, on-premises infrastructure, and managed model APIs, use the tiered gateway guide to identify each layer's responsibilities. Validate fallback API and tool-call compatibility, data-transfer policy, quotas, and response quality. A routing path alone does not guarantee uninterrupted service.

Migration Path​

  1. Record performance, quality, and cost on a single baseline path.
  2. Change one cache, routing, or batching setting for an observed bottleneck.
  3. Check regressions with the same evaluation set and load conditions.
  4. Validate limited traffic before expansion and define when to restore the original path.

References​

Official Documentation​

Papers & Technical Blogs​

Check implementation projects against the selected release and its documented examples.