[jgroups-dev] Make JGroups bind to a certain type of IP address

Bela Ban <[email protected]>
Newsgroups gmane.comp.java.javagroups.devel,gmane.comp.java.javagroups.general
Message-ID <[email protected]>
[1] might be interesting for you if you want to make JGroups bind to a
certain *type* of IP address, but don't know the exact address before
startup.

For example, in a cloud environment, you don't usually know the IP
address assigned to you instance beforehand, unless you use elastic IPs
and dyndns.org entries, for example.

Since cloud provider often charge you for outgoing traffic on public
IPs, you don't want replication or distribution traffic to go out over
public IPs ! You rather want this type of traffic to use internal IP
address, for which some provider (e.g. GoGrid) don't charge.

This can be done by setting bind_addr or -Djgroups.bind_addr to a
keyword rather than a dotted decimal or symbolic IP address:

   * GLOBAL: pick a public IP address. You want to avoid this for
     replication traffic
   * SITE_LOCAL: use a private IP address, e.g. 192.168.x.x. This
     avoids charges for bandwith from GoGrid, for example
   * LINK_LOCAL: use a 169.x.x.x, 254.0.0.0 address. I've never used
     this, but this would be for traffic only within 1 box
   * NON_LOOPBACK: use the first address found on an interface (which
     is up), which is not a 127.x.x.x address

For my could mod-cluster demo, I set bind address to SITE_LOCAL. This
works for GoGrid, need to see whether this is also true for EC2 and
Rackspace.

This is currently in CVS head, will be 2.10.0.Beta2, which I'll release 
in 5 minutes...


[1] https://jira.jboss.org/jira/browse/JGRP-1204

-- 
Bela Ban
Lead JGroups / Clustering Team
JBoss


------------------------------------------------------------------------------

_______________________________________________
Javagroups-development mailing list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.