Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
HA
-
2
-
HA Team 2020-01-29, HA Team 2020-02-12, HA Team 2020-02-26
-
Normal
-
2 - 5-25% of Customers
-
3 - Serious
-
4 - $$$$$
-
-
New Feature
-
Adds the initial-report-threshold config option to the sync settings. On startup, PuppetDB will only sync reports newer than the threshold. Older reports will still be transferred on subsequent periodic syncs.
-
Needs Assessment
Description
The Problem
By default, PDB sync will try to sync all reports in the database with the other PuppetDB. Syncing all of the reports in the database is generally not valuable and syncing a smaller portion and then growing the new sync node as new reports come in would likely work great for 90% of users.
In this case, you could set the sync-report-ttl to say 1d while leaving report-ttl at 14d. When setting up a new sync node you'd only sync 1d of reports and over the next 13 days the new reports coming in would bring the sync node up to the 14d of report-ttl.
This also allows for sync to go down for multiple days and then come back up relatively quickly depending on how you decide to configure these settings.
Having this as a configurable setting provides a release valve when you're trying to get sync working and you don't want to wait for 14 days of reports to sync. You just want sync working now and you don't care about the reports syncing all the way back in time.