Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10227

Close the http connection prior to sleeping retry-after seconds

    XMLWordPrintable

    Details

    • Template:
      PUP Bug Template
    • Epic Link:
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Hide
      When puppetserver returns a 429 or 503 to an agent when the agent tries to make an http request, the agent run will sleep and then retry the connection after. Previously, the agent kept the http connection open during the sleep. We now close the connection prior to the sleep to reduce the resource load on the puppetserver.
      Show
      When puppetserver returns a 429 or 503 to an agent when the agent tries to make an http request, the agent run will sleep and then retry the connection after. Previously, the agent kept the http connection open during the sleep. We now close the connection prior to the sleep to reduce the resource load on the puppetserver.
    • QA Risk Assessment:
      Needs Assessment

      Description

      To prevent thundering herds, puppetserver may return Retry-After and ask the agent to sleep. Until recently the agent would keep the connection open, until timeout occurs. To reduce resource usage on puppetserver, we should close the connection immediately.

      The latest puppetserver version will return Connection: close, but agents may talk to older puppetservers versions which would benefit from this.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melissa Melissa Stone
              Reporter:
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support