Project

General

Profile

Bug #32161

capsule will pause for 60 seconds if connection to sat is servered, causing 502s

Added by Eric Helms 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

The capsule does a ProxyPass up to the Satellite to pass through API calls. By default, the ProxyPass will hold a connection open and re-use it instead of making a new connection each time.

However, by default, if the connection is interrupted, ProxyPass will wait 60 seconds before trying a server again since it assumes there are multiple workers in a pool and not just one Satellite. During this time, clients will get a "502 proxy error" from the capsule.

The ProxyPass up to the Satellite should likely have the options "retry=0 disablereuse=On". This will make a new connection each time.

Associated revisions

Revision d8cef09f (diff)
Added by Eric Helms 6 months ago

Fixes #32161: Set disablereuse=on and retry=0 on reverse proxy

This change aims to avoid timeouts and delays when client connection
is interrupted reverse proxying back to the Foreman server.
The reverse proxy is meant for communication back to primary Foreman
server where there are not multiple "workers" to receive a request.
This should reduce the number of clients getting 502 proxy errors
and having to be retried manually thus increasing the reliability.

History

#1 Updated by The Foreman Bot 6 months ago

  • Assignee set to Eric Helms
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/puppet-foreman_proxy_content/pull/337 added

#2 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 2.5.0 added

#3 Updated by Eric Helms 6 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Ewoud Kohl van Wijngaarden 5 months ago

  • Triaged changed from No to Yes
  • Category set to Foreman modules
  • Subject changed from capsule will pause for 60 seconds if connection to sat is servered, causing 502s to capsule will pause for 60 seconds if connection to sat is servered, causing 502s

Also available in: Atom PDF