Scale memory of an attached db machine?

I have two db achines - primary and replica. I overprovisioned them and want to scale down the memory. I don’t seem to understand how to run the command. Here is what I’m trying?

fly scale memory 1024 -a mayapp-db
Error: No active machines in process group ‘app’, check fly status output

fly scale show -a myapp-db
VM Resources for app: myapp-db

Groups
NAME COUNT KIND CPUS MEMORY REGIONS
2 shared 2 4096 MB fra(2)

@rio517

You need a different command for scaling the DBs.

First off, get the DB machine’s id <MACHINE_ID> by running

fly status --app <db_app_name_here>

Then run

fly machine update <MACHINE_ID> --memory 1024 --app <db_app_name_here>

This should get you what you want.

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