Skip to content

Commit 6c619b1

Browse files
committed
wb: LMDB - for now only put live tables on SSD device
1 parent bba719d commit 6c619b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nix/nixos/cardano-node-service.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ let
131131
utxoLmdbParams = ["--v1-lmdb-ledger-db-backend"]
132132
++ lib.optionals (cfg.lmdbDatabasePath i != null)
133133
[ "--ssd-database-dir ${cfg.lmdbDatabasePath i}"
134-
"--ssd-snapshot-tables"
134+
# "--ssd-snapshot-tables"
135135
];
136136
cmd = builtins.filter (x: x != "") [
137137
"${cfg.executable} run"
@@ -715,7 +715,7 @@ in {
715715
config = mkIf cfg.enable ( let
716716
stateDirBase = "/var/lib/";
717717
runDirBase = "/run/";
718-
lmdbPaths = filter (x: x != null) (map (e: lmdbDatabasePath e) cfg.instances);
718+
lmdbPaths = filter (x: x != null) (map (e: cfg.lmdbDatabasePath e) (builtins.genList lib.trivial.id cfg.instances));
719719
genInstanceConf = f: listToAttrs (if cfg.instances > 1
720720
then genList (i: let n = "cardano-node-${toString i}"; in nameValuePair n (f n i)) cfg.instances
721721
else [ (nameValuePair "cardano-node" (f "cardano-node" 0)) ]); in lib.mkMerge [
@@ -818,7 +818,7 @@ in {
818818
message = "Systemd socket activation cannot be used with p2p topology due to a systemd socket re-use issue.";
819819
}
820820
{
821-
assertion = (length lmdPaths) == (length (lib.lists.unique lmdbPaths));
821+
assertion = (length lmdbPaths) == (length (lib.lists.unique lmdbPaths));
822822
message = "When configuring multiple LMDB enabled nodes on one instance, lmdbDatabasePath must be unique.";
823823
}
824824
];

0 commit comments

Comments
 (0)