Actions
Feature #39208
closedCache global registration script in smart-proxy
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
GET /register returns the same shell script for all hosts sharing the same registration parameters (org, location, hostgroup, activation keys). Under bulk registration — 100+ hosts hitting the same capsule simultaneously — this endpoint is called once per host, each time proxying to Foreman and waiting for the ERB template to render (~103ms in profiling).
This change caches the rendered script in memory (5-minute TTL) keyed on a canonical form of the request query string, with per-key double-checked locking to prevent thundering herd while allowing concurrent requests for different keys to fetch from Foreman in parallel.
Updated by The Foreman Bot 5 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/935 added
Updated by Pablo Méndez Hernández 17 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset 300d86dc878363eed2fa72d0a3c70b03bde30adc.
Actions