serverless-dns / serverless-dns

The RethinkDNS resolver that deploys to Cloudflare Workers, Deno Deploy, Fastly, and Fly.io

Home Page:https://rethinkdns.com/configure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fly.io checks trigger heartbeat so machine never stops

MarkIannucci opened this issue · comments

Thank you for your work on this. I was tinkering with getting this to work with fly.io's machines functionality so that way I could have my instance scale to 0 when I'm not using it. In attempting to get the machines to scale to 0, I noticed that the calls to the /check endpoint triggered the machinesHeartbeat function which kept the machine running which prevented the auto scaling from scaling it to 0.

I think I have a fix for this and will submit a PR momentarily.