<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 12:34 PM, Tristan Tarrant <span dir="ltr">&lt;<a href="mailto:ttarrant@redhat.com" target="_blank">ttarrant@redhat.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On 09/09/2013 11:18 AM, Dan Berindei wrote:<br>
&gt; Hi guys<br>
&gt;<br>
&gt; As you know, I&#39;m working on ISPN-3051, allowing each node to take a<br>
&gt; higher or lower proportion of the entries in the cache. I&#39;ve<br>
&gt; implemented this by adding a float &quot;loadFactor&quot; setting in each node&#39;s<br>
&gt; configuration, with 1 being the default and any positive value being<br>
&gt; accepted (including 0).<br>
&gt;<br>
&gt; There are two questions I wanted to ask you about the configuration:<br>
&gt;<br>
&gt; 1. What do you think about the &quot;loadFactor&quot; name? I started having<br>
&gt; doubts about it, since it has a very different meaning in HashMap. I<br>
&gt; have come up with a couple alternatives, but I don&#39;t love any of them:<br>
&gt; &quot;proportionalLoad&quot; and &quot;proportionalCapacity&quot;.<br>
</div>Since this is &quot;per-node&quot;, you want to use the &quot;node&quot; word in there, so<br>
&quot;nodeCapacity&quot; would be good. Can this value change at runtime ?<br></blockquote><div><br>
</div><div>nodeCapacity by itself would sound like we&#39;re limiting the actual number of keys held on this node, so I feel it would be misleading. You do have a point about having &quot;node&quot; in the name though... how about &quot;nodeScale&quot;?<br>

<br>The value can&#39;t change at runtime. TBH, I haven&#39;t even considered it.<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div class="im">&gt; 2. Where should we put this setting? I have added it as<br>
&gt; CacheConfiguration.clustering().hash().loadFactor(), but I can&#39;t think<br>
&gt; of a reason for having different values for each cache, so we might as<br>
&gt; well put it in the global configuration.<br>
</div>Yes, global sounds good. And don&#39;t forget server :)<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>I guess the others disagree, so I&#39;ll keep it at the cache level.<br><br></div><div>I&#39;ll try to remember about server ;)<br><br>

</div><div>Cheers<br>Dan<br></div></div><br></div></div>