You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A Spot replacement re-runs the embedded --command workload before spored can retire it #1007
EC2 launches a replacement from a leaked persistent Spot request using the request's LaunchSpecification, and that includes UserData. spawn embeds --command in user data (/etc/spawn/command, #214/#246, pkg/launcher/bootstrap.go). The bootstrap starts that workload in the background beforesystemctl start spored. So a replacement re-runs the user's workload from the start, with its side effects (S3 writes, queue consumption, external calls), while spored is still deciding whether it is a replacement. With #995, spored then cancels the request and shuts down, possibly in the middle of the workload.
A replacement's own instance tags are empty, so the tag-driven paths (spawn:command for sweeps, job-array env) mostly do nothing. Only the embedded command runs.
Possible fix: have the bootstrap run the same replacement check before it launches the workload, for example a spored is-spot-replacement subcommand that exits non-zero on a confirmed replacement. The bootstrap would skip the workload on that exit code and run it on anything else (fail open, same as today).
Not verified live. It depends on cloud-init running user data on the replacement, which is expected for a new instance id but also unverified (see #995).
Activity
Run the post-spored replacement stop after the plugin declarations (#…
Name the original instance in spot_replacement_retired (#1007)
Stop a Spot replacement from re-running the user's workload (#1007)
Run the post-spored replacement stop after the plugin declarations (#…
Name the original instance in spot_replacement_retired (#1007)
Skip the bash-run Spot replacement bootstrap tests on Windows; note #…
Stop a Spot replacement from re-running the user's workload (#1007)
Run the post-spored replacement stop after the plugin declarations (#…
Name the original instance in spot_replacement_retired (#1007)
Skip the bash-run Spot replacement bootstrap tests on Windows; note #…
Use the repo's bare nosemgrep on the spot-replacement test harness (#…
Stop a Spot replacement from re-running the user's workload (#1007) (#…