Uploaded image for project: 'mod_cluster'
  1. mod_cluster
  2. MODCLUSTER-587

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation & Demos
    • Labels:
      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

              Assignee:
              mbabacek Michal Karm
              Reporter:
              bsikora Bogdan Sikora (Inactive)
              Tester:
              Jan Kasik Jan Kasik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: