Write load balancing algorithm for our cloud servers

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)

Kemahiran: Pengkomputeran Awan, PHP, Kejuruteraan Perisian

Lihat lagi: the algorithm is, the algorithm, computing algorithms, computing algorithm, algorithms for c, algorithm is, algorithm for game, algorithm computing, algorithm b, algorithm algorithm, servers, server load, load php, load balancer, game algorithm, cloud, c++ algorithm, algorithm, algorithm c, server load log, write traffic, server cloud, balancer, flash cloud, server game multiplayer

Tentang Majikan:
( 5 ulasan ) Northridge, United States

ID Projek: #1539641