Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-20377

[GSS](7.3.z) WFLY-14130 - proxy-list attribute ignored in modcluster subsystem

XMLWordPrintable

    • False
    • False
    • +
    • Undefined
    • Hide

      Setting proxies attribute as described in Congiruation Guide 24.6.2. Disable Advertising for mod_cluster instead of deprecated proxy-list attribute.

      $ diff -u standalone-ha.xml.original standalone-ha.xml
      --- standalone-ha.xml.original	2020-10-21 15:22:41.828489646 +0900
      +++ standalone-ha.xml	2020-10-21 15:23:29.843072774 +0900
      @@ -461,7 +461,7 @@
               <subsystem xmlns="urn:wildfly:microprofile-metrics-smallrye:2.0" security-enabled="false" exposed-subsystems="*" prefix="${wildfly.metrics.prefix:jboss}"/>
               <subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:1.0"/>
               <subsystem xmlns="urn:jboss:domain:modcluster:5.0">
      -            <proxy name="default" advertise-socket="modcluster" listener="ajp">
      +            <proxy name="default" advertise="false" advertise-socket="modcluster" listener="ajp" proxies="apache-modcluster">
                       <dynamic-load-provider>
                           <load-metric type="cpu"/>
                       </dynamic-load-provider>
      @@ -589,6 +589,9 @@
               <socket-binding name="modcluster" multicast-address="${jboss.modcluster.multicast.address:224.0.1.105}" multicast-port="23364"/>
               <socket-binding name="txn-recovery-environment" port="4712"/>
               <socket-binding name="txn-status-manager" port="4713"/>
      +        <outbound-socket-binding name="apache-modcluster">
      +            <remote-destination host="127.0.0.1" port="6666"/>
      +        </outbound-socket-binding>
               <outbound-socket-binding name="mail-smtp">
                   <remote-destination host="localhost" port="25"/>
               </outbound-socket-binding>
      
      Show
      Setting proxies attribute as described in Congiruation Guide 24.6.2. Disable Advertising for mod_cluster instead of deprecated proxy-list attribute. $ diff -u standalone-ha.xml.original standalone-ha.xml --- standalone-ha.xml.original 2020-10-21 15:22:41.828489646 +0900 +++ standalone-ha.xml 2020-10-21 15:23:29.843072774 +0900 @@ -461,7 +461,7 @@ <subsystem xmlns= "urn:wildfly:microprofile-metrics-smallrye:2.0" security-enabled= " false " exposed-subsystems= "*" prefix= "${wildfly.metrics.prefix:jboss}" /> <subsystem xmlns= "urn:wildfly:microprofile-opentracing-smallrye:1.0" /> <subsystem xmlns= "urn:jboss:domain:modcluster:5.0" > - <proxy name= " default " advertise-socket= "modcluster" listener= "ajp" > + <proxy name= " default " advertise= " false " advertise-socket= "modcluster" listener= "ajp" proxies= "apache-modcluster" > <dynamic-load-provider> <load-metric type= "cpu" /> </dynamic-load-provider> @@ -589,6 +589,9 @@ <socket-binding name= "modcluster" multicast-address= "${jboss.modcluster.multicast.address:224.0.1.105}" multicast-port= "23364" /> <socket-binding name= "txn-recovery-environment" port= "4712" /> <socket-binding name= "txn-status-manager" port= "4713" /> + <outbound-socket-binding name= "apache-modcluster" > + <remote-destination host= "127.0.0.1" port= "6666" /> + </outbound-socket-binding> <outbound-socket-binding name= "mail-smtp" > <remote-destination host= "localhost" port= "25" /> </outbound-socket-binding>

      When setting proxy-list attribute which is static apache host list in modcluster subsystem instread of using multicast advertise, proxy-list is ignored and MCMP INFO message does not send to 127.0.0.1:6666 as below:

      <subsystem xmlns="urn:jboss:domain:modcluster:5.0">
          <proxy name="default" advertise="false" advertise-socket="modcluster" listener="ajp" proxy-list="127.0.0.1:6666">
              <dynamic-load-provider>
                  <load-metric type="cpu"/>
              </dynamic-load-provider>
          </proxy>
      </subsystem>
      

      The proxy-list attribute is already deprecated since EAP7.0, but I don't think it's appropriate to ignore proxy-list.

              spyrkob Bartosz Spyrko-Smietanko
              rhn-support-nagetsum Norito Agetsuma
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: