flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Allow Using Ephemeral Machines For Health Checks

Open benbjohnson opened this issue 1 year ago • 2 comments

We could allow trust checks by running a custom ephemeral machine, where if the machine returns 0 the trust check passes, and otherwise it failed.

This would be useful for doing more complex health checks, like making sure signup functionality continues to work after a deployment.

benbjohnson avatar Feb 06 '24 21:02 benbjohnson

@billyb2 Can you expand on what the workflow for this would look like? Is it something we could use fly m run for instead?

benbjohnson avatar Feb 06 '24 21:02 benbjohnson

I just mean that basically, flyctl after deploying the machine but before marking it as available (or uncordoning or whatever), spawns a new machine with fly m run --autodestroy. If that machine exits and returns 0, then the machine passed the health check. Otherwise, it didn't. This is especially useful for things like bluegreen deploys.

billyb2 avatar Feb 07 '24 21:02 billyb2