2 years ago
Hello
Just wondering if there’s any way to address a specific replica for a service? My use case is that I’d like to perform my own sort of load balancing and would like to tell an end user which replica they should connect to.
Kind regards
Triston
21 Replies
2 years ago
You can create replicas in your service settings

2 years ago
individual replica addresses are exposed via a AAAA DNS lookup, example -
So with this list you can implement your own load balancer logic, or use caddy to handle this for you, example -
2 years ago
no prob, let me know if you have any more questions!
2 years ago
what would you like explained?
2 years ago
what information are you seeking?
related to how I can setup custom load balancing if I have replicas
2 years ago
is round robin not desirable?
so new visitors will go to an "inactive" state and then it's flagged "active"
then after some coding logic, it is set back to "inactive" and ready for use
2 years ago
what would be the use case for this?
2 years ago
no worries at all, sorry for all the questions but the answers help me to deliver a better response 🙂
@Brody okay I know that railway uses round-robin by default but I wanna use my custom system for load-balancing on replicas.
Is there is any blog or doc for this?
2 years ago
there is this tutorial for proximity steering https://docs.railway.app/tutorials/proximity-steering