capsule will pause for 60 seconds if connection to sat is servered, causing 502s
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.
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.
#3 Updated by Eric Helms 3 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset puppet-foreman_proxy_content|d8cef09ffc8b3a1d19b1b407f27d4ca612ec8834.
#4 Updated by Ewoud Kohl van Wijngaarden about 2 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