www.awsgood.com
CapacityUtilization, InsufficientCapacityError, and SessionLaunchTime. They correspond respectively to "almost full," "already rejecting users," and "the image is degrading."Most teams, when they first hear "failure drills," think it is something only companies at Netflix's scale do. AppStream scenarios are actually much simpler—you have just one fleet, a few stacks, and one or two image versions, so the blast radius is small and it is perfect for practice.
I usually prioritize by "impact scope × recovery difficulty," starting from the bottom-right:
| Drill Item | How to Create It | Expected Impact | What to Watch |
|---|---|---|---|
| Force end session | expire-session takes down 1 session |
Single user reconnects | Whether the user reconnects automatically |
| Push fleet to MinCapacity | Temporarily set MaxCapacity to the Min value | New users queue | Whether InsufficientCapacityError alerts |
| Network drive unreachable | Security group temporarily disconnects FSx / file server | Application launch fails | Whether SessionLaunchTime spikes |
| Image rollback | Recreate the fleet with the previous Image | All users affected | Rollback duration |
| Saturate CPU on a single instance | Run a stress test script in the session | Single user lag | Whether the instance type needs to be changed |
First, learn the command to kick a session:
aws appstream expire-session
--session-id "corp-fleet-tokyo-user01-1a2b3c4d"
--region ap-northeast-1
Get the session ID from `describe-sessions`:
```bash
aws appstream describe-sessions
--fleet-name corp-fleet-tokyo
--authentication-type SAML
--region ap-northeast-1
--query 'Sessions[].{Id:Id,User:UserId,State:State,Start:StartedTime}'
Schedule drills during off-peak hours, such as after 21:00 Tokyo time, or just pick Friday afternoon—people's psychological expectation for problems on Friday afternoon is actually lower than on Monday morning. Change only one variable per drill; after the change, observe for 20 minutes before moving to the next item.
## Monitoring Thresholds, Inspection Checklists, and Scaling: From 3 Minutes a Day to One Drill a Month
AppStream 2.0 metrics are all under the `AWS/AppStream` namespace, with the fleet name as the dimension. There are actually only seven or eight metrics that really need alarms; configuring more just creates noise.
| Metric | Threshold | Description |
|---|---|---|
| `CapacityUtilization` | > 75% for 5 minutes | Earliest signal, 10–20 minutes ahead of "full" |
| `InsufficientCapacityError` | Sum ≥ 1 for 2 consecutive periods | Users are already being rejected, P1 |
| `AvailableCapacity` | < 2 | The buffer is gone |
| `SessionLaunchTime` | p90 > 120 seconds | First evidence of image or network drive degradation |
| `InUseCapacity` | ≥ 85% of MaxCapacity | About to hit the upper limit |
| Fleet instance `CPUUtilization` | > 85% for 10 minutes | Instance type is too small; switch to stream.standard.large |
| `AccessDenied` on the user home folder | Alert on occurrence | IAM role or S3 bucket policy changed |
Pull a historical data series to take a look:
```bash
aws cloudwatch get-metric-statistics
--namespace AWS/AppStream
--metric-name InsufficientCapacityError
--dimensions Name=Fleet,Value=corp-fleet-tokyo
--start-time 2025-09-17T00:00:00Z
--end-time 2025-09-17T03:00:00Z
--period 300 --statistics Sum
--region ap-northeast-1
Use Application Auto Scaling managed policies for scaling; don't write your own Lambda:
```bash
aws application-autoscaling register-scalable-target
--service-namespace appstream
--resource-id fleet/corp-fleet-tokyo
--scalable-dimension appstream:fleet:DesiredCapacity
--min-capacity 4 --max-capacity 40 --region ap-northeast-1
aws application-autoscaling put-scaling-policy
--service-namespace appstream
--resource-id fleet/corp-fleet-tokyo
--scalable-dimension appstream:fleet:DesiredCapacity
--policy-name cap-70
--policy-type TargetTrackingScaling
--target-tracking-scaling-policy-config '{
"TargetValue": 70.0,
"PredefinedMetricSpecification": {
"PredefinedMetricType": "AppStreamAverageCapacityUtilization"
},
"ScaleOutCooldown": 180,
"ScaleInCooldown": 600
}'
--region ap-northeast-1
`ScaleOutCooldown` defaults to 600 seconds, which is simply unaffordable during morning peak. Scale-in can be slower, because the startup time for an instance from stopped to available is usually longer than scale-out, and the cost of flapping back and forth is high.
I break daily operations inspection into three cadences. 3 minutes per day: use `describe-fleets` to check whether the three numbers Desired / InUse / Available are consistent, check whether there is any `InsufficientCapacityError`, and check whether any sessions ended abnormally last night. 15 minutes per week: review the p90 curve of `SessionLaunchTime`, check whether S3 usage reports are being delivered normally, and verify in CloudTrail whether anyone made unregistered changes to the fleet or image. 2 hours per month: run one image rollback drill plus one cost review—AppStream billing is very counterintuitive: **fleet instances in stopped state are still billed hourly**; only terminate stops billing. I have seen a team set MinCapacity to 20 for "always available," and as a result 15 instances were idle all night year-round, making the bill significantly higher than estimated.
## Real-World Test and Pitfalls: Login Time Rose from 80 Seconds to 210 Seconds After an Image Update
At 08:41 on 2025-09-17, in the Tokyo Region, people in the on-call group started posting screenshots. After users opened the application, it got stuck on a white screen, and the browser showed "There are no streaming instances available for this fleet. Please try again later." During the 15 minutes from 8:35 to 8:50, the Sum of `InsufficientCapacityError` in CloudWatch spiked to 213.
First, look at capacity. The return from `describe-fleets` looked like this:
```json
{
"State": "RUNNING",
"Desired": 8,
"InUse": 8,
"Available": 0,
"Running": 8
}
InUse was maxed out and Available had dropped to zero, which showed that the issue was not that the scaling policy failed to trigger, but that scaling simply could not happen in time. The first version of the configuration had three mistakes: MinCapacity was only 8; `ScaleOutCooldown` used the default 600 seconds; scaling looked only at `CapacityUtilization` and not at `SessionLaunchTime`. Each of these mistakes is not fatal in isolation, but together they exploded during morning peak.
It took 40 minutes to pinpoint the real cause. The first step was to pull the p90 of `SessionLaunchTime`; it had risen from around 80 seconds the previous week to 210 seconds, and the timing lined up exactly after the 09-15 image update. The second step was to compare the Image ARN creation