Currently the client just connects to a hardcoded hostname or IP address. We should change this to a simple HTTP GET request to 'http://game.strik.it' or something, which should host the simple 'loadbalancer.php' script as index.php.
The script is already in the repository of strikd and it just queries the 'servers' table of the database for the server with the lowest amount of users, then echos the hostname and port.
The loadbalancer script use APC cache to avoid querying the database all the time.
Currently the client just connects to a hardcoded hostname or IP address. We should change this to a simple HTTP GET request to 'http://game.strik.it' or something, which should host the simple 'loadbalancer.php' script as index.php.
The script is already in the repository of strikd and it just queries the 'servers' table of the database for the server with the lowest amount of users, then echos the hostname and port.
The loadbalancer script use APC cache to avoid querying the database all the time.