Last reviewed November 2026.
A development or staging server that runs around the clock is billed for 168 hours a week. A small team typically uses it during working hours on weekdays, perhaps 50 of those hours. The other hours are paid for and wasted. Scheduling non-production machines to stop at night and at weekends is one of the least glamorous cost fixes in the cloud, and one of the most reliable.
The arithmetic
If a server is needed from 8 a.m. to 6 p.m., Monday to Friday, that is 50 hours out of 168, or about 30 percent of the week. Stopping it the rest of the time removes roughly 70 percent of its compute charge. The saving applies only to compute: attached disks, snapshots and reserved public addresses keep billing while the server is stopped, so the real saving is a little lower. Run both versions through the cost estimator by adjusting the instance count to see the shape.
What can be scheduled
| Resource | Schedule it? | Notes |
|---|---|---|
| Development and test virtual machines | Yes | The easiest win. |
| Staging copy of the shop | Usually | Unless a partner tests against it overnight. |
| Non-production managed databases | Often | Some services can be stopped for a limited time and restart automatically; check the provider's rules. |
| Production storefront and its database | No | Customers shop at night. |
| Build servers | Better on demand | Start for a job, stop when done. |
How to set it up
- Tag every non-production resource with an environment tag and an owner, so the schedule can find them.
- Use the provider's own scheduling options. AWS publishes an Instance Scheduler solution, Azure virtual machines have auto-shutdown and Automation runbooks, and Google Cloud supports instance schedules on Compute Engine. A simple scheduled script works too.
- Agree the hours with the team, including time zones if people work remotely, and give them an easy way to start a machine outside the schedule.
- Stop, do not delete. Stopped machines keep their disks and configuration.
Gotchas
- Public IP addresses may change when a server stops and starts unless they are fixed, which can break bookmarks and allowlists.
- Scheduled jobs on the server (backups, reports) will not run while it is off; move them or adjust the timing.
- Remote teams across several time zones may need a longer window, which reduces the saving but keeps people productive.
In a hypothetical team of three developers with one test server each, scheduling all three is an afternoon's work, and the saving repeats every month without further effort. That is the profile of a good cost fix: small, boring and permanent.
Checking that the schedule works
A schedule that silently fails is easy to miss, because nothing breaks: the servers simply keep running and the bill stays the same. After setting it up, look at the compute line for non-production resources in the next two weekly cost reports and confirm it has dropped. If you use environment tags, filter by them so the check takes a minute. Also ask the team after a fortnight whether the hours suit them. A schedule people keep overriding by hand is a sign the window is wrong, and an override that is never switched back off undoes the saving.