cluster/services/storage: remove checkmate from garage cluster

This commit is contained in:
Max Headroom 2023-11-02 19:13:34 +01:00
parent 7c3ee49b82
commit b2e30146d9
4 changed files with 9 additions and 13 deletions

View file

@ -13,10 +13,9 @@ in
nodes = {
external = [ "prophet" ];
heresy = [ "VEGAS" ];
garage = [ "checkmate" "prophet" "VEGAS" ];
garage = [ "prophet" "VEGAS" ];
garageInternal = [ "VEGAS" ];
garageExternal = [ "checkmate" "prophet" ];
garageLimitMemory = [ "checkmate" ];
garageExternal = [ "prophet" ];
};
nixos = {
external = [ ./external.nix ];
@ -33,7 +32,6 @@ in
];
garageInternal = [ ./garage-internal.nix ];
garageExternal = [ ./garage-external.nix ];
garageLimitMemory = [ ./garage-limit-memory.nix ];
};
};

View file

@ -3,11 +3,15 @@
distributed = true;
requiredBy = [ "garage.service" ];
after = [ "garage.service" "garage-layout-init.service" ];
incantations = i: [ ];
incantations = i: [
(i.runGarage ''
garage layout remove "$(getNodeId checkmate)"
garage layout apply --version 2
'')
];
};
services.garage.layout.initial = {
checkmate = { zone = "eu-central"; capacity = 1000; };
prophet = { zone = "eu-central"; capacity = 1000; };
VEGAS = { zone = "eu-central"; capacity = 1000; };
};

View file

@ -1,6 +0,0 @@
{
systemd.services.garage.serviceConfig = {
MemoryHigh = "128M";
MemorySwapMax = "256M";
};
}

View file

@ -24,7 +24,7 @@ in
enable = true;
package = depot.packages.garage;
settings = {
replication_mode = 3;
replication_mode = "2-dangerous";
block_size = 16 * 1024 * 1024;
db_engine = "lmdb";
metadata_dir = "/var/lib/garage-metadata";