Tips & Tricks

Set Time Based Collection Policy

0

This quick tip shows how to set a time based collection policy for data collector tables.

The method to configure the data retention policy has been using the SET_DATA_COLLECTOR_POLICY() function. The retention policies on these data collectors are based on memory and disk space. As of Vertica 7.0, the retention can be defined based on time.

If the time based policy is set using SET_DATA_COLLECTOR_POLICY(), Vertica will use the setting that is exceeded first (size or time). Before setting a time based policy, it’s a good idea to check disk size capacity.

To set just a strict time based policy, use the SET_DATA_COLLECTOR_TIME_POLICY() function:

To disable the time based policy, use a negative input such as -1 for the interval:

Documentation

About the author / 

Norbert Krupa

Norbert is the founder of vertica.tips and a Solutions Engineer at Talend. He is an HP Accredited Solutions Expert for Vertica Big Data Solutions. He has written the Vertica Diagnostic Queries which aim to cover monitoring, diagnostics and performance tuning. The views, opinions, and thoughts expressed here do not represent those of the user's employer.

Leave a Reply

Upcoming Events

  • No upcoming events
AEC v1.0.4

Subscribe to Blog via Email

Enter your email address to subscribe and receive notifications of new posts by email.

Read more use cases here.

Notice

This site is not affiliated, endorsed or associated with HPE Vertica. This site makes no claims on ownership of trademark rights. The author contributions on this site are licensed under CC BY-SA 3.0 with attribution required.
%d bloggers like this: