How can I prevent the app from being charged?

Hello!

I registered a simple application on the Hobby plan. After a day of work, I saw that I was being charged.

97726 GB/s × VM: Additional RAM (at $0.00000193 / month) $0.19

What settings should I specify so that I don’t receive additional charges and the application stops working when it needs some additional resources?

Hi, in your fly.toml you’ve got:

[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1_024

Referring to our free allowances:

Resources included for free on all plans:

  • Up to 3 shared-cpu-1x 256mb VMs

So because your fly.toml is configured to use shared-cpu-1x 1024 VMs, you’re being charged for the additional 768mb.

If you want to stop being charged, you can run fly scale memory 256.

1 Like

Thanks, that helped. But why does my app use two machines if it is specified in the settings
[[vm]]
cpu_kind = “shared”
cpus = 1
memory_mb = 256

I think you’re asking why you get two Machines when you specified cpus = 1?

That configuration is for the specs of each Machine. What you’ve got means “every Machine should be a shared-1x-256mb Machine”, where 1x refers to the number of vCPUs.

You get two Machines because fly launch tries to set you up for (somewhat) high availability. If you’d like to run just one Machine, you can fly scale count 1. You can’t specify number of Machines in your fly.toml yet.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.