Uploaded image for project: 'Red Hat Workload Availability'
  1. Red Hat Workload Availability
  2. RHWA-368

Ensure PeerTimeout is correctly set relative to API server health checks

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Cause: The hardcoded apiServerTimeout of 3 seconds could be less than the PeerTimeout (default to 5 seconds).
      Consequence: Race condition begins where one node might prematurely initiate remediation—assuming a network or peer failure—when the peer was merely slow to respond due to an overloaded API server.
      Fix: if the configured PeerTimeout is less than APIServerTimeout + MinimumBuffer, the operator will internally use APIServerTimeout + MinimumBuffer for the peer check. The admission webhook is also used to issue warnings
      Result: Race condition between peers is avoided.
      Show
      Cause: The hardcoded apiServerTimeout of 3 seconds could be less than the PeerTimeout (default to 5 seconds). Consequence: Race condition begins where one node might prematurely initiate remediation—assuming a network or peer failure—when the peer was merely slow to respond due to an overloaded API server. Fix: if the configured PeerTimeout is less than APIServerTimeout + MinimumBuffer, the operator will internally use APIServerTimeout + MinimumBuffer for the peer check. The admission webhook is also used to issue warnings Result: Race condition between peers is avoided.
    • Feature
    • Proposed

      The primary problem was that a situation can happen were the hardcoded apiServerTimeout of 3 seconds could be less than the PeerTimeout (which previously defaulted to 5 seconds). This might created a race condition where one node might prematurely initiate remediation—assuming a network or peer failure—when the peer was merely slow to respond due to an overloaded API server.

              mshitrit@redhat.com Michael Shitrit
              mshitrit@redhat.com Michael Shitrit
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: