<div>Thanks.</div>
<div> </div>
<div>Thant means ,I need fragment table many times not for load balance but for decreasing one specific node's (the node is not as powerful as others ) load.</div>
<div> </div>
<div>Eg. Node A has 2 fragments,Node B has 2 fragments. Each fragment has equal records(say 100 records each fragment).</div>
<div> </div>
<div>Now the Node B is heavily loaded.If I adding one or two fragments in Node A , the load of Node B won't be </div>
<div> </div>
<div>decreased ,for the records from Node A will be splited and moved to the new fragments,the records on Node A is 50+50+50+50=200 ,the total number of Node B's record is still 200.</div>
<div> </div>
<div>In order to decreas the load on Node B,I have to calcaulate carefully how many new fragments should be added.</div>
<div> </div>
<div>If there's a way for mnesia to specify which node's fragment should be splited when addin a new fragment,the problems above will be solved.Take the example above ,when adding a new fragment,I can tell mnesia to split Node B's fragment.<br>
</div>
<div><span class="gmail_quote">2008/6/19, Scott Lystig Fritchie <<a href="mailto:fritchie@snookles.com">fritchie@snookles.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">devdoer bird <<a href="mailto:devdoer2@gmail.com">devdoer2@gmail.com</a>> wrote:<br><br>dd> I spilit one mnesia table into 3 fragments which distributed on 3<br>
dd> machines named A,B and C,but now the the machine "A" is very busy,<br><br>dd> so I decide split the fragment on the machine "A" into small<br>dd> fragments.Does mnesia support this?<br><br>
No, that isn't possible with Mnesia, not as you wish/state above.<br><br>If you have a table 'tab' split into fragments 'tab', 'tab_frag2', and<br>'tab_frag3', you can add more fragments: 'tab_frag4', 'tab_frag5', etc.<br>
You can choose to put only 1 fragment on node A, 4 fragments on node B,<br>and 4 fragments on node C. Assuming that access to the table is evenly<br>distributed over all fragments, then node A should be getting only 1/9<br>
of the load, and B & C will get 4/9 of the load.<br><br>-Scott<br></blockquote></div><br>