Does stopped VMs incur costs?

Lets say I spin up a dedicated-cpu-4x(8gb) instance, stop it after one hour and leave it in that state. Will it continue to incur cost?

A vm that exists, even idle, will incur a cost.

You can see if your app is using any vms using fly status. You’ll see some info with a table of vms like this. You pay for those vms.

Instances
ID      	PROCESS	VERSION	REGION	DESIRED	STATUS 	HEALTH CHECKS     	RESTARTS	CREATED
abcdefgh	app    	1     	lhr   	run    	running	2 total, 2 passing	0       	0h10m ago

If you want no vms, you could scale your app down to 0. That way it will still exist but have no vms, and so cost nothing. Try fly scale count 0

And you can confirm by waiting a minute, running fly status and checking there are now no vms listed.

(There may be other costs, like if you have a volume or IP, but the main cost is the vm)

1 Like

In my experience, these ops complete in a few seconds these days! Something has radically changed in Fly’s control plane. May be, that’s down to them overhauling the impl for machines?

1 Like

Thanks a bunch Greg :+1:

2 Likes