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

Undertow balancer ignores maxAttempts atribute

    XMLWordPrintable

Details

    Description

      Even when max-attempts is correctly set in balancer, balancer choose to ignore it and use
      default of 1.
      Can be reproduced with 4 workers with set max-attemps and one undertow balancer.
      Deploy app to the workers that calls System.exit() and call it via balancer and watch how many workers will die

              "balancer" => {"mycluster" => {
                  "max-attempts" => 10,
                  "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" => {
                      "jboss-eap-7.1-1" => {
                          "aliases" => [
                              "default-host",
                              "localhost"
                          ],
                          "cache-connections" => 40,
                          "elected" => 0,
                          "flush-packets" => false,
                          "load" => 81,
                          "load-balancing-group" => undefined,
                          "max-connections" => 40,
                          "open-connections" => 1,
                          "ping" => 10,
                          "queue-new-requests" => true,
                          "read" => 0L,
                          "request-queue-size" => 1000,
                          "status" => "NODE_UP",
                          "timeout" => 0,
                          "ttl" => 60L,
                          "uri" => "ajp://10.16.92.99:8009/?#",
                          "written" => 0L,
                          "context" => {"/clusterbench" => {
                              "requests" => 0,
                              "status" => "enabled"
                          }}
                      },
                      "jboss-eap-7.1-3" => {
                          "aliases" => [
                              "default-host",
                              "localhost"
                          ],
                          "cache-connections" => 40,
                          "elected" => 0,
                          "flush-packets" => false,
                          "load" => 79,
                          "load-balancing-group" => undefined,
                          "max-connections" => 40,
                          "open-connections" => 1,
                          "ping" => 10,
                          "queue-new-requests" => true,
                          "read" => 0L,
                          "request-queue-size" => 1000,
                          "status" => "NODE_UP",
                          "timeout" => 0,
                          "ttl" => 60L,
                          "uri" => "ajp://10.16.92.99:8211/?#",
                          "written" => 0L,
                          "context" => {"/clusterbench" => {
                              "requests" => 0,
                              "status" => "enabled"
                          }}
                      },
                      "jboss-eap-7.1-2" => {
                          "aliases" => [
                              "default-host",
                              "localhost"
                          ],
                          "cache-connections" => 40,
                          "elected" => 0,
                          "flush-packets" => false,
                          "load" => 80,
                          "load-balancing-group" => undefined,
                          "max-connections" => 40,
                          "open-connections" => 1,
                          "ping" => 10,
                          "queue-new-requests" => true,
                          "read" => 0L,
                          "request-queue-size" => 1000,
                          "status" => "NODE_UP",
                          "timeout" => 0,
                          "ttl" => 60L,
                          "uri" => "ajp://10.16.92.99:8110/?#",
                          "written" => 0L,
                          "context" => {"/clusterbench" => {
                              "requests" => 0,
                              "status" => "enabled"
                          }}
                      },
                      "jboss-eap-7.1-4" => {
                          "aliases" => [
                              "default-host",
                              "localhost"
                          ],
                          "cache-connections" => 40,
                          "elected" => 0,
                          "flush-packets" => false,
                          "load" => 80,
                          "load-balancing-group" => undefined,
                          "max-connections" => 40,
                          "open-connections" => 1,
                          "ping" => 10,
                          "queue-new-requests" => true,
                          "read" => 0L,
                          "request-queue-size" => 1000,
                          "status" => "NODE_UP",
                          "timeout" => 0,
                          "ttl" => 60L,
                          "uri" => "ajp://10.16.92.99:8312/?#",
                          "written" => 0L,
                          "context" => {"/clusterbench" => {
                              "requests" => 0,
                              "status" => "enabled"
      

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              bsikora Bogdan Sikora (Inactive)
              Bogdan Sikora Bogdan Sikora (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: