Skip to content

Commit

Permalink
sled-agent deletes old archived dumps/logs to free space on U.2 crypt…
Browse files Browse the repository at this point in the history
…/debug datasets approaching quota (#3735)

In the event that the `crypt/debug` dataset currently in use for
archival fills up past 80% of its 100G quota, sled-agent will switch to
using one on another U.2. But if *all* of those datasets fill up that
much, it will instead find whichever of these datasets has the oldest
archived files to clear out in order to approach 70% usage of quota, and
delete the oldest files.

(NB: it isn't yet doing the calculation of how many files to delete in
terms of on-disk size (after zfs's gzip-9))

(Part of #2478)
  • Loading branch information
lifning authored and Alan Hanson committed Jul 24, 2023
1 parent fa7db65 commit 67c59bb
Showing 1 changed file with 231 additions and 46 deletions.
Loading

0 comments on commit 67c59bb

Please sign in to comment.