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

Default Influx retention policy has infinite retention #151

Open
David00 opened this issue Dec 16, 2024 · 0 comments
Open

Default Influx retention policy has infinite retention #151

David00 opened this issue Dec 16, 2024 · 0 comments

Comments

@David00
Copy link
Owner

David00 commented Dec 16, 2024

This is an issue reported by @mholzma and I've confirmed it in a fresh installation of the existing v0.3.1 release image. This will be fixed in the upcoming v0.4.0 release. However, it can also be fixed manually in the Influx terminal with:

(Note that running this will trim all data associated with the autogen retention policy older than 30 days!)

ALTER RETENTION POLICY "autogen" ON "power_monitor" DURATION 30d

> show retention policies;
name    duration shardGroupDuration replicaN default
----    -------- ------------------ -------- -------
autogen 0s       168h0m0s           1        true
rp_5min 0s       168h0m0s           1        false

The autogen RP should have a 30 day limit on it, like this:

> show retention policies;
name    duration shardGroupDuration replicaN default
----    -------- ------------------ -------- -------
autogen 720h0m0s 168h0m0s           1        true
rp_5min 0s       168h0m0s           1        false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant