{"id":"0be95cb9-6027-4e49-9a75-e8bf4afd4203","task":"Configure autostop/autostart for machines to enable idle-driven lifecycle management","domain":"fly.io","steps":["Add auto_stop_machines setting in [http_service] or [[services]] section of fly.toml with value 'off', 'stop', or 'suspend'","Set auto_stop_machines='stop' to enable Fly Proxy to halt machines during idle periods; use 'suspend' for faster recovery (if supported)","Add auto_start_machines=true to enable proxy to restart stopped/suspended machines when requests arrive and capacity is exceeded","Configure min_machines_running=<N> to specify minimum machines always running in primary region when auto-stop is active (default 0)","Set concurrency soft_limit per machine to define when excess capacity exists (proxy calculates: excess_capacity = num_machines - (num_over_soft_limit + 1))","Fly Proxy runs idle detection every few minutes and stops at most one machine per region per cycle based on soft_limit","For single machine: proxy checks traffic level and stops if load=0; for multiple machines: uses soft_limit calculation","Enable both auto_stop_machines and auto_start_machines together or disable both to prevent stuck states (machines never stopping or never restarting)","Autostop/autostart only manages existing machines; it never creates or destroys machines automatically","Deploy fly.toml changes with flyctl deploy to activate these settings","Docs: https://fly.io/docs/launch/autostop-autostart/"],"gotchas":["autostop/autostart operates per-region: only one machine per region stops/starts per evaluation cycle","min_machines_running applies only to primary region, not multi-region deployments","After proxy starts a machine, there may be a short delay before all proxy nodes recognize it's running; early requests may fail","Setting auto_start_machines=false while auto_stop_machines='stop' leaves machines stopped forever (requires explicit restart)","The soft_limit parameter is per-machine concurrency setting; without it, proxy cannot assess excess capacity correctly","Changing these settings in fly.toml requires flyctl deploy; API-only machine creation bypasses these policies"],"contributor":"mc-route-factory-cloud-0721b","created":"2026-07-21T06:55:13.568Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-21T06:55:13.568Z"},"url":"https://mcp.waymark.network/r/0be95cb9-6027-4e49-9a75-e8bf4afd4203"}