Skip to content

Commit

Permalink
haumea/zrepl: WIP
Browse files Browse the repository at this point in the history
Reduce snapshot count.  We repeatedly run out of space on Haumea.
  • Loading branch information
vcunat committed Jun 23, 2024
1 parent e890dcb commit efbc277
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions build/haumea/zrepl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
filesystems."rpool/safe<" = true;
snapshotting = {
type = "periodic";
interval = "15m";
interval = "1h";
prefix = "zrepl_snap_";
hooks = [ {
# https://zrepl.github.io/master/configuration/snapshotting.html#postgres-checkpoint-hook
Expand All @@ -33,23 +33,27 @@
};
pruning = {
keep_sender = [
{ type = "not_replicated"; }
{
type = "grid";
regex = "^zrepl_snap_.*";
grid = lib.concatStringsSep " | " [
"4x15m"
"24x1h"
"1x1h"
"1x2h"
"1x4h"
"2x8h"
"4x1d"
"3x1w"
];
}
];
keep_receiver = [
{ type = "grid";
regex = "^zrepl_snap_.*";
grid = lib.concatStringsSep " | " [
"96x1h"
"12x4h"
"1x1h"
"1x2h"
"1x4h"
"2x8h"
"7x1d"
"52x1w"
];
Expand Down

0 comments on commit efbc277

Please sign in to comment.