---
title: "ECS Fargate reached the vCPU or task limit during a deployment | Proofline"
description: "Add the vCPUs old and new tasks hold at the deployment's peak to the account's other Fargate usage, and compare that with the Region's vCPU quota."
url: https://proofline.sh/learn/ecs-fargate-task-or-vcpu-limit-during-deploy/
---

[Learning center](/learn/)

# ECS Fargate reached the vCPU or task limit during a deployment

Add the vCPUs old and new tasks hold at the deployment's peak to the account's other Fargate usage, and compare that with the Region's vCPU quota. If only the peak crosses the quota, the account limit stopped the rollout. If the new revision's steady state crosses it too, the release raised usage beyond what the account allows.

Capacity overruns The Proofline team November 22, 2026 6 min read

## The signature

A deployment of a Fargate service stalls and the service events show one of these:

-   `service (service-name) was unable to place a task. Reason: You've reached the limit on the number of tasks you can run concurrently`
-   `service (service-name) was unable to place a task. Reason: You’ve reached the limit on the number of vCPUs you can run concurrently`

Both name an account quota in one Region, not a property of the task definition or the cluster. AWS announced the move of Fargate from task-count quotas to vCPU-based quotas in September 2022, so the task-count wording comes from the older model and the vCPU quota is the one to read now. Fargate On-Demand and Fargate Spot have separate vCPU quotas. [Service event messages](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html) · [Fargate vCPU-based quotas](https://aws.amazon.com/about-aws/whats-new/2022/09/aws-fargate-announces-migration-service-quotas-vcpu-based/) · [ECS and Fargate quotas](https://docs.aws.amazon.com/general/latest/gr/ecs-service.html)

Three nearby events need different fixes:

| Event reason | What it limits |
| --- | --- |
| The concurrent tasks or vCPUs limit above | Total Fargate vCPUs running in the account and Region |
| `The requested CPU configuration is above your limit.` or the MEMORY equivalent | The size of one task, against a quota |
| `service (service-name) operations are being throttled. Will try again later.` | The rate of API calls or task launches, not the total |

Launch rate is a separate Fargate quota with a burst and a sustained rate, so a large deployment can be throttled while well under its vCPU quota. [Fargate throttling quotas](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/throttling.html)

## Why a deployment reaches the quota first

During a rolling deployment, `maximumPercent` caps the service's tasks in the `RUNNING` or `PENDING` state, as a percentage of `desiredCount`, rounded down. The default is 200, so a service can briefly run up to twice its usual task count while old and new tasks overlap. A quota sized for steady-state usage has no room for that overlap. [Deployment configuration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeploymentConfiguration.html)

The quota counts every Fargate vCPU running in the account and Region, including other services, other clusters and standalone tasks. AWS's Fargate usage metric for the On-Demand quota also combines Amazon EKS pods on Fargate with ECS tasks. A deployment of one service can therefore fail because another team's service scaled out. [Fargate usage metrics for EKS](https://docs.aws.amazon.com/eks/latest/userguide/monitoring-fargate-usage.html)

## Read the peak, the quota and the current usage

Use a read-only profile and replace the uppercase placeholders. Start with the service and both revisions.

```
aws ecs describe-services \
  --profile PROFILE --region REGION --cluster CLUSTER --services SERVICE \
  --query 'services[0].{desired:desiredCount,launch:launchType,strategy:capacityProviderStrategy,max:deploymentConfiguration.maximumPercent,min:deploymentConfiguration.minimumHealthyPercent,deployments:deployments[].{status:status,definition:taskDefinition,running:runningCount,pending:pendingCount}}' \
  --output json --no-cli-pager

aws ecs describe-task-definition \
  --profile PROFILE --region REGION --task-definition TASK_DEFINITION_ARN \
  --query 'taskDefinition.{definition:taskDefinitionArn,cpu:cpu,memory:memory}' \
  --output json --no-cli-pager
```

Task `cpu` is in CPU units, 1,024 per vCPU, and Fargate requires it at the task level. The `strategy` tells you which quota applies: a `FARGATE_SPOT` weight draws on the Spot quota. [TaskDefinition cpu](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskDefinition.html)

Then read the applied Fargate quotas. The field names follow AWS's own example for this command.

```
aws service-quotas list-service-quotas \
  --profile PROFILE --region REGION --service-code fargate \
  --query 'Quotas[*].{Name:QuotaName,Value:Value,Adjustable:Adjustable,Code:QuotaCode}' \
  --output table --no-cli-pager
```

For current usage, Fargate publishes a `ResourceCount` metric in the `AWS/Usage` namespace that corresponds to its quotas. AWS's ECS and EKS pages describe its dimensions differently, so list the metrics your account actually has before you graph one. Graph the `Maximum` of that metric over the deployment window. [Fargate usage metrics](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/monitoring-fargate-usage.html)

```
aws cloudwatch list-metrics \
  --profile PROFILE --region REGION --namespace AWS/Usage \
  --dimensions Name=Service,Value=Fargate \
  --query 'Metrics[].{metric:MetricName,dimensions:Dimensions}' \
  --output json --no-cli-pager
```

## Compute the deployment's need

```
peak tasks         = floor(desired × maximumPercent / 100)
peak vCPU, worst   = old tasks still running × old vCPU + new tasks × new vCPU
steady-state vCPU  = desired × new vCPU
headroom           = quota − (usage before the deployment − this service's old vCPU)
```

| Result | Cause | Change |
| --- | --- | --- |
| Steady state fits the headroom; the peak does not | The overlap reaches the quota | Request a quota increase, or deploy with a lower `maximumPercent` |
| Steady state alone exceeds the headroom | The new revision needs more vCPU than the account allows | Request a quota increase before redeploying, or reduce task `cpu` |
| Both fit | Usage elsewhere grew, or the reason is a different limit | Read the usage metric at the event time and the full event text |

## An illustrative fixture

This fixture is fictional. Account 111122223333 has an applied Fargate On-Demand vCPU quota of 40 in its Region. Other services use 25 vCPUs. The service `orders` runs 10 tasks of `orders:57` at 1 vCPU each, so the account runs 35 vCPUs before the deployment. The service uses `maximumPercent` 200 and `minimumHealthyPercent` 100.

In the first case `orders:58` keeps 1 vCPU. The deployment wants 10 new tasks beside 10 old ones, a peak of 45 vCPUs. ECS starts five new tasks, reaches 40, and the vCPU event appears. Once those five are healthy it can stop old tasks and continue in steps, so the deployment slows down or stalls rather than failing for a reason in the release. The steady state after the deployment is again 35 vCPUs.

In the second case `orders:58` raises task `cpu` from 1024 to 2048. The steady state after the deployment would be 25 + 20 = 45 vCPUs, over the quota even with every old task stopped. Lowering `maximumPercent` cannot help, because the finished deployment does not fit. Roll back, then raise the quota before you deploy the larger tasks.

## What to change

Request an increase for the Fargate vCPU quota that matches the capacity the service uses, through Service Quotas. AWS also raises Fargate quotas automatically as an account's usage grows, and new accounts may start lower. An increase is not instant, so request it before the deployment that needs it. [Requesting a quota increase](https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html) · [ECS and Fargate quotas](https://docs.aws.amazon.com/general/latest/gr/ecs-service.html)

To fit the overlap under the current quota, lower `maximumPercent` for this service. With 10 tasks, 120 gives a ceiling of 12, so the peak is two extra tasks. Keep the ceiling above the desired count, or the deployment stops on a different event. [Deployment configuration bounds](/learn/ecs-deployment-configuration-blocks-replacement/)

## Confirm on the replacement

After the change, the quota event should stop, the new deployment's `running` count should reach the desired count, and the service should report a steady state. Read the usage metric's maximum during that deployment against the applied quota. A deployment that peaked within a few vCPUs of the quota will fail again when any other Fargate workload in the Region grows.

## Where the reading misleads

The usage metric is account-wide, so it shows that the account reached its quota, not which workload took the room. Compare per-service task counts at the event time to find it. Applied quota values change when AWS raises them automatically, so read the value in effect at the failure, not a figure in your notes. Quota defaults differ across AWS pages and over time, so treat any published default as a starting point.

If the event instead named a container instance with insufficient CPU or memory, the service runs on EC2 capacity, not Fargate; see [the CPU and memory guide](/learn/ecs-unable-to-place-task-insufficient-resources/). For other signatures, see [the signature table](/learn/aws-deployment-failure-signatures/).

## Questions

### Is the Fargate vCPU quota per cluster or per account?

Per account and Region. Every Fargate task in that Region counts, across all clusters and services, and EKS pods on Fargate share the On-Demand usage metric.

### How do I check my Fargate vCPU quota?

Run `aws service-quotas list-service-quotas --service-code fargate` for the Region, or open AWS Fargate in the Service Quotas console. The applied value is the one in effect, which can differ from the AWS default.

### Will lowering maximumPercent fix a Fargate vCPU limit during deployment?

Only if the new revision's steady state fits under the quota and the overlap is what crosses it. If the new tasks alone need more vCPUs than the account allows, request a quota increase or reduce the task size.

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [ECS unable to stop or start tasks: deployment configuration bounds](/learn/ecs-deployment-configuration-blocks-replacement/)
    
    Deployment failures The Proofline team November 22, 2026 7 min read
    
-   ### [ECS unable to place a task: insufficient CPU or memory on EC2](/learn/ecs-unable-to-place-task-insufficient-resources/)
    
    Capacity overruns The Proofline team November 22, 2026 6 min read
