[jgroups-dev] JGroups TCP Configuration clarification request

Olexandr Markushyn <[email protected]> Tue, 3 Feb 2015 15:08:43 +0000
Newsgroups gmane.comp.java.javagroups.devel
Message-ID <[email protected]>
--===============4810654559131603230==
Content-Language: ru-RU
Content-Type: multipart/alternative;
	boundary="_000_3b3ee7524cdd4f3aa9855e4da74849c0IEXMBX1isddpua_"

--_000_3b3ee7524cdd4f3aa9855e4da74849c0IEXMBX1isddpua_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Greetings,

Please, could you clarify my understanding of meaning of jgroups.bind_addr?

We have
1).Cluster consisting of two nodes (-IP1-, -IP2-).
2).Tcp configuration like
...
         bind_addr=3D"${swp.jgroups.bind_addr:127.0.0.1}"
         bind_port=3D"${swp.jgroups.tcp.bind_port:7800}"
...
    <TCPPING timeout=3D"3000"
             initial_hosts=3D"${swp.jgroups.tcpping.initial_hosts:localhost=
[7800],localhost[7801]}"
             port_range=3D"${swp.jgroups.tcp.port_range:1}"
             num_initial_members=3D"3"/>
...
3).JVM configuration like "-Djgroups.bind_addr=3Dsite_local -Dswp.jgroups.t=
cp.bind_port=3D<some port>"
4).jgroups 3.3.5

So are next statements correct?
1). site_local will be used instead of <bind_addr=3D"${swp.jgroups.bind_add=
r:127.0.0.1}">
2). site_local represents ranges 192.168.x.x or 10.0.x.x (according to http=
s://issues.jboss.org/browse/JGRP-1204)
3). in case one IP address is specified as value of bind_addr that host is =
treated as "central" of a cluster and all candidates having the same IP and=
 the same group name will be connected into one cluster
   3.1).in such case when "central" is down cluster is broken.
4). two candidates having different (range or concrete IP) value of bind_ad=
dr but the same group name will not be organized into one cluster
5).it is impossible to specify range of IP addresses as value of bind_addr =
except GLOBAL, SITE_LOCAL, etc.
It means it is impossible to specify something like bind_addr=3DIP1, IP2
6). bind_addr contains IPs which are looked up for a cluster to connect to
7). bind_addr contains IPs which are allowed to be connected to a cluster

Best regards,
Oleksandr Markushyn
SoftWeb


--_000_3b3ee7524cdd4f3aa9855e4da74849c0IEXMBX1isddpua_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;">Greetings,</span><o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal">Please, could you clarify my understanding of meanin=
g of jgroups.bind_addr?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">We have <o:p></o:p></p>
<p class=3D"MsoNormal">1).Cluster consisting of two nodes (-<b>IP1-</b>, -<=
b>IP2-</b>).<o:p></o:p></p>
<p class=3D"MsoNormal">2).Tcp configuration like <o:p></o:p></p>
<p class=3D"MsoNormal">&#8230;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin=
d_addr=3D&quot;${<b>swp</b>.jgroups.bind_addr:127.0.0.1}&quot;<o:p></o:p></=
p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin=
d_port=3D&quot;${<b>swp</b>.jgroups.tcp.bind_port:7800}&quot;<o:p></o:p></p=
>
<p class=3D"MsoNormal">&#8230;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp; &lt;TCPPING timeout=3D&quot;3000&=
quot;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; initial_hosts=3D&quot;${<b>swp</b>.jgroups.tcpping.ini=
tial_hosts:localhost[7800],localhost[7801]}&quot;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; port_range=3D&quot;${<b>swp</b>.jgroups.tcp.port_range=
:1}&quot;<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; num_initial_members=3D&quot;3&quot;/&gt;<o:p></o:p></p=
>
<p class=3D"MsoNormal">&#8230;<o:p></o:p></p>
<p class=3D"MsoNormal">3).JVM configuration like &#8220;-Djgroups.bind_addr=
=3Dsite_local -Dswp.jgroups.tcp.bind_port=3D&lt;some port&gt;&#8221;<o:p></=
o:p></p>
<p class=3D"MsoNormal">4).jgroups 3.3.5<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">So are next statements correct?<o:p></o:p></p>
<p class=3D"MsoNormal">1). site_local will be used instead of &lt;bind_addr=
=3D&quot;${swp.jgroups.bind_addr:127.0.0.1}&quot;&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">2). site_local represents ranges 192.168.x.x or 10.0=
.x.x (according to
<a href=3D"https://issues.jboss.org/browse/JGRP-1204">https://issues.jboss.=
org/browse/JGRP-1204</a>)<o:p></o:p></p>
<p class=3D"MsoNormal">3). in case one IP address is specified as value of =
bind_addr that host is treated as &#8220;central&#8221; of a cluster and al=
l candidates having the same IP and the same group name will be connected i=
nto one cluster<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp; 3.1).in such case when &#8220;central&#=
8221; is down cluster is broken.<o:p></o:p></p>
<p class=3D"MsoNormal">4). two candidates having different (range or concre=
te IP) value of bind_addr but the same group name will not be organized int=
o one cluster<o:p></o:p></p>
<p class=3D"MsoNormal">5).it is impossible to specify range of IP addresses=
 as value of bind_addr except GLOBAL, SITE_LOCAL, etc.<o:p></o:p></p>
<p class=3D"MsoNormal">It means it is impossible to specify something like =
bind_addr=3DIP1, IP2<o:p></o:p></p>
<p class=3D"MsoNormal">6). bind_addr contains IPs which are looked up for a=
 cluster to connect to<o:p></o:p></p>
<p class=3D"MsoNormal">7). bind_addr contains IPs which are allowed to be c=
onnected to a cluster<o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;">Best regards,</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;">Oleksandr Markushyn</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;">SoftWeb</span><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_3b3ee7524cdd4f3aa9855e4da74849c0IEXMBX1isddpua_--


--===============4810654559131603230==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
--===============4810654559131603230==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Javagroups-development mailing list


--===============4810654559131603230==--