What does "Machines Shared 1x: Additional RAM" mean

Machines Shared 1x: Additional RAM (iad)

$0.04

i am running one mechine why there 2 instances and what does this mean

shared-cpu-1x only includes 256MB of RAM. Additional RAM is a seperate additional charge

Well I am on 1GB ram plan with shared-cpu-1x and my avg ram usages is 400mb and I have not used ram more than 1 GB then why additional ram or I am missing something

[[vm]]
memory = ‘1gb’
cpu_kind = ‘shared’
cpus = 1

If you request 1gb of RAM, that’s how much you’ll be charged for, rather than what you’re utilising. This is because when you say you need 1gb, the server has to reserve 1gb, so that RAM is not available to other Machines running on the same server.

If you’re finding that you only need 400mb, just lower the memory in your fly.toml. We support increments of 256mb for shared Machines, so you could lower to 512mb straight away, or 768mb if you’d like to give your app a bit of breathing room.

Note, you’ll need to request enough RAM to accommodate spikes in RAM utilisation (or otherwise allocate sufficient swap). Your average usage might be 400mb, but if your app occasionally spikes up to 900mb (even if only once, e.g. on start up), then you do need 1gb reserved.

2 Likes

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