Project

General

Profile

Actions

Refactor #12310

closed

Remove facter cache and introduce totaluploads option

Added by Alex Balk about 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Image
Difficulty:
trivial
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The discovery-register script pushes facts without clearing the facter cache. This means that if one tries to force fact upload - for example, as a "ping" mechanism for discovery nodes, only cached facts are uploaded.
This can be overridden by removing '/tmp/proxy_cache' and sending the process a SIGHUP, but this involves a (relatively small) race condition.
The overhead of running 'Facter.clear' on every 'upload_sleep' interval doesn't seem big, especially since an external cache file (/tmp/proxy_cache) is used. This avoids the race condition.

Actions

Also available in: Atom PDF