Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-905

Undertow balancer ignores maxAttempts atribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1, 1.4.7.Final
    • 1.4.4.Final
    • None

      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"
      

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              bsikora Bogdan Sikora (Inactive)
              Jan Kašík Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: