superfly / fly

Deploy app servers close to your users. Package your app as a Docker image, and launch it in 17 cities with one simple CLI.
https://fly.io
985 stars 48 forks source link

Machine API V2 and region add does not scale as expected #300

Open spotsnel-admin opened 1 year ago

spotsnel-admin commented 1 year ago

I find the machines api confusing when it comes to fly regions add ... and the flyctl scale count 2, as it seems this does not work as such, without a clear error.

flyctl scale count 2 --max-per-region fails, but the description is even more confusing.

Instead, you are supposed to use fly machines clone --region ... [id]. After which, the command fly regions list does show the expected values from the regions you cloned to.

I would however expect the first command regions add to work as expected or indicate that for V2 you need to clone instead.

gbraad commented 1 year ago

Might have filed this in the wrong repo, as this looks a lot like: https://github.com/superfly/flyctl/issues/1990