I have setup Cloudflare in front of our application like described in Cloudflare 525 error randomly occurs - #19 by pier, but additionally added a nginx proxy in front of my node application to serve the Cloudflare Origin Certifiate (instead of letting node handle it).
I am just conneting via the private network, for example my-node-app.internal:8080.
This works well, but whenever I deploy an update to my-node-app the app becomes unavailable for what feels like eternity.
I guess the problem is that the internal ipv6 address the my-node-app.internal points to becomes unavailable as the new container is deployed, and it takes some time until the DNS is updated with the new container ip.
Any idea how I can avoid this?
For now I just restarted the nginx app via flyctl restart but even without nginx inbetween there seems to be at least a half a minute of downtime between deployments. Is that because I currently only have a single instance deployed?
It mentions a resolver must be configured as well, e.G. resolver 127.0.0.1 [::1]:5353 valid=30s; - what would I set this to on fly.io?
And any idea why I see the app briefly unavailable during deployment even if I am not using cloudflare, a nginx proxy and the internal network but just a standard fly app?
The deploy downtime you see through <app>.fly.dev is probably due to our slow service propagation. If you’re running behind an nginx, it probably won’t affect you.