Memory settings get lost after scaling to zero.

This is incredibly annoying and has broken our apps several times:

When you scale to 0 and back to 1 the memory setting is lost

1 Like

Hey @Yaeger, if you switch to using fly machine stop / fly machine start for suspending your app it will retain the memory and CPU configs. You’re not charged for stopped machines, so it’s functionally similar to scaling to 0

Some background: For v2 apps, Fly scale count 0 stops and destroys the existing machine. When you scale the app back up, it creates a brand new machine which uses the default size. Stopping and starting keeps the same machine so config changes to memory, cpus, etc, are persisted.

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