Este contenido no está disponible en el idioma seleccionado.
Chapter 3. Data Grid Ports and Protocols
As Data Grid distributes data across your network and can establish connections for external client requests, you should be aware of the ports and protocols that Data Grid uses to handle network traffic.
If run Data Grid as a remote server then you might need to allow remote clients through your firewall. Likewise, you should adjust ports that Data Grid nodes use for cluster communication to prevent conflicts or network issues.
3.1. Data Grid Server Ports and Protocols Copiar enlaceEnlace copiado en el portapapeles!
Data Grid Server exposes endpoints on your network for remote client access.
| Port | Protocol | Description |
|---|---|---|
|
| TCP | Hot Rod and REST endpoint |
|
| TCP | Memcached endpoint, which is disabled by default. |
3.1.1. Configuring Network Firewalls for Remote Connections Copiar enlaceEnlace copiado en el portapapeles!
Adjust any firewall rules to allow traffic between the server and external clients.
Procedure
On Red Hat Enterprise Linux (RHEL) workstations, for example, you can allow traffic to port 11222 with firewalld as follows:
firewall-cmd --add-port=11222/tcp --permanent firewall-cmd --list-ports | grep 11222
# firewall-cmd --add-port=11222/tcp --permanent
success
# firewall-cmd --list-ports | grep 11222
11222/tcp
To configure firewall rules that apply across a network, you can use the nftables utility.
3.2. TCP and UDP Ports for Cluster Traffic Copiar enlaceEnlace copiado en el portapapeles!
Data Grid uses the following ports for cluster transport messages:
| Default Port | Protocol | Description |
|---|---|---|
|
| TCP/UDP | JGroups cluster bind port |
|
| UDP | JGroups multicast |
Cross-Site Replication
Data Grid uses the following ports for the JGroups RELAY2 protocol:
7900- For Data Grid clusters running on OpenShift.
7800- If using UDP for traffic between nodes and TCP for traffic between clusters.
7801- If using TCP for traffic between nodes and TCP for traffic between clusters.