openHPI / poseidon

Scalable task execution orchestrator for CodeOcean
MIT License
9 stars 1 forks source link

InfluxDB bucket retention #512

Open mpass99 opened 11 months ago

mpass99 commented 11 months ago

@MrSerth What would be a suitable retention?

While the general information might be interesting for future analysis, the debug information likely is not and probably takes up the most disk space. We might set up an Influx Task to regularly delete those data points older than something (30d).

MrSerth commented 11 months ago

Ah, thanks for making this overview here -- I like that.

mpass99 commented 1 month ago

I though of using a retention policy rather than an Influx Task -- where do you see the advantage?

Judging by my superficial understanding, retention policies allow us to delete the data of the whole bucket, but not to specify just one or two measurements to be deleted.

Are we sure that we don't need any old data for resolving remaining Sentry issues?

That's a fair point and proved to be useful in recent history. Now, however, might be a good point in time to implement the bucket retention. We resolved many bugs and Sentry issues and had many corresponding changes that might render old data unuseful, anyway.