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

Undertow hosts root location is exposed(by default) to mod_cluster load balancer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 7.1.0.DR19
    • mod_cluster
    • None

    Description

      Undertow can be configured to serve static content per host via the location resource. This location resource is exposed to the mod_cluster balancer.

                     "context" => {
                          "/custom_location" => {
                              "requests" => 0,
                              "status" => "enabled"
                          },
      

      However, all EAP standalone profiles have enabled root location by default. This root location is then exposed to the balancer( Application root "/" is registered).

        "context" => {
                          "/" => {
                              "requests" => 0,
                              "status" => "enabled"
                          },
      

      Root application matches with any application call and therefore mod_cluster balancer is unable to correctly route requests.

      To make mod_cluster work, one must delete root location from worker nodes.

      /subsystem=undertow/server=default-server/host=default-host/location=\/:remove()
      

      or excluding context ROOT

      /subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="ROOT")
      

      Proposal:
      Exclude ROOT context by default

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-rhusar Radoslav Husar
              bsikora Bogdan Sikora (Inactive)
              Bogdan Sikora Bogdan Sikora (Inactive)
              Bogdan Sikora Bogdan Sikora (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: