Question Restart config in Fly.toml - Retries option

Hi there,

Quick question about the fly.toml restart config here: App configuration (fly.toml) · Fly Docs

We have an always on service we’re running - and while we’re working on hunting down some memory leak issues, we want our service to automatically restart on an OOM until we resolve them. This works great with policy set to always. The question I have is regarding the retries option.

If the machine restarts and the health check passes, does that retries counter reset back to 0? Suppose the retries is set to 10 and our machine restarts 10 times over 3 weeks - will it stop retrying? I would assume it resets as soon as health checks start passing, but just wanted to be 100% sure.

Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.