mc-router icon indicating copy to clipboard operation
mc-router copied to clipboard

Does `mc-router` support more than one backend server per `serverAddress`?

Open luiz-otavio opened this issue 1 year ago • 1 comments

I'm looking for something which can handle multiples backend servers at the same address, such as:

skywars.myexample.gg -> |
  skywars01.myexample.gg
  skywars02.myexample.gg
  skywars03.myexample.gg

Does mc-router support it and handle it with such a random algorithm like round-robin or something else?

luiz-otavio avatar Dec 19 '23 18:12 luiz-otavio

It doesn't at this time. If implemented, in addition to random/round robin assignment (as you mentioned) it would happen on every connection. In other words, a player would not be sticky-assigned to the same server as before. Also, the server status request would have to be routed to either a random server or the first one in order to approximate that request.

If the backend game mode is transient then that seems fine, but seems like a very niche scenario.

itzg avatar Dec 19 '23 19:12 itzg