Can RAM and Volumes be managed on the fly / demand?

I am building SaaS application where video files are downloaded and then uploaded and deleted. So far the free 3GB persistent volume storage is ok but I expect that in the future there could a need to temporally increase the volume to accommodate the need of requested download.

In the future I want to offer to SaaS user to edit the video file before uploading. I guess I will need additional RAM for editing. So I have the same question. Can I somehow increase RAM when needed?

thank you

Yes, with fly scale memory <size-in-megabyes> (docs).

You can, likewise, change the number of VMs (fly scale count <number>), change regions (fly regions add <list-of-region-ids>) where they are deployed to, change vCPUs available to the VM (fly scale vm <cpu-type>) on-the-fly (all of which are idempotent ops: Managing applications with code - #2 by kurt).

Similarly, disk space may be increased too (but never decreased): Increase disk capacity on VM - #2 by ignoramous

Note though, you’d typically need at least 2 or more app instances to avoid downtime when the app is being scaled up or down.

1 Like