Amazon SageMaker Edge Manager reached its end of life on April 26, 2024. AWS is blunt about it: "applications that call on the Edge Manager service APIs no longer work" (SageMaker Edge Manager end of life).
AWS's suggested path is ONNX Runtime on the device, plus AWS IoT Greengrass V2 for deployments, or MQTT and IoT Jobs as a "lightweight OTA mechanism" (same page). Good building blocks. But there's a gap between them that every team ends up filling by hand: which devices get the new model, how is it behaving there, and who takes it back when it's worse?
We built FleetML for that gap. It's open source (Apache-2.0), self-hosted, not tied to any cloud, with a Linux agent for Jetsons, Raspberry Pis and x86 boxes, plus Android and iOS SDKs. Here it is catching a model that loads fine but fails at inference, and rolling it back:
The gap in one line
Greengrass V2 has real rollout controls: a rollout rate, abort criteria, and a failureHandlingPolicy that defaults to ROLLBACK "if the deployment fails on a core device" (Create deployments).
Read that last part again. A model that installs fine and then answers wrongly, or slowly, doesn't fail the deployment. That's exactly the case a model rollout has to catch.
| Greengrass V2 (AWS's path) | FleetML | |
|---|---|---|
| Staged rollout | Yes, rollout rate and abort criteria | Canary stages |
| Roll back when the install fails | Yes | Yes, plus signature and load checks |
| Roll back when the model installs fine but behaves worse | Not in its docs | Health gate on inference errors and p95 latency |
| Drift monitoring | Send telemetry to Model Monitor or S3 and wire it up | Built in |
| A/B test two models | Not in its docs | Built in, Welch t-test |
| Cloud | AWS | Any cloud or on-prem |
| Device protocol | MQTT | gRPC and HTTPS, no MQTT |
A gate on how the model behaves
One request: half the depot's devices first, and roll back if more than 5% of their inferences fail.
curl -s -X POST localhost:18080/api/v1/deployments -H "Authorization: Bearer $KEY" -d '{
"project_id": "'$P'", "model_version_id": "'$V2'", "strategy": "CANARY",
"target_selector": {"site": "depot"},
"canary_stages": [{"percentage": 50, "min_duration": "5m"}, {"percentage": 100, "min_duration": "0s"}],
"health_gate": {"max_error_rate": 0.05, "min_events": 20, "on_failure": "ROLLBACK"}}'
deployment ROLLED_BACK: error rate 95.24% exceeds threshold 5.00% (20/21 events from 1 cohort device)
fleet: edge-a 1.0.0 edge-b 1.0.0 edge-c 1.0.0 edge-d 1.0.0
edge-a switched back without a download: 1.0.0 was still on disk as its last-known-good version
Four real agents, and a model that loads fine but fails at inference. From first deployment to rollback took 15 seconds in that run and 25 in the next. The gate only looks at the canary's own telemetry, and can also compare its p95 latency with the previous version.
One binary, your runtime
fleetml-agent is a static Go binary for linux/amd64 and linux/arm64 with a systemd unit. It doesn't run your model. Your process does, with ONNX Runtime or whatever you already use. The agent handles the lifecycle around it:
- checks the model's ed25519 signature and sha256;
- downloads with resume, and only the delta when a box already has the previous version (a synthetic 20 MB model with its last 2% replaced went over the wire as 440 KB);
- runs your validator, e.g. a script that loads the model and runs one inference;
- switches
models/<name>/currentatomically, keeps the previous version as last-known-good, and runs your post-activate hook.
# /etc/fleetml-agent/config.yaml
server: fleet.example.com:19090
tls: true
enrollment_key: <project enrollment key>
labels: {site: depot}
validator: python3 /opt/inference/check.py {file}
post_activate: touch /var/lib/fleetml-agent/model-switched
telemetry_listen: 127.0.0.1:9601
Your inference process reports to the agent over local HTTP, no client library needed:
curl -s -X POST localhost:9601/v1/events -d '{"model":"detector","latency_ms":12,"confidence":0.93}'
From there the server compares each version's last 24 hours with the 7 days before (population stability index) on latency, confidence and input features, binned on the device so raw inputs stay there. A jump to CRITICAL sends one alert to a webhook, Slack or email.
Already on Greengrass? Keep it
FleetML can sit next to it: Greengrass keeps your inference application running, and FleetML decides which model version it loads.
What it isn't
No model compiler (nothing like SageMaker Neo), no device provisioning or certificate management, no MQTT, and it doesn't run inference. You operate it: the server, Postgres with TimescaleDB, NATS and S3-compatible storage, via Docker Compose or Helm, with TLS in front. The agent is Linux-only (amd64 and arm64). It's pre-1.0.
Try it: Get started brings up the server and dashboard with one compose command, and the Linux agent guide covers a Jetson, a Raspberry Pi or an x86 box. Code: github.com/fleetml/fleetml. If you were on Edge Manager, we'd really like to hear what you replaced it with and what's still missing. And if it looks useful, a star on GitHub helps other people find it.
We used AI tools to help write and check this post. The commands and outputs are from real runs.


Top comments (0)