You can view this question in a better readable version here: <a href="http://stackoverflow.com/q/12998345/431620">http://stackoverflow.com/q/12998345/431620</a><br>Here goes:<br><br>Building from this <a href="http://stackoverflow.com/q/5339329/431620">question</a>, imagine an application with <code>N Erlang Web Servers</code>, and <code>N/2 Mnesia Database Nodes</code>.
 The set up is such that the Web Servers, each, runs on its own hardware
 server (say HP DL385), and each Mnesia Instance, runs on its own 
hardware Server as well. <br><br> Web Servers make <code>rpc:call/4</code>
 calls to the back end (the Mnesia DB Servers). The Data is all 
replicated across all the Mnesia instances. Now, you want to have the 
calls being made to the Database servers, <code>MULTIPLEXED</code>, more precisely ( by <code>TIME</code>), on each Web Server, so that some kind of <code>LOAD BALANCING</code> is attained. <br><br> If Web Server <code>A</code> makes a connection to Mnesia Instance <code>3</code>,
 it cannot make the next connection to the same Instance. All Database 
Nodes need to be kept busy and not having any one of them idle while the
 others are working. The Load balancing Algorithm should not be random, 
but should be aimed at balancing the load on the Database Servers. <br><br> <b>Qn 1: </b>Come
 up with your load balancing strategy, in such a situation. Also, please
 show with some sample illustrative code, how you would implement this 
strategy.<br><br><b>Qn 2: </b> If a Mnesia Instance goes down, how would your load balance Algorithm <code>adapt</code> to the changes in the cluster ? <br><br><b>Qn 3: </b>
 Is there any Erlang library aimed at load balancing of Erlang Servers 
working within the same system, and calling each other via <code>rpc:call/4</code> ? <br><br> Thank you all.<br><br><div id="WISESTAMP_SIG_9027"><div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif">
<div style="max-width:469px;padding:0.5em 0 0.5em">                                     <a href="http://www.linkedin.com/pub/muzaaya-joshua/39/2ba/202" target="_blank">                                              <img src="https://s3.amazonaws.com/images.wisestamp.com/apps/buttons/linkedinbutton_option_1.png" style="border: none;" border="0">                                 </a></div>
<br></div></div><br><br><div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><img src="https://wisestamp.appspot.com/pixel.png?p=mozilla&v=3.11.21&t=1350891744030&u=cf16262215eb8784" width="1" height="1"></div>