10 months ago
Curious how we can implement continuous health checks across multiple replicas.
We ran into an issue where it seemed at least one of our apps replicas was hanging on requests but the app was still up. The rest were operating as expected. Adding continuous health check monitoring which executes across a critical path could help quickly identify this issue, but it seems we can’t access the individual replicas to do so?
2 Replies
10 months ago
Hello,
Yes you can send a request to specific replicas, you can do that over the private network, each instance IP is returned via the AAAA DNS lookup, here is an example for a service with 50 replicas -
https://utilities-gcp-us-west.up.railway.app/dns-lookup?value=hello-world.railway.internal&type=ip
All you would need to do is write some code to make an AAAA DNS lookup and request each returned IP, if there is a failure then you call the serviceInstanceDeploy mutation.
Best,
Brody
Status changed to Awaiting User Response Railway • 11 months ago
Status changed to Awaiting Railway Response Railway • 10 months ago
Status changed to Solved spennyp • 10 months ago
