Staging
Amazon EC2 · two t3.medium per environment
Twelve staging environments, used on weekdays
Testers and developers check each release on one of twelve environments, each two EC2 instances behind the team’s load balancer. They work from 9 to 6, Monday to Friday. Nights and weekends, the instances used to run for nobody.
- An uptime monitor checks the home page. Monitors get the waiting page, never a wake.
- The awake window opens: the instances start before the team arrives, so nobody waits in the morning.
- The last tester left at 18:44. Fifteen minutes later, at the next check, it naps: the rules switch to the waker and the instances stop.
- A developer checks a fix from home. The waiting page shows, then the application, about 40 seconds later.
- Nobody since 21:28: it naps again.
Settings
- Schedule
- Awake from 08:30 to 18:30, Monday to Friday
- Idle window
- 15 minutes, the default
- Wake mode
- Any, the default
Its week
- 114 hasleep of 168 hours (68%)
- 7wakes: 5 by the schedule, 2 by visitors
- 2visitors who waited
≈ $45 a month per environment, about $540 for the twelve (estimate)
114 hours asleep a week at $0.0912 an hour (2 × t3.medium at $0.0456), × 52 weeks ÷ 12. On-demand list prices in eu-west-1.