Any way to specify one performance-1x machine and one performance-2x machine in fly.toml?

I’m currently running my app in 2 regions: LHR and FRA, each one with two performance-2x machines, my fly.toml looks like this:


app = '***'
primary_region = 'fra'

[build]

[env]
  PORT = '8081'
  HOST = 'https://***.com'
  NODE_OPTIONS = '--max-http-header-size=32768'

[http_service]
  internal_port = 8081
  force_https = true
  auto_stop_machines = "off"
  auto_start_machines = true
  min_machines_running = 1
  processes = ['app']

[[vm]]
  size = 'performance-2x'
  cpu_kind = 'performance'
  memory_mb = 4096

How can I set up my toml file to specify a total of 4 machines?: One performance-1x machine and one performance-2x machine, on each region.

Any insight is appreciated!

1 Like

use process groups with the same command:

[processes]
  small = "/path/to/app"
  large = "/path/to/app"

[[vm]]
  processes = "small"
  size = "performance-1x"

[[vm]]
  processes = "large"
  size = "performance-2x"

then put processes = ["small", "large"] in your http_service.

you cannot at the moment specify machine count in fly.toml, but you can fly scale count 1 -r fra --process-group small after deploying.