Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-2478

Allow triggering of GC processes via POST


    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 4.2.0
    • Component/s: None
    • Labels:


      Currently GC background processes are triggered by a timed "duration" style background thread. This is not very flexible and can cause problems as the duration is calculated on startup. This can lead to processes running at peak times, inadvertantly. This may not happen at first, but a restart or an outage can cause the process to be restarted, duration recalculated and then a DB intensive GC operation can then cause service slowness.

      We should allow the triggering of these GC tasks via a POST. This should also allow the triggering of these jobs separately/independently. User's wanting full control of the GC processes could "disable" duration GC by setting the appropriate settings to 0. Users would then use use puppet to setup cron jobs for triggering these jobs when they want them to run (at the desired frequency).

      This might need to be broken into more than one ticket, but below needs to be finished to call this task complete:

      1. One new "gc" endpoint (or parameter) for each GC task
      2. Documentation on disabling current behavior
      3. Documentation on the GC tasks along with recommendations on frequency/timing
      4. POST examples in docs to trigger the new GC calls
      5. Puppet code examples on setting up the GC tasks


          Issue Links



              • Assignee:
                ryan.senior Ryan Senior
              • Votes:
                0 Vote for this issue
                1 Start watching this issue


                • Created:

                  Zendesk Support