I’m searching for a functionality in the Machines API similar to the /wait endpoint on a machine, that only responds when the machine is started, but for health checks.
i.e. I want to call an endpoint and only get a 2xx code back once all health checks on a machine are healthy, to know when I can send my user requests through to that machine.
Does something like this exist or would the Fly team be willing to implement something like it?
Hi, no that’s not the problem. sorry if my post was unclear about that.
I’m routing traffic in my application by myself because it’s not HTTP, and I need my own application proxy. Now I want to know what method I could call from the proxy to know when a freshly started machine is ready to accept connections (my health check)
No it’s a custom application proxy, specifically for Minecraft TCP traffic. So I can’t use the built-in Fly proxy for this. Although I have a health check configured for when a server starts, and want to be able to “wait” for it to be healthy. An endpoint similar to the one waiting for the started state would be great for a use case like this.
Currently I’m just fetching the Machine via the Fly API every 5 seconds to see if health checks pass already.