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

Clarify node-timeout meaning and default value and unify attribute description across modules

XMLWordPrintable

      The core of the problem is that the timeout is apparently not working in Undertow/WF as reported via UNDERTOW-1018.

      Description from the docs:

      https://docs.modcluster.io/#proxy-configuration-2

      Timeout (in seconds) for proxy connections to a node. That is the time mod_cluster will wait for the back-end response before returning error. That corresponds to timeout in the worker mod_proxy documentation. A value of -1 indicates no timeout. Note that mod_cluster always uses a cping/cpong before forwarding a request and the connectiontimeout value used by mod_cluster is the ping value.
      

      here the node timeout is the same as proxy timeout with default of 20?
      https://docs.modcluster.io/#modcluster-subsystem-configuration

      From apache docs:

      https://httpd.apache.org/docs/2.4/mod/mod_proxy.html

      timeout	ProxyTimeout	Socket timeout in seconds. The number of seconds Apache httpd waits for data sent by / to the backend.
      

      Description in NodeConfiguration builder:

          /**
           * Maximum time on seconds for idle connections the proxy will wait to connect to the node.
           */
          int getNodeTimeout();
      

      https://github.com/modcluster/mod_cluster/blob/2.0.4.Final/core/src/main/java/org/jboss/modcluster/config/NodeConfiguration.java#L39-L42

      Definition in WF model:

      [standalone@embedded /] /subsystem=modcluster/proxy=default:read-resource-description
      {
          "outcome" => "success",
          "result" => {
      ...
                  "node-timeout" => {
                      "type" => INT,
                      "description" => "Timeout (in seconds) for proxy connections to a node. That is the time mod_cluster will wait for the back-end response before returning an error.",
                      "expressions-allowed" => true,
                      "required" => false,
                      "nillable" => true,
                      "unit" => "SECONDS",
                      "min" => 1L,
                      "max" => 2147483647L,
                      "stability" => "default",
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "all-services"
                  },
      

      definition in XSD:

              <xs:attribute name="node-timeout" type="xs:string">
                  <xs:annotation>
                      <xs:documentation>
                          Timeout (in seconds) for proxy connections to a node. That is the time mod_cluster will wait for the
                          back-end response before returning an error.
                      </xs:documentation>
                  </xs:annotation>
              </xs:attribute>
      

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: