keycloak-scim/server_installation/topics/clustering/multicast.adoc

36 lines
2.2 KiB
Text
Raw Normal View History

2016-04-30 04:39:32 +00:00
2016-04-28 22:25:54 +00:00
=== Multicast Network Setup
Out of the box clustering support has a need to for IP Multicast. Multicast is a network broadcast protocol. This protocol
2016-04-29 20:12:12 +00:00
is used at boot time to discover and join the cluster. It is also used to broadcast messages for the replication and invalidation
2016-04-28 22:25:54 +00:00
distributed caches used by {{book.project.name}}.
The clustering subsystem for {{book.project.name}} runs on the JGroups stack. Out of the box, the bind addresses for clustering are bound to a private network interface with a default IP address of 127.0.0.1.
2016-04-28 22:38:20 +00:00
You'll have to edit your the _standalone-ha.xml_ or _domain.xml_ sections discussed in the <<fake/../../network/bind-address.adoc#_bind-address,Bind Address>> chapter.
2016-04-28 22:25:54 +00:00
.private network config
[source,xml]
----
<interfaces>
...
<interface name="private">
<inet-address value="${jboss.bind.address.private:127.0.0.1}"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
...
<socket-binding name="jgroups-mping" interface="private" port="0" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45700"/>
<socket-binding name="jgroups-tcp" interface="private" port="7600"/>
<socket-binding name="jgroups-tcp-fd" interface="private" port="57600"/>
<socket-binding name="jgroups-udp" interface="private" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>
<socket-binding name="jgroups-udp-fd" interface="private" port="54200"/>
<socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/>
...
</socket-binding-group>
----
2016-04-29 20:12:12 +00:00
Things you'll want to configure are the `jboss.bind.address.private` and `jboss.default.multicast.address` as well as the ports of the services on the clustering stack.
2016-04-28 22:25:54 +00:00
NOTE: It is possible to cluster {{book.project.name}} without IP Multicast, but this topic is beyond the scope of this guide. For more information, see link:{{book.appserver.jgroups.link}}[JGroups] in the _{{book.appserver.jgroups.name}}_.
2017-03-14 17:17:58 +00:00