Wildfly 26 to 31 port offsets

103 views
Skip to first unread message

D E

unread,
Mar 22, 2024, 1:02:27 PM3/22/24
to WildFly
We are upgrading from Wildfly 26.1.3.Final to 31.0.1.Final.

In both versions we have edited the port assignments at the bottom of standalone-ha.xml to the following:

    <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:10000}">
        <socket-binding name="ajp" port="14"/>
        <socket-binding name="http" port="15"/>
        <socket-binding name="https" port="18"/>
        <socket-binding name="jgroups-mping" interface="private" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45700"/>
        <socket-binding name="jgroups-tcp" interface="private" port="23"/>
        <socket-binding name="jgroups-tcp-fd" interface="private" port="57600"/>
        <socket-binding name="jgroups-udp" interface="private" port="24" 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="management-http" interface="management" port="${jboss.management.http.port:1}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:3}"/>
        <socket-binding name="modcluster" multicast-address="${jboss.modcluster.multicast.address:224.0.1.105}" multicast-port="23364"/>
        <socket-binding name="txn-recovery-environment" port="25"/>
        <socket-binding name="txn-status-manager" port="26"/>
        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="${jboss.mail.server.host:localhost}" port="${jboss.mail.server.port:25}"/>
        </outbound-socket-binding>
    </socket-binding-group>

Then we set the offset to, in one case, 27700.

This has been working fine in Wildfly 26, but in Wildfly 31, we get this error:

Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: port out of range:81900

So my guess is that in Wildfly 26, the following was not being modified by the provided offset, but is being so modified in Wildfly 31.  True?

<socket-binding name="jgroups-udp-fd" interface="private" port="54200"/>

And if true, are the others that are now being modified by the offset in Wildfly 31 that were not in Wildfly 26?

Best regards


Reply all
Reply to author
Forward
0 new messages