I am not sure about something already written for this but LVS, <a href="http://www.linuxvirtualserver.org/">http://www.linuxvirtualserver.org/</a>, would probably fit half the bill. LVS lives in the kernel space and does all the forwarding. It basis it's decisions on where to send connections on scoring. <br>
<br>That is you pool with servers in it.<br>Each server has a score. 0 means never send traffic to that server. A large number means more traffic is sent to that box. <br>Traffic is forwards to servers in the pool based on the relative scores.<br>
<br>The other half of this is a health checking mechanism that monitors the servers in a pool and adjust their scores based on what it sees. I have used "ldirectord" but that set scores based if the server is up or not. You could write a similar monitoring script that inserts the load balancer rules and then updates their scoring based on whatever you want. all the interaction with the kernel space happens through the ipvsadm command.<br>
<br>Good luck. <br><br>--Tim<br><br>Date: Thu, 20 Dec 2012 06:19:33 -0500<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Chamunks Arkturus <<a href="mailto:chamunks@gmail.com">chamunks@gmail.com</a>><br>
To: KWLug Discussion <<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a>><br>
Subject: [kwlug-disc] I need Painfully simple load balancing.<br>
Message-ID:<br>
<CAN4GX9E7j5EFHYqoBuBjXh8K=TA+y4+HTcPaH5vfiSu_=<a href="mailto:kRqbw@mail.gmail.com">kRqbw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I need a load balancer that can react to queries from a sqlite database.<br>
It basically needs to check a sql database for server capacity levels and<br>
if the capacity gets close to being reached send players to another server.<br>
<br>
Then it also needs to react to people wanting to directly move from target<br>
point to target point.<br>
<br>
is there something that could do this?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20121220/27a54c5c/attachment-0001.html" target="_blank">http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20121220/27a54c5c/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of kwlug-disc Digest, Vol 49, Issue 7<br>
*****************************************<br>
</blockquote></div><br>