Jira (PDB-3635) Add ability to disable storage of resource events

1 view
Skip to first unread message

Charlie Sharpsteen (JIRA)

unread,
Aug 2, 2017, 6:28:02 PM8/2/17
to puppe...@googlegroups.com
Charlie Sharpsteen created an issue
 
PuppetDB / Improvement PDB-3635
Add ability to disable storage of resource events
Issue Type: Improvement Improvement
Affects Versions: PDB 5.0.1, PDB 4.2.3.2
Assignee: Unassigned
Components: PuppetDB
Created: 2017/08/02 3:27 PM
Priority: Normal Normal
Reporter: Charlie Sharpsteen

Puppet usage patterns that produce a lot of change can cause the resource_events table to consume a significant amount of disk space. Users that aren't running queries against the events API or using the PE Event Inspector could save disk space and processing time by disabling the storage of these events. We should offer the ability to disable event storage entirely in addition to the event TTL described in PDB-2487.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Austin Blatt (Jira)

unread,
Feb 8, 2021, 7:12:04 PM2/8/21
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Acceptance Criteria: - When resource-events-ttl is set to zero, resource-events are not stored in the resource events
- resource events are not included in the map that is used to make the hash for the resource events

pdb-ext
- A test showing that when syncing a report submitted with resource events it syncs to the other PuppetDB and creates a report with the same hash
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Austin Blatt (Jira)

unread,
Feb 8, 2021, 7:12:05 PM2/8/21
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Acceptance Criteria: - When resource-events-ttl is set to zero, resource-events are not stored in the resource events postgres
- resource events are not included in the map that is used to make the hash for the resource events

pdb-ext
- A test showing that when syncing a report submitted with resource events it syncs to the other PuppetDB and creates a report with the same hash

Austin Blatt (Jira)

unread,
Feb 8, 2021, 7:17:03 PM2/8/21
to puppe...@googlegroups.com
Austin Blatt commented on Improvement PDB-3635
 
Re: Add ability to disable storage of resource events

It is important to ensure that the report hash is stable, for PE puppetdb's sync to work correctly, the hash of the report we store initially must be equal to the hash of the report that we sync. I don't anticipate any issues with this as events are not included in the report hash https://github.com/puppetlabs/puppetdb/blob/6b4cf67b7af9b1fa0051c3b0b148788358f117e4/src/puppetlabs/puppetdb/scf/hash.clj#L188-L196 but it is important to keep in mind.

Zachary Kent (Jira)

unread,
Feb 8, 2021, 7:38:03 PM2/8/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
 
Change By: Zachary Kent
Labels: tsr-pdb-backlog

Bogdan Irimie (Jira)

unread,
Feb 9, 2021, 11:50:05 AM2/9/21
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Feb 10, 2021, 9:59:03 AM2/10/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-24.02.2021

Bogdan Irimie (Jira)

unread,
Feb 10, 2021, 9:59:03 AM2/10/21
to puppe...@googlegroups.com

Florin Dragos (Jira)

unread,
Feb 15, 2021, 8:31:04 AM2/15/21
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Feb 24, 2021, 9:07:03 AM2/24/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-24.02.2021 , ready for triage 3

Margaret Lee (Jira)

unread,
Mar 19, 2021, 12:34:02 PM3/19/21
to puppe...@googlegroups.com
Margaret Lee commented on Improvement PDB-3635
 
Re: Add ability to disable storage of resource events

Should the fix version for this be 6.15 and 7.2?

Zachary Kent (Jira)

unread,
Apr 9, 2021, 5:13:02 PM4/9/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
 
Change By: Zachary Kent
Fix Version/s: PDB 7.3.0
Fix Version/s: PDB 6.16.0
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Zachary Kent (Jira)

unread,
Apr 14, 2021, 6:59:02 PM4/14/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Release Notes: Enhancement
Release Notes Summary: Added the ability to disable the storage or resource events. If resource-events-ttl is set to zero in the puppetdb config resource events will no longer be stored separately during the storage of a report.  
Reply all
Reply to author
Forward
0 new messages