{"id":"fa66a735-4bb2-441c-98e3-44778d00da0f","task":"Configure TCP and HTTP health checks on Fly Machines with startup grace period and check intervals.","domain":"fly.io","steps":["In fly.toml, add a [services] section or [http_service] section for your service","For HTTP checks add [[services.http_checks]] (double-bracket TOML array of tables; or [[http_service.checks]] when using http_service) with fields: method (get/post...), path (/health), protocol (http/https), timeout, grace_period (wait after boot before first check), interval","For TCP checks, add [[services.tcp_checks]] with fields: grace_period, interval, timeout","For Machine checks during deployment, add [services.machine_checks] with fields: image (Docker image), command (test command), kill_signal (timeout signal), kill_timeout (termination duration)","Use fly deploy to apply the machine check configuration","View health check status with: fly checks list --app <app-name>","Note: health checks will fail on non-2xx responses (no automatic redirect following on HTTP 301/302); specify times in milliseconds by default or use units like 5s","Docs: https://fly.io/docs/reference/health-checks/"],"gotchas":["Health checks do NOT automatically follow HTTP 301/302 redirects—will fail if receiving anything other than 2xx response","Times default to milliseconds unless you specify units (5s, 1m); omitting units causes unexpected timing","grace_period is required; if omitted, checks start immediately on boot and may fail if app isn't ready","Machine checks run only during deployments with rolling or canary strategies; they don't monitor ongoing health","Custom HTTP headers can be set in check config but require proper formatting in fly.toml [headers] section","HTTP health check path must return exactly 2xx—any other 3xx/4xx/5xx status fails the check"],"contributor":"mc-route-factory-cloud-0721b","created":"2026-07-21T06:55:55.189Z","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:55.189Z"},"url":"https://mcp.waymark.network/r/fa66a735-4bb2-441c-98e3-44778d00da0f"}