このコンテンツは選択した言語では利用できません。
Chapter 26. Configure JGroups
JGroups is the underlying group communication library used to connect Red Hat JBoss Data Grid instances. For a full list of JGroups protocols supported in JBoss Data Grid, see Section A.1, “Supported JGroups Protocols”
26.1. Configure Red Hat JBoss Data Grid Interface Binding (Remote Client-Server Mode) リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
26.1.1. Interfaces リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
Red Hat JBoss Data Grid allows users to specify an interface type rather than a specific (unknown) IP address.
link-local
: Uses a169.x.x.x
or254.x.x.x
address. This suits the traffic within one box.Copy to Clipboard Copied! Toggle word wrap Toggle overflow site-local
: Uses a private IP address, for example192.168.x.x
. This prevents extra bandwidth charged from GoGrid, and similar providers.Copy to Clipboard Copied! Toggle word wrap Toggle overflow global
: Picks a public IP address. This should be avoided for replication traffic.Copy to Clipboard Copied! Toggle word wrap Toggle overflow non-loopback
: Uses the first address found on an active interface that is not a127.x.x.x
address.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
26.1.2. Binding Sockets リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
Socket bindings provide a named the combination of interface and port. Sockets can be bound to the interface either individually or using a socket binding group.
26.1.2.1. Binding a Single Socket Example リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
The following is an example depicting the use of JGroups interface socket binding to bind an individual socket using the
socket-binding
element.
Example 26.1. Socket Binding
<socket-binding name="jgroups-udp" <!-- Additional configuration elements here --> interface="site-local"/>
<socket-binding name="jgroups-udp" <!-- Additional configuration elements here --> interface="site-local"/>
26.1.2.2. Binding a Group of Sockets Example リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
The following is an example depicting the use of Groups interface socket bindings to bind a group, using the
socket-binding-group
element:
Example 26.2. Bind a Group
The two sample socket bindings in the example are bound to the same
default-interface
(global
), therefore the interface attribute does not need to be specified.
26.1.3. Configure JGroups Socket Binding リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
Each JGroups stack, configured in the JGroups subsystem, uses a specific socket binding. Set up the socket binding as follows:
Example 26.3. JGroups Socket Binding Configuration
Important
When using UDP as the JGroups transport, the socket binding has to specify the regular (unicast) port, multicast address, and multicast port.