4 Replies Latest reply on Feb 9, 2016 7:56 AM by valsaraj viswanathan

    Using Wildly as a static load balancer - basic configuration problem

    Ja kub Novice

      How can I configure load balancer ?

      when I try to do it as in doc, I get error '//foo.com::add' is not a valid operation name.

      What do I do wrong ? Or is this some problem with cli?

       

      Using Wildfly as a Load Balancer - WildFly 9 - Project Documentation Editor

       

                Using Wildly as a static load balancer

      To use Wildfly as a static load balancer the first step is to create a proxy handler in the Undertow subsystem. For the purposes of this example we are going to assume that our load balancer is going to load balance between two servers, sv1.foo.com and sv2.foo.com, and will be using the AJP protocol.

      The first step is to add a reverse proxy handler to the Undertow subsystem:

      /subsystem=undertow/configuration=handler/reverse-proxy=my-handler:add()

      Then we need to add the hosts:

      /subsystem=undertow/configuration=handler/reverse-proxy=my-handler/host=ajp://sv1.foo.com::add()

       

      You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.

      [disconnected /] connect

      [standalone@localhost:9990 /] /subsystem=undertow/configuration=handler/reverse-proxy=my-handler:add()

      {"outcome" => "success"}

      [standalone@localhost:9990 /] /subsystem=undertow/configuration=handler/reverse-proxy=my-handler/host=ajp://10.0.0.243::add()

      '//10.0.0.243::add' is not a valid operation name.

      [standalone@localhost:9990 /] /subsystem=undertow/configuration=handler/reverse-proxy=my-handler/host=ajp://10.0.0.243::add()

      '//10.0.0.243::add' is not a valid operation name.

      [standalone@localhost:9990 /] /subsystem=undertow/configuration=handler/reverse-proxy=my-handler/host=ajp://foo::add()

      '//foo::add' is not a valid operation name.

      [standalone@localhost:9990 /] /subsystem=undertow/configuration=handler/reverse-proxy=my-handler/host=ajp://foo.com::add()

      '//foo.com::add' is not a valid operation name.

       

      BR, thx

      Jakub