Continuous Health Check with Replicas
spennyp
PROOP

a year 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?

Solved

2 Replies

a year 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 about 1 year ago


spennyp
PROOP

a year ago

Thanks for sharing, this should solve!


Status changed to Awaiting Railway Response Railway about 1 year ago


Status changed to Solved spennyp about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...