Impossible to use fly.io for free

I built an app, wasp/react project which has couple of small sized pages. I upload my project successfully for testing 3 days ago. It didn’t got any traffic, however it cost me 0.83 dollars, just staying active…

Nearly 1 dollar in 3-4 days. There is no way it cost less than 5 dollars in 1 month (free allowance). So it is nearly imposible to use fly.io for free with the Pay As You Go tier. Am I missing something?

Machines Shared CPU 1x => $0.43
Machines Additional RAM => $0.36
Volumes => $0.01
Stopped Machines RootFS => $0.01

Total 0.83 in just 3 days… :frowning:

how much RAM? A simple react project doesn’t need more than 256MB.

I have 2 toml files:

app = 'mycoolapp-server'
primary_region = 'mad'

[build]

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 1
  processes = ['app']

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1

Here is the client:

app = 'mycoolapp-client'
primary_region = 'mad'

[build]

[http_service]
  internal_port = 8043
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1

I am not sure why it has both server and client but probably it is because of the “memory usage”?

Do I need to lower my memory settings? @khuezy

memory = '1gb' This is most likely overkill (you’ll need to monitor traffic and ram usage to find optimal amount, then scale horizontally to increase RPS.)

What do you mean? Didn’t you create 2 apps (server & client)?

I am new to fly.io. Why do I have 2 apps? Client and server? What are those for? Should I change the memory usage to 256 in both files?

Server and client automatically created with the default command I am using. Do you have only one app? What is the common scenario?

Btw I actually have 3 apps, last one is for postgre db.

Yes lower them both to 256.

Why do YOU have 2 apps?

YOU tell me!

Everyone’s app is different, you decide what/how many apps you need.

2 Likes

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