Running into another fly console
bug related to memory.
When I run fly console
, I get the following error:
terminalwire/server [main] → fly console
WARN Ephemeral machine memory will be raised from 0 MB to 512 MB to be compatible with 2 shared CPUs.
Created an ephemeral machine 683d493b7365d8 to run the console.
Connecting to fdaa:a:5321:a7b:182:f642:9dc:2... complete
⚠️ [DEPRECATION] Defining the `template` method on a Phlex component will not be supported in Phlex 2.0. Please rename `Superview::Components::TableComponent#template` to `Superview::Components::TableComponent#view_template` instead.
⚠️ [DEPRECATION] Defining the `template` method on a Phlex component will not be supported in Phlex 2.0. Please rename `Superview::Helpers::Turbo::MetaTags#template` to `Superview::Helpers::Turbo::MetaTags#view_template` instead.
Loading production environment (Rails 8.1.0.alpha)
server(prod)>
Fortunately the console works, but it’s odd that I see WARN Ephemeral machine memory will be raised from 0 MB to 512 MB to be compatible with 2 shared CPUs.
when I have 2gb
defined in my fly.toml
file:
# fly.toml app configuration file generated for terminalwire on 2024-10-02T10:22:34-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'terminalwire'
primary_region = 'sjc'
console_command = '/rails/bin/rails console'
[build]
[env]
CANONICAL_HOST = "terminalwire.com"
[[mounts]]
source = 'data'
destination = '/data'
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 2
processes = ['app']
[checks]
[checks.status]
port = 3000
type = 'http'
interval = '10s'
timeout = '2s'
grace_period = '5s'
method = 'GET'
path = '/up'
protocol = 'http'
tls_skip_verify = false
[checks.status.headers]
X-Forwarded-Proto = 'https'
[[vm]]
memory = '2gb'
cpu_kind = 'shared'
cpus = 2
processes = ['console', 'app']
[[statics]]
guest_path = '/rails/public'
url_prefix = '/'
[deploy]
release_command = "./bin/rails db:prepare"