DEV Community

Vlad Z
Vlad Z

Posted on

Your dev environment runs 168 hours a week and is used for 60

Non-production environments only need to run 60 hours a week

A week has 168 hours. A team working 12 hours a day, five days a week, uses 60 of them

Which means a dev or staging environment that runs around the clock is idle for roughly 64 percent of the hours it bills

The default

Stop non-production compute in the evening
Start it in the morning
Keep it off at weekends
Give people a simple way to switch it on outside those hours

What this covers

Instances and node pools
Databases that can be stopped
Load balancers and NAT gateways that can be removed with the environment
Anything with an hourly price and nobody using it at night

What a schedule does not fix

Storage keeps billing while compute is stopped. Disks, snapshots and elastic IPs stay on the invoice, so a stopped environment is cheaper, not free

Some databases restart on their own after a few days. Managed services that can be stopped often have a maximum stop duration, so check yours

The better version

Environments created from code can be destroyed and recreated each day, which removes the storage line and the drift with it. That takes real work, and a schedule is the fast version you can apply this week

Where teams get stuck

Somebody needs the staging box at 9pm, so the schedule gets disabled and never comes back. Build the override in from the start

The saving is large and the risk is small, which is why it is usually the first thing to switch on

If your dev environment has been running since March, you already know how much it bills

Which non-production environments in your account run 24 hours a day?

Top comments (0)