Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11319

Balancer keeps routing requests to workers in common load balancing group even when this group was disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 15.0.0.Beta1
    • mod_cluster
    • None
    • Hide
      1. Prepare 4 workers and one balancer
      2. Configure two load balancing groups (each with two workers)
      3. Send request to balancer to get ID of node which handled this request
      4. Disable load balancing group containing this node: /subsystem=undertow/configuration=filter/mod-cluster=modcluster/balancer=mycluster/load-balancing-group=groupTwo:disable-nodes
      5. Make new request to balancer within same session. This request should end up on any node from other load balancing group
      6. => Request ends up on same node as previous one did (in the disabled group)
      Show
      Prepare 4 workers and one balancer Configure two load balancing groups (each with two workers) Send request to balancer to get ID of node which handled this request Disable load balancing group containing this node: /subsystem=undertow/configuration=filter/mod-cluster=modcluster/balancer=mycluster/load-balancing-group=groupTwo:disable-nodes Make new request to balancer within same session. This request should end up on any node from other load balancing group => Request ends up on same node as previous one did (in the disabled group)

    Description

      When disabling nodes in common load balancing group, their contexts statuses became "disabled", however, balancer keeps routing requests to nodes in this group. Console after disable operation has been called:

      {
          "outcome" => "success",
          "result" => {
              "advertise-frequency" => 10000,
              "advertise-path" => "/",
              "advertise-protocol" => "http",
              "advertise-socket-binding" => "modcluster",
              "broken-node-timeout" => 60000,
              "cached-connections-per-thread" => 40,
              "connection-idle-timeout" => 60,
              "connections-per-thread" => 40,
              "enable-http2" => false,
              "failover-strategy" => "LOAD_BALANCED",
              "health-check-interval" => 10000,
              "http2-enable-push" => true,
              "http2-header-table-size" => 4096,
              "http2-initial-window-size" => 65535,
              "http2-max-concurrent-streams" => undefined,
              "http2-max-frame-size" => 16384,
              "http2-max-header-list-size" => undefined,
              "management-access-predicate" => undefined,
              "management-socket-binding" => "http",
              "max-ajp-packet-size" => 8192,
              "max-request-time" => -1,
              "max-retries" => 1L,
              "request-queue-size" => 1000,
              "security-key" => undefined,
              "security-realm" => undefined,
              "ssl-context" => undefined,
              "use-alias" => false,
              "worker" => "default",
              "balancer" => {"mycluster" => {
                  "max-attempts" => 1,
                  "sticky-session" => true,
                  "sticky-session-cookie" => "JSESSIONID",
                  "sticky-session-force" => false,
                  "sticky-session-path" => undefined,
                  "sticky-session-remove" => false,
                  "wait-worker" => 0,
                  "load-balancing-group" => undefined,
                  "node" => {
                      "wildfly-15.0.0.Alpha1-SNAPSHOT-3" => {
                          "aliases" => [
                              "default-host",
                              "localhost"
                          ],
                          "cache-connections" => 40,
                          "elected" => 3,
                          "flush-packets" => false,
                          "load" => 71,
                          "load-balancing-group" => "groupTwo",
                          "max-connections" => 40,
                          "open-connections" => 5,
                          "ping" => 10,
                          "queue-new-requests" => true,
                          "read" => 0L,
                          "request-queue-size" => 1000,
                          "status" => "NODE_UP",
                          "timeout" => 0,
                          "ttl" => 60L,
                          "uri" => "ajp://172.17.0.2:8211/?#",
                          "written" => 0L,
                          "context" => {
                              "/clusterbench" => {
                                  "requests" => 0,
                                  "status" => "disabled"
                              },
                              "/" => {
                                  "requests" => 0,
                                  "status" => "disabled"
                              },
                              "/wildfly-services" => {
                                  "requests" => 0,
                                  "status" => "disabled"
                              }
                          }
                      },
                      "wildfly-15.0.0.Alpha1-SNAPSHOT-4" => {
                          "aliases" => [
                              "default-host",
                              "localhost"
                          ],
                          "cache-connections" => 40,
                          "elected" => 2,
                          "flush-packets" => false,
                          "load" => 70,
                          "load-balancing-group" => "groupTwo",
                          "max-connections" => 40,
                          "open-connections" => 4,
                          "ping" => 10,
                          "queue-new-requests" => true,
                          "read" => 0L,
                          "request-queue-size" => 1000,
                          "status" => "NODE_UP",
                          "timeout" => 0,
                          "ttl" => 60L,
                          "uri" => "ajp://172.17.0.2:8312/?#",
                          "written" => 0L,
                          "context" => {
                              "/clusterbench" => {
                                  "requests" => 0,
                                  "status" => "disabled"
                              },
                              "/" => {
                                  "requests" => 0,
                                  "status" => "disabled"
                              },
                              "/wildfly-services" => {
                                  "requests" => 0,
                                  "status" => "disabled"
                              }
                          }
                      },
                      "wildfly-15.0.0.Alpha1-SNAPSHOT-1" => {
                          "aliases" => [
                              "default-host",
                              "localhost"
                          ],
                          "cache-connections" => 40,
                          "elected" => 0,
                          "flush-packets" => false,
                          "load" => 70,
                          "load-balancing-group" => "groupOne",
                          "max-connections" => 40,
                          "open-connections" => 4,
                          "ping" => 10,
                          "queue-new-requests" => true,
                          "read" => 0L,
                          "request-queue-size" => 1000,
                          "status" => "NODE_UP",
                          "timeout" => 0,
                          "ttl" => 60L,
                          "uri" => "ajp://172.17.0.2:8009/?#",
                          "written" => 0L,
                          "context" => {
                              "/clusterbench" => {
                                  "requests" => 0,
                                  "status" => "enabled"
                              },
                              "/" => {
                                  "requests" => 0,
                                  "status" => "enabled"
                              },
                              "/wildfly-services" => {
                                  "requests" => 0,
                                  "status" => "enabled"
                              }
                          }
                      },
                      "wildfly-15.0.0.Alpha1-SNAPSHOT-2" => {
                          "aliases" => [
                              "default-host",
                              "localhost"
                          ],
                          "cache-connections" => 40,
                          "elected" => 0,
                          "flush-packets" => false,
                          "load" => 70,
                          "load-balancing-group" => "groupOne",
                          "max-connections" => 40,
                          "open-connections" => 5,
                          "ping" => 10,
                          "queue-new-requests" => true,
                          "read" => 0L,
                          "request-queue-size" => 1000,
                          "status" => "NODE_UP",
                          "timeout" => 0,
                          "ttl" => 60L,
                          "uri" => "ajp://172.17.0.2:8110/?#",
                          "written" => 0L,
                          "context" => {
                              "/clusterbench" => {
                                  "requests" => 0,
                                  "status" => "enabled"
                              },
                              "/" => {
                                  "requests" => 0,
                                  "status" => "enabled"
                              },
                              "/wildfly-services" => {
                                  "requests" => 0,
                                  "status" => "enabled"
                              }
                          }
                      }
                  }
              }}
          }
      }
      

      Attachments

        Activity

          People

            rhn-engineering-rhusar Radoslav Husar
            jkasik@redhat.com Jan Kašík
            Jan Kašík Jan Kašík
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: