Hi, a couple questions that might be configurable but I’m not sure
My deploy of a single machine always follows with this message - “Creating a second machine to increase service availability”. Is there a way for me to specify that I want only a single machine?
Is there a way for me to specify the memory amount for a machine, or do I need to run fly scale memory 2048 after each deploy?
The default behaviour is that on your first deploy, Fly will create two machines in your primary region for your app. The second machine is the “standby machine”, and most of the time it will be off, and you won’t be charged for it. It’s recommended to have at least two machines per app to avoid downtime stemming from updates and hardware failures.
You can delete that second machine if you really want to. You can also scale machines, and deploy new ones in different regions.
When you run a deploy, Fly will deploy to all machines in your app, but it will not create or change machines.
To answer your question, you cannot define count or scale in your fly.toml file, but you also don’t need to.
If you really don’t want a second standby machine, you can disable the high availability feature by adding --ha=false to the fly deploy command on initial deploy