`ProvisionedThroughputExceededException: The level of configured provisioned throughput for the table was exceeded.`
IntermediateTroubleshootingRDS, Aurora and DynamoDB
Answer
Likely causes → The table is in provisioned mode and traffic is above its RCU/WCU. Auto scaling reacts only after a few minutes, so sudden spikes throttle first. Burst capacity covers only short spikes.
Diagnose →
aws dynamodb describe-table --table-name orders --query 'Table.[BillingModeSummary,ProvisionedThroughput]'
aws cloudwatch get-metric-statistics --namespace AWS/DynamoDB --metric-name WriteThrottleEvents \
--dimensions Name=TableName,Value=orders --statistics Sum --period 60 \
--start-time $(date -u -d '-1 hour' +%FT%TZ) --end-time $(date -u +%FT%TZ)
aws application-autoscaling describe-scalable-targets --service-namespace dynamodb
Fix →
- For spiky or unknown traffic, switch to on-demand:
aws dynamodb update-table --table-name orders --billing-mode PAY_PER_REQUEST - Or raise the capacity and the auto scaling minimum before known peaks
- Make sure the SDK retries with backoff
Prevent → Use on-demand by default, provisioned with auto scaling for steady, predictable load, and alarm on throttle events.
More on RDS, Aurora and DynamoDB
The app cannot connect to RDS: `psql: error: connection to server at "mydb.abc.us-east-1.rds.amazonaws.com" (10.0.3.12), port 5432 failed: Connection timed out`.Beginner`FATAL: password authentication failed for user "postgres"` and nobody knows the master password.Beginner`FATAL: no pg_hba.conf entry for host "10.0.1.25", user "app", database "orders", no encryption`.IntermediateApp logs show `FATAL: remaining connection slots are reserved for non-replication superuser connections` (or MySQL `ERROR 1040 (HY000): Too many connections`).IntermediateRDS status shows `storage-full` and writes fail.IntermediateA read replica's `ReplicaLag` keeps growing and reports show stale data.Intermediate