Billing.

Hello you all.

Im trying to understand the billing and pricing.
Read the prices and deployed my first app on fly-io.

Now when I’m looking at the billing, I cant figure out what generates the cost.

Example;
717 GB/hr × Volume: SSD Storage (at $0.0002083333 / month) $0.15

If someone could explain this to me, I would get much more comfortable on predicting actual cost =D

Thanks in advance

Hi @drobban

You pay for storage per hour per gigabyte provisioned.

So you could have had one 1GB volume provisioned for 717 hours, or one 3GB volume provisioned for 239 hours, or even three 1GB volumes provisioned for 239 hours.

1 Like

Thank you for the answer. Where can I find information about my storage usage?

In regards to billing, whatever it says on your bill is pretty much all the information there is, though fly.io support might be able to give you more information regarding something specific.

If you want to see what volumes are currently provisioned for your app you can use the fly volumes list command. Here are the docs flyctl volumes · Fly Docs

Again thank you.

Just trying to figure out what generates the costs. As is, it appears to black be magic as I dont have any fly volumes attached

Hi @drobban I can see that you have two 10GB volumes for your database app. If that was a mistake and you wanted a lower size here’s how another user solved it:

Let me know if we can help more :slight_smile:

1 Like

sounds weird. as I just used the automated tool for launching a phoenix app…

Must have screwed something up

Thanks for the help

I assume this is a problem

Screenshot_2022-08-30_13-36-23

Not sure how Im supposed to be able to remove a volume that isnt visible to me?

Volumes are per-app. I think since you’re on your Elixir app and you don’t have volumes there you’d see this empty list.

Try this:

fly volumes list -a YOUR_DATABASE_APP_NAME

Thank you!

The instructions worked very well. As a new user to this platform I’m not sure whats normal;
2022-08-30T11:58:10.517 app[3799196e] fra [info] sentinel | 2022-08-30T11:58:10.517Z WARN cmd/sentinel.go:276 no keeper info available {“db”: “86c139b9”, “keeper”: “c07e1a7462”}

Is it normal for the app to start spitting out the above warning?
Not sure if it did before I started changing stuff.

Oh, that sounds very weird. Can I ask how did you get to this bug?

I assume I did something stupid, here is a cleaned up log;

drobban@tsystem:~/code/elixir/**************$ fly volumes create pg_data --size 1 --region fra -a **************-db
ID: vol_02gk9vw188qr76wm
Name: pg_data
App: ***************-db
Region: fra
Zone: 8ce3
Size GB: 1
Encrypted: true
Created at: 30 Aug 22 11:45 UTC

drobban@tsystem:~/code/elixir/*************$ fly status -a ****************-db
App
Name = **********-db
Owner = personal
Version = 2
Status = running
Hostname = **************-db.fly.dev
Platform = nomad

Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
1ad5b92e app 2 fra run running (failed to co) 3 total, 1 critical 0 50s ago
993f1360 app 2 fra run running (leader) 3 total, 2 passing, 1 critical 0 2022-08-28T20:14:48Z
d8e35e89 app 2 fra run running (replica) 3 total, 3 passing 0 2022-08-28T20:14:48Z

drobban@tsystem:~/code/elixir/**************$ fly volumes list -a ****************-db
ID STATE NAME SIZE REGION ZONE ATTACHED VM CREATED AT
vol_02gk9vw188qr76wm created pg_data 1GB fra 8ce3 1ad5b92e 3 minutes ago
vol_5podq4q61p8rg8w1 created pg_data 10GB fra e79a 993f1360 1 day ago
vol_mjn924oe8qxv03lq created pg_data 10GB fra 5dea d8e35e89 1 day ago

drobban@tsystem:~/code/elixir/***************$ fly volumes delete vol_mjn924oe8qxv03lq
Deleting a volume is not reversible.
? Are you sure you want to delete this volume? Yes
Deleted volume vol_mjn924oe8qxv03lq from *********************-db

drobban@tsystem:~/code/elixir/*************$ fly status -a ****************-db
App
Name = *******************-db
Owner = personal
Version = 3
Status = running
Hostname = ***************************-db.fly.dev
Platform = nomad

Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
1ad5b92e app 3 fra run running (replica) 3 total, 3 passing 0 2m48s ago
993f1360 app 3 fra run running (leader) 3 total, 3 passing 0 2022-08-28T20:14:48Z

drobban@tsystem:~/code/elixir/********$ fly volumes delete vol_5podq4q61p8rg8w1
Deleting a volume is not reversible.
? Are you sure you want to delete this volume? Yes
Deleted volume vol_5podq4q61p8rg8w1 from -db
drobban@tsystem:~/code/elixir/
$ fly scale count 1 -a -db
WARN app flag '
-db’ does not match app name in config file '
? Continue using '
-db’ Yes
Count changed to 1
drobban@tsystem:~/code/elixir/**************$ fly status -a ************************-db
App
Name = ************************-db
Owner = personal
Version = 4
Status = running
Hostname = **************************-db.fly.dev
Platform = nomad

Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
1ad5b92e app 3 fra run running (replica) 3 total, 2 passing, 1 critical 0 3m57s ago

drobban@tsystem:~/code/elixir/*******************$ fly status -a ****************-db
App
Name = *******************-db
Owner = personal
Version = 4
Status = running
Hostname = *************************-db.fly.dev
Platform = nomad

Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
1ad5b92e app 4 fra run running (replica) 3 total, 3 passing 0 5m0s ago

The warning is then spit out into the logs
2022-08-30T11:52:44Z app[1ad5b92e] fra [info]sentinel | 2022-08-30T11:52:44.408Z WARN cmd/sentinel.go:276 no keeper info available {“db”: “86c139b9”, “keeper”: “c07e1a7462”}

Should perhaps add that everything works just fine. Seems just little odd to get warnings spammed into the logs I dont know the cause for.

Everything might be okay, I can see here that your DB has all passed health checks. Do let us know if anything happens :slight_smile:

1 Like