Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring address and ports for JGroups

When using JGroups, with a component such as Infinispan, it is possible to configure the ports and addresses that JGroups will use.

http://www.jgroups.org/manual/html/user-advanced.html

For example:

<UDP
        mcast_addr="${jgroups.udp.mcast_addr:228.6.7.8}"
        mcast_port="${jgroups.udp.mcast_port:46655}"
        ...

But here is what is confusing me. How can all members of the cluster all use the same port, addr?

I would have thought each member would have its own port and have to know the ports (and addresses) of the other members it needs to talk to?

Thanks

like image 882
Breako Breako Avatar asked Dec 22 '25 15:12

Breako Breako


1 Answers

Multicast is a special address that can be used by multiple nodes to send/received data - think of it like 127.0.0.1, which is also available on most boxes with network installed.

like image 143
swKK Avatar answered Dec 24 '25 11:12

swKK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!