Open swilson-fly opened 1 month ago
This is a recurrent issue. I would like to share some context on why it works that way, and what things have to be kept in mind if we change it. Hopefully we can come up with a workflow that works for everyone.
Historically to change the size (mem, cpu, ...), or scale vertically, you have to use fly scale vm
or the more specialized subcommand fly scale memory
. fly scale count
is exclusively to scale horizontally and only adds or remove machines, it doesn't update existing ones. The --vm-*
flags on fly scale count
were introduced as a workaround when there is no existing machine for a process group and fly.toml doesn't define with a [[vm]]
section.
It doesn't have to stay way of course but if we allow fly scale count
to change existing machines:
[[vm]]
section is present in fly.tomlfly deploy
with an updated [[vm]]
section than scaling vertically with fly scale
commands.
Describe the bug Briefly, describe what broke and provide the following details: The
fly scale count
command takes the--vm-*
family of flags (vm-size, vm-cpus, vm-memory etc.) which are used to specify the sizing of the newly created machines. However it seems to disregard this input altogether, creating machines that are the same size as the existing ones.For example on an app with a
shared-1x
machine, runningfly scale count 2 --vm-size 'performance-2x'
will add another shared-1x machine. This is in contrast tofly machine clone
which handles those flags correctly, creating a machine of the specified size.fly version
fly v0.2.126 darwin/arm64 Commit: c44f26fc7dd564876d286894f8c5b769a758b100 BuildDate: 2024-09-06T21:32:23Z** Paste your
fly.toml
n/a
Command output: