We have a Flash based multiplayer game hosted on a cloud server. We have the game currently on two instances of the servers. There is a load balancer that directs traffic between the two. The algorithm used is currently generic - round robin, etc.
Since this is a multiplayer game, we want to increase the users chances of finding each other easily once they log in. Since the current algorithms send users randomly between servers, the chances of users finding each other is very rare.
So, we would like to write a new load balancing rule that makes the loadbalancer direct traffic between the servers in the following manner:
The first 500 users that log in goes into server A.
The next 500 users that log in goes into server B
The next 500 users that log in goes into server C etc. (when we add server C in the future)