Lesson 3 of 4 Cost Optimization for GenAI

Planning Capacity and Sizing Provisioned Throughput

This lesson covers capacity planning in tokens per minute, utilisation monitoring and correct sizing of provisioned and self-hosted capacity, avoiding both throttling and paying for idle resources.

Learning outcomes

After completing this lesson, you will be able to:

  • Plan capacity in tokens.
  • Monitor utilisation against capacity.
  • Size Provisioned Throughput for the baseline and overflow peaks.

Planning capacity in tokens

Capacity planning starts from expected peak requests per minute and the distribution of prompt and completion tokens per request (from logs or the proof of concept). Peak tokens per minute equals peak requests per minute multiplied by average tokens per request, with headroom for bursts and growth. This figure is compared with on-demand TPM and RPM quotas per model and Region (raised through Service Quotas when needed), with Provisioned Throughput model unit capacity, or with self-hosted throughput measured by load tests. Changes such as adding RAG context or longer answers change token counts and must update the plan.

The following diagram shows the capacity calculation and the decision it supports.

Planning capacity in tokens. Peak requests per minute multiplied by average tokens per request, plus headroom for bursts and growth, gives peak tokens per minute. Within the on-demand quotas, on-demand inference serves it; above them, the options are a quota increase, cross-Region inference or Provisioned Throughput.
Token distributions come from logs or the proof of concept.
Fill in the number

Planning peak tokens per minute

Exam skills 4.1.3 · 4.2.5

Work out the capacity a workload needs at peak.

Log in to try this activity Interactive activities are free with an account.

Utilization monitoring

Capacity plans are only as good as the measurements behind them, so actual usage is compared with capacity continuously. For on-demand Amazon Bedrock, this means token metrics and throttling counts; for Provisioned Throughput, the utilisation of the purchased model units; and for SageMaker AI endpoints, invocations per instance, concurrent requests, GPU utilisation and memory.

Tracking input and output token volumes over time, broken down by application feature, reveals growth trends and changes in usage, such as a new feature that doubles average prompt length. Two signals require action. Sustained throttling means capacity is too low for demand, and users are experiencing errors or delays. Consistently low utilisation of provisioned capacity means money is being spent on capacity that is not used, and the commitment should be reduced or the workload moved to on-demand pricing.

Optimizing provisioned and self-hosted capacity

Provisioned Throughput should be sized for the steady baseline, with peaks overflowing to on-demand (or cross-Region inference) through application logic, rather than sized for the peak. Commitment terms (one or six months) lower the hourly price but should match how long the model will be used; no-commitment hourly purchases suit short campaigns or testing. Unused provisioned capacity is deleted promptly.

For SageMaker AI endpoints, auto scaling uses target tracking on concurrency or invocations per instance, scheduled scaling for known daily peaks, and scale-to-zero for inference components that are idle for long periods. Because model loading is slow, a warm minimum and queues absorb sudden bursts. The following table summarises capacity decisions.

SituationCapacity decision
Variable traffic within quotasOn-demand; monitor throttles
Peaks above quotaQuota increase, cross-Region inference, queues
Steady high baselineProvisioned Throughput for the baseline; on-demand for peaks
Self-hosted with daily patternScheduled plus target tracking scaling; warm minimum
Self-hosted idle for hoursScale inference components to zero
Scenario questions

Right-sizing Provisioned Throughput

Exam skills 4.1.3 · 4.2.5

Practise sizing provisioned capacity.

Log in to try this activity Interactive activities are free with an account.
Worked example

Over-provisioned throughput

A company bought Provisioned Throughput sized for its Monday-morning peak. Utilization averages 25% and the bill is high.

Re-sizing to the steady weekday baseline and sending the Monday peak's overflow to on-demand inference through a cross-Region profile cuts the provisioned cost by more than half; a CloudWatch dashboard tracks utilisation and on-demand overflow to confirm the size.

Check yourself

How should Provisioned Throughput be sized for traffic with occasional peaks?

Show answer

For the baseline, with peaks overflowing to on-demand, so capacity is not paid for when it is idle.

Exam Tips

Remember for the exam

  • Plan capacity as peak tokens per minute with headroom.
  • Size Provisioned Throughput for the baseline; overflow peaks to on-demand.
  • Low provisioned utilisation wastes money; sustained throttling means too little capacity.
  • Scale self-hosted endpoints on concurrency, with schedules and warm minimums.