WildFly JGroups Subsystem Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 68: Line 68:
1. Values read from <tt>standalone*.xml</tt>/<tt>domain.xml</tt>.
1. Values read from <tt>standalone*.xml</tt>/<tt>domain.xml</tt>.


2. <font color=red>???</font>
2. Values from the ProtocolDefaultsService (implemented by <tt>org.jboss.as.clustering.jgroups.subsystem.ProtocolDefaultsService</tt>, part of <tt>jboss-as-clustering-jgroups-*.jar</tt>) which is initialized at startup with values from the file <tt>jgroups-defaults.xml</tt> embedded in the root of <tt>$JBOSS_HOME/modules/system/layers/base/org/jboss/as/clustering/jgroups/main/jboss-as-clustering-jgroups-*.jar</tt> or the respective overlay, if the installation was patched.


3. Code.
3. JGroups code defaults.


=Configuring a New Protocol Attribute=
=Configuring a New Protocol Attribute=

Revision as of 23:08, 29 June 2016




Migrating from https://home.feodorov.com:9443/wiki/Wiki.jsp?page=JBoss7JGroups

Internal

Relevance

  • EAP 6.4

Subjects

Overview

The JGroups stacks are defined within the "jgroups" subsystem:

        <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="udp">
            <stack name="udp">
                <transport type="UDP" socket-binding="jgroups-udp"/>
                <protocol type="PING"/>
                <protocol type="MERGE3"/>
                <protocol type="FD_SOCK" socket-binding="jgroups-udp-fd"/>
                <protocol type="FD"/>
                <protocol type="VERIFY_SUSPECT"/>
                <protocol type="pbcast.NAKACK"/>
                <protocol type="UNICAST2"/>
                <protocol type="pbcast.STABLE"/>
                <protocol type="pbcast.GMS"/>
                <protocol type="UFC"/>
                <protocol type="MFC"/>
                <protocol type="FRAG2"/>
                <protocol type="RSVP"/>
            </stack>
            <stack name="tcp">
                <transport type="TCP" socket-binding="jgroups-tcp"/>
                <protocol type="MPING" socket-binding="jgroups-mping"/>
                <protocol type="MERGE2"/>
                <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
                <protocol type="FD"/>
                <protocol type="VERIFY_SUSPECT"/>
                <protocol type="pbcast.NAKACK"/>
                <protocol type="UNICAST2"/>
                <protocol type="pbcast.STABLE"/>
                <protocol type="pbcast.GMS"/>
                <protocol type="UFC"/>
                <protocol type="MFC"/>
                <protocol type="FRAG2"/>
                <protocol type="RSVP"/>
            </stack>
        </subsystem>

Subsystem Configuration Schema

WildFly Configuration Schemas

Default Values

Default values will be applied, in this order:

1. Values read from standalone*.xml/domain.xml.

2. Values from the ProtocolDefaultsService (implemented by org.jboss.as.clustering.jgroups.subsystem.ProtocolDefaultsService, part of jboss-as-clustering-jgroups-*.jar) which is initialized at startup with values from the file jgroups-defaults.xml embedded in the root of $JBOSS_HOME/modules/system/layers/base/org/jboss/as/clustering/jgroups/main/jboss-as-clustering-jgroups-*.jar or the respective overlay, if the installation was patched.

3. JGroups code defaults.

Configuring a New Protocol Attribute

TCP-based Configuration

WildFly Clustering without Multicast