Preventing Slow Receivers
During system integration, you can identify and eliminate potential causes of slow receivers in peer-to-peer communication.
Work with your network administrator to eliminate any problems you identify.
Slowing is more likely to occur when applications run many threads, send large messages (due to large entry values), or have a mix of region configurations. The problem can also arise from message delivery retries caused by intermittent connection problems.
Make sure that the machines that run Tanzu GemFire members have enough CPU available to them. Do not run any other heavyweight processes on the same machine.
The machines that host Tanzu GemFire application and cache server processes should have comparable computing power and memory capacity. Otherwise, members on the less powerful machines tend to have trouble keeping up with the rest of the group.
Eliminate congested areas on the network by rebalancing the traffic load. Work with your network administrator to identify and eliminate traffic bottlenecks, whether caused by the architecture of the distributed Tanzu GemFire system or by contention between the Tanzu GemFire traffic and other traffic on your network. Consider whether more subnets are needed to separate the Tanzu GemFire administrative traffic from Tanzu GemFire data transport and to separate all the Tanzu GemFire traffic from the rest of your network load.
The network connections between hosts need to have equal bandwidth. If not, you can end up with a configuration like the multicast example in the following figure, which creates conflicts among the members. For example, if app1 sends out data at 7Mbps, app3 and app4 would be fine, but app2 would miss some data. In that case, app2 contacts app1 on the TCP channel and sends a log message that it’s dropping data.
Plan for Growth
Upgrade the infrastructure to the level required for acceptable performance. Analyze the expected Tanzu GemFire traffic in comparison to the network’s capacity. Build in extra capacity for growth and high-traffic spikes. Similarly, evaluate whether the machines that host Tanzu GemFire application and cache server processes can handle the expected load.