Decide whether to apply a bucket‑level or tag‑based retention policy in InfluxDB 2.x. Compare options, trade‑offs, and see concrete Flux scripts to create and verify policies.
A practical decision guide for InfluxDB 2.x: compare keeping raw metrics forever versus scheduled Flux-task downsampling into a long-retention bucket. Includes constraints, a trade-off table, a complete Flux task implementation, and validation steps you can run today.
InfluxDB retention policies delete old time-series data by dropping TSM shard group files, not scanning rows. See a worked example and the limitations that catch teams off guard.
Enable GCS Bucket Lock with a locked default retention period and versioning to enforce WORM compliance. Covers prerequisites, gsutil steps to set and lock retention, validation via audit logs, and recovery limits when a policy is locked.
Combine InfluxDB retention policies and continuous queries to automatically downsample high-resolution metrics, keeping recent detail while archiving low-resolution trends for years.
A minimal Harbor lifecycle uses per-project retention policies, immutable tag rules for releases, scheduled garbage collection, and scoped robot accounts to bound storage growth while protecting release artifacts.
How to select and configure a NATS JetStream retention policy (discard=new, discard=old, interest) for a durable event backbone, with operational checks, failure modes, and design pivots.