12 Replies Latest reply on Jul 18, 2016 12:17 PM by vijayakumar.aru

    Wildfly server with Load Balancer

    vijayakumar.aru

      Dear All,

       

      I am new to Wildfly server and first time working on server upgrade. I am upgrading project from Jboss 4 to Wildfly 9.

      I have done all the necessary changes and deployed environment, application is working fine.

       

      Same I moved to Pre-Production, Server is started without any error but the application URL is not working.

      In Pre-Prod request will got to F5 server (load balancer) and request will redirect to Pre-Prod1 or Pre-Prod2.

      AJP Port 8009 is up and Http port also up 8080. But the request is not reaching from Load Balancer to application server.

       

      If I start Jboss 4 with same ports, the application is working fine. Really I dont know what else I need to do for run the application in Jboss9.

       

      Can you please hlep me.

        • 1. Re: Wildfly server with Load Balancer
          pferraro

          I suspect you need to update your "public" interface.  The default configuration of this interface is:

                  <interface name="public">
                      <inet-address value="${jboss.bind.address:127.0.0.1}"/>
                  </interface>
          

           

          You should start your server using an appropriate interface address defined using the "jboss.bind.address" system property.

          • 2. Re: Wildfly server with Load Balancer
            vijayakumar.aru

            Hi Paul,

             

            Thank you reply. I gave the actual server IP address:

            Like below :

             

            Production Server 1 :

            <interface name="public"> 

                   <inet-address value="${jboss.bind.address:48.48.43.24}"/> 

              </interface>

            Production Server 2:

            <interface name="public"> 

                   <inet-address value="${jboss.bind.address:48.48.43.25}"/> 

              </interface>


            But its not working. Do I need to give Load Balancer IP address?

            Because Load Balancer is in different server (48.48.43.107).


            Thanks in advance. Kindly help me to resolve this?


            • 3. Re: Wildfly server with Load Balancer
              pferraro

              How are you starting your servers?  You mentioned an AJP port.  The AJP listener is not included in the default profile - so I suspect you might need to add it - or use a profile that contains it by default, e.g. "ha"

              See: AJP listeners - WildFly 10 - Project Documentation Editor

              https://docs.jboss.org/author/display/WFLY10/Admin+Guide#AdminGuide-ConfigurationFiles

              • 4. Re: Wildfly server with Load Balancer
                vijayakumar.aru

                I have used following stmt in my standalone.xml and used standalone_full_ha.xml

                 

                <ajp-listener name="ajpListener" scheme="http" socket-binding="ajp"/>

                 

                I dont know where to execute below sctips:

                 

                [standalone@localhost:9999 /] /socket-binding-group=standard-sockets/socket-binding=ajp:add(port=8009)

                 

                I have tried like this, I am getting error in AIX server. (Bracket is not required).

                • 5. Re: Wildfly server with Load Balancer
                  vijayakumar.aru

                  Some one pls help on to resolve this issues.

                  • 6. Re: Wildfly server with Load Balancer
                    pferraro

                    Read the section "Command Line Interface":

                    Management Clients - WildFly 10 - Project Documentation Editor

                    • 7. Re: Wildfly server with Load Balancer
                      arun2arunraj

                      Hi Vijayakumar,

                        
                          I am having couple of questions to fix your problem.
                          ( i ) What is the Port you have opened in your F5 loadbalancer. I mean ( 8009 / 8080 )
                          ( ii ) Have you mentioned any port offset values in your profile. So that the offset will be added with 8080 / 8009.
                          ( iii ) Basically Loadbalancer requires a port to do heart beat check. What is the port you have mentioned to configure ?

                       

                      Regards,
                      ArunRaj. R

                      • 8. Re: Wildfly server with Load Balancer
                        vijayakumar.aru

                        Hi Arun,

                         

                        I got below information from load balancer team:

                        1) The load balancer is going to 48.48.43.24 & 48.48.43.25 and is looking at port 8543

                        2) No I didnt mention any port offset value in my profile

                        3)

                        <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

                          +406          <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>

                          +407          <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>

                          +408          <socket-binding name="ajp" port="${jboss.ajp.port:8109}"/>

                          +409          <socket-binding name="http" port="${jboss.http.port:8543}"/>

                          +410          <socket-binding name="https" port="${jboss.https.port:8443}"/>

                          +411          <socket-binding name="txn-recovery-environment" port="4712"/>

                          +412          <socket-binding name="txn-status-manager" port="4713"/>

                          +413          <outbound-socket-binding name="mail-smtp">

                          +414              <remote-destination host="localhost" port="25"/>

                          +415          </outbound-socket-binding>

                          +416      </socket-binding-group>

                         

                         

                         

                        Log : 8543 and 8109 is up and running

                         

                        44  ^[[0m^[[0m06:01:49,474 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow AJP listener ajp listening on /0.0.0.0:8109

                           +45  ^[[0m^[[0m06:01:49,649 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0006: Undertow HTTP listener default listening on /0.0.0.0:8543

                         

                         

                         

                        Thank you for help Arun.

                         

                         

                        Please let me know if need more details?


                        • 9. Re: Wildfly server with Load Balancer
                          arun2arunraj

                          Hi Vijay,

                           

                             Please share me the result of the following command from the each server.

                           

                             Eg :  ( i )  netstat -tulpen | grep 48.48.43.24
                                     ( ii ) netstat -tulpen | grep 48.48.43.25

                           

                          Regards,
                          ArunRaj. R

                          • 10. Re: Wildfly server with Load Balancer
                            vijayakumar.aru

                            Hi Arun,

                             

                            I am using AIX server. No outputs for this command.

                            If you dont mind can we have short call pls?

                             

                            Thanks,

                            Vijay

                            • 11. Re: Wildfly server with Load Balancer
                              vijayakumar.aru

                              Hi Arun

                               

                              My Start Command is :

                               

                              ./standalone.sh --server-config=standalone-ha.xml -b 0.0.0.0

                               

                              Interface changes :

                               

                              <interface name="management">

                                +423              <inet-address value="${jboss.bind.address.management:48.48.43.24}"/>

                                +424          </interface>

                                +425          <interface name="public">

                                +426              <inet-address value="${jboss.bind.address:48.48.43.24}"/>

                                +427          </interface>

                                +428          <!-- TODO - only show this if the jacorb subsystem is added  -->

                                +429          <interface name="unsecure">

                                +430           

                                +431              <inet-address value="${jboss.bind.address.unsecure:48.48.43.24}"/>

                                +432          </interface>

                              • 12. Re: Wildfly server with Load Balancer
                                vijayakumar.aru

                                Arun, Can you please guide me.? I am really stuck

                                 

                                Thanks,

                                Vijay