Configuring Peer Communication
By default VMware Tanzu GemFire uses TCP for communication between members of a single distributed system. You can modify this at the member and region levels.
Before you begin, you should have already determined the address and port settings for multicast, including any bind addresses. See Topology and Communication General Concepts.
See the Reference.
Configure general messaging to use TCP or UDP unicast.
TCP is the default protocol for communication. To use it, just make sure you do not have it disabled in
gemfire.properties. Either have no entry for
disable-tcp, or have this entry:
To use UDP unicast for general messaging, add this entry to
disable-tcpsetting has no effect on the use of TCP locators or the TCP connections used to detect failed members.
Configure any regions you want to distribute using UDP multicast.
Configure UDP multicast for region messaging, set non-default multicast address and port selections in
cache.xml, enable multicast for each region that needs multicast messaging:
Note: Improperly configured multicast can affect production systems. If you intend to use multicast on a shared network, work with your network administrator and system administrator from the planning stage of the project. In addition, you may need to address interrelated setup and tuning issues at the Tanzu GemFire, operating system, and network level.
Once your members establish their connections to each other, they will send distributed data and messages according to your configuration.