Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retention on psql-app #19

Open
numchucksoe opened this issue Jan 20, 2023 · 6 comments
Open

Retention on psql-app #19

numchucksoe opened this issue Jan 20, 2023 · 6 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@numchucksoe
Copy link

I have the retention in the docker-compose file for 8 weeks but it is only doing 4 weeks. I do not see the old cron job that cleans up and can not find anywhere the dB is being cleaned. Please advise.

@TimEvens
Copy link
Contributor

TimEvens commented Feb 1, 2023

The cron jobs have moved to postgres and TSDB retention policies. This is a bug that those values are still in the compose file. A doc will be created to detail how to adjust, see, and monitor retention settings.

@TimEvens TimEvens self-assigned this Feb 1, 2023
@TimEvens TimEvens added bug Something isn't working documentation Improvements or additions to documentation labels Feb 1, 2023
@numchucksoe
Copy link
Author

Thanks a bunch. I was going crazy looking for it. Look forward to the update and keep up good work.

@numchucksoe
Copy link
Author

Any update on this?

@kbmanseau
Copy link

@numchucksoe are you waiting on the updated docs to get past your issue? I can assist modifying the retention policies if needed

@numchucksoe
Copy link
Author

@numchucksoe are you waiting on the updated docs to get past your issue? I can assist modifying the retention policies if needed

Yes I am waiting on a way to increase the retention. Any help will be greatly appreciated.

@kbmanseau
Copy link

Sure, you can see how the retention is set in the DB schema: timescaledb retention policy

You can connect to your database using psql.

  1. List current retention policies on hypertables
    SELECT * FROM timescaledb_information.jobs where proc_name='policy_retention';
  2. Drop whichever ones you want using remove_retention_policy()
  3. You can then replace with a new policy with longer retention to prevent your db from filling up add_retention_policy()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants