<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 4, 2013 at 10:28 AM, Bela Ban <span dir="ltr"><<a href="mailto:bban@redhat.com" target="_blank">bban@redhat.com</a>></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">
Another node: in general, would it make sense to use shorter names ?<br>
E.g. instead of<br>
<br>
** New view: [jdg-perf-01-60164|9] [jdg-perf-01-60164,<br>
| jdg-perf-01-24167, jdg-perf-01-53841, jdg-perf-01-39558,<br>
| jdg-perf-01-8977, jdg-perf-01-49115, jdg-perf-01-24774,<br>
| jdg-perf-01-5758, jdg-perf-01-37137, jdg-perf-01-45330,<br>
| jdg-perf-01-24793, jdg-perf-01-35602, jdg-perf-02-7751,<br>
| jdg-perf-02-37056, jdg-perf-02-50381, jdg-perf-02-53449,<br>
| jdg-perf-02-64954, jdg-perf-02-34066, jdg-perf-02-61515,<br>
| jdg-perf-02-65045 ...]<br>
<br>
<br>
we could have<br>
** New view: [1|9] [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,<br>
16, 17, 18, 19, 20, ...]<br>
<br>
This makes reading logs *much* easier than having those long names.<br>
<br></blockquote><div><br></div><div>Yes and no... I sometimes find it useful to have a somehow longer name, as searching/filtering for a node in the log is pretty much impossible with a name like "1".<br><br>I also think we need the random number at the end so that we can debug
problems with node restarts. In JDG/AS7 they don't add a random number,
and it was very difficult to see what was happening when a node name appeared
twice in the consistent hash. But we could make the random number shorter.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If we wanted the host name to be part of a cluster name, we could use<br>
the alphabet, e.g. A=jdk-perf-01, B=jdg-perf-02:<br>
<br>
** New view: [A1|9][A1, A2, A3, B4, B6, C2, C3, ...]<br>
<br>
This is of course tied to a given host naming scheme. But oftentimes,<br>
host names include numbers, so perhaps we could use a regexp to extract<br>
that number and use it as a prefix to the name, e.g.<br>
cluster-01 first instance: 1-1<br>
cluster-02 2nd instance: 1-2<br>
etc.<br>
<br>
Thoughts ?<br>
<br></blockquote><div><br></div><div>Are you thinking of an automatic way of assigning a letter+digit combination to a node on startup? We also use the node name for some other stuff (e.g. thread names), so I'm not sure if it's feasible to wait until we have connected to the JGroups cluster to set the node name dynamically.<br>
<br>For RadarGun we could use a static system where we configure a node name for each slave and then RadarGun passes the node name to Infinispan via a system property. No Infinispan changes required (except perhaps making the random number in the node name optional.)<br>
<br><br></div><div>Cheers<br></div><div>Dan<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
On 3/4/13 8:43 AM, Radim Vansa wrote:<br>
> Just a small sidenote: if you want to print full view (not just first 20 nodes and ellipsis after that), use -Dmax.list.print_size=cluster_size<br>
><br>
> Radim<br>
><br>
> ----- Original Message -----<br>
> | From: "Shane Johnson" <<a href="mailto:shjohnso@redhat.com">shjohnso@redhat.com</a>><br>
> | To: <a href="mailto:infinispan-internal@redhat.com">infinispan-internal@redhat.com</a><br>
> | Sent: Friday, March 1, 2013 5:52:17 PM<br>
> | Subject: Re: [infinispan-internal] Unstable Cluster<br>
> |<br>
> | The JGroups cluster appeared stable, at first. However, I did notice<br>
> | that the logs looked a little bit different on one machine /<br>
> | instance. I'm not sure if that means anything or not.<br>
> |<br>
> | Machine 1 / Instance 1-12<br>
> |<br>
> | ** New view: [jdg-perf-01-60164|9] [jdg-perf-01-60164,<br>
> | jdg-perf-01-24167, jdg-perf-01-53841, jdg-perf-01-39558,<br>
> | jdg-perf-01-8977, jdg-perf-01-49115, jdg-perf-01-24774,<br>
> | jdg-perf-01-5758, jdg-perf-01-37137, jdg-perf-01-45330,<br>
> | jdg-perf-01-24793, jdg-perf-01-35602, jdg-perf-02-7751,<br>
> | jdg-perf-02-37056, jdg-perf-02-50381, jdg-perf-02-53449,<br>
> | jdg-perf-02-64954, jdg-perf-02-34066, jdg-perf-02-61515,<br>
> | jdg-perf-02-65045 ...]<br>
<span class=""><font color="#888888"><br>
<br>
--<br>
Bela Ban, JGroups lead (<a href="http://www.jgroups.org" target="_blank">http://www.jgroups.org</a>)<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</font></span></blockquote></div><br></div></div>