fly-runtime session now starts fly-runtime-probation (timer every 60 s, 30 minutes): after a 300 s warm-up, a sustained median realtime factor below 0.97 or lag growth over 30 s in a 10-minute window runs fly-runtime fallback with reason speed. A pass writes /run/fly/runtime-probation.json and stops the timer; fly-runtime legacy and every fallback cancel it; state on disk resumes it after a reboot. Lint drives it over synthetic traces; runbook gets the end-to-end cutover procedure.
18 lines
718 B
SYSTEMD
18 lines
718 B
SYSTEMD
# infra/units/fly-runtime-probation.timer -- CUT-01's speed probation, every 60 s.
|
|
#
|
|
# Not enabled by provisioning or deploy. `fly-runtime session` runs `fly-runtime-probation start`
|
|
# (systemctl enable --now), which is why this unit has an [Install] section: the enablement is
|
|
# what makes a probation survive a reboot (OnBootSec= then runs the first tick). The probation
|
|
# disables the timer when it passes, fails over to legacy, or is cancelled (`fly-runtime legacy`).
|
|
[Unit]
|
|
Description=fly-runtime-probation: the session runtime's speed probation, every minute (CUT-01)
|
|
|
|
[Timer]
|
|
OnBootSec=90s
|
|
OnActiveSec=60s
|
|
OnUnitActiveSec=60s
|
|
AccuracySec=5s
|
|
Unit=fly-runtime-probation.service
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|