Ive been looking all through out pocketmine and I cant find anything besides LoadBalancer which does not work! So is there a way I can balance player though three servers?
The problem is there are over 10-30 Servers connecting to SimpleAuth via Database and players always get a login timeout before entering the server
I don't know, then. Anyways you have to be really good with networking if you want your server to be a network of servers, like LBSG.
Get all of the servers motd's, compare the amounts of players, then transfer the player to the server with the least players. PHP: $least = min(array $playerAmounts); OR PHP: $least = min($number1, $number2, $number3);
Nope... Plugin installed on server is not suitable for Load Balancing Use Round-Robin DNS, setup multiple A record with same NAME to setup Round-Robin Round-Robin distribute players before they reached the game server, it redirected them to IP set in A records accordingly when they reached DNS server, which makes load balancing all the way faster and reliable just like lbsg *But, A record required default port
No needed, Round Robin is a function built-in in DNS Server And DNS server is same machine with your webhost, domain But, only bad for Round Robin is... client side cache... I didn't use it for hpmcpe is because client side Round Robin Cache. It happens like this: When player connected to hpmcpe.com:19132, DNS server takes him to a IP set in A Record List. At this moment, cache saved in client side (player phone). Let's say if DNS takes him to "Lobby 2", if that player disconnected and connect again, saved cache will be used... and takes the player to "Lobby 2" again... Cache takes more than 1 hour to refresh... So, if Lobby 2 is full, he disconnected and re-connect again, it still takes him to Lobby 2... until cache refreshed..
All my servers are on the same network though , Just ran on different ports Could I pay you to create a plugin for my use?
Then transfer to a different port using FastTransfers API I'm not that good at coding, but I could try since ill need a plugin like this in the future, PM me.
First one right, second one wrong. Please make sure you actually know PHP before "helping" other people. Correct way to do it is this: PHP: $least = min(array($num1, $num2, $num3)); If you noticed, the parameter is supposed to be an array, but the second one you put was not an array.
Please make sure you actually know PHP before "helping" (or more accurately, criticizing) other people. From http://php.net/min : TL:DR: min($array) is same as min(...$array) for count($array) > 1.