cluster/services/storage: remove checkmate from garage cluster
This commit is contained in:
parent
7c3ee49b82
commit
b2e30146d9
4 changed files with 9 additions and 13 deletions
|
@ -13,10 +13,9 @@ in
|
||||||
nodes = {
|
nodes = {
|
||||||
external = [ "prophet" ];
|
external = [ "prophet" ];
|
||||||
heresy = [ "VEGAS" ];
|
heresy = [ "VEGAS" ];
|
||||||
garage = [ "checkmate" "prophet" "VEGAS" ];
|
garage = [ "prophet" "VEGAS" ];
|
||||||
garageInternal = [ "VEGAS" ];
|
garageInternal = [ "VEGAS" ];
|
||||||
garageExternal = [ "checkmate" "prophet" ];
|
garageExternal = [ "prophet" ];
|
||||||
garageLimitMemory = [ "checkmate" ];
|
|
||||||
};
|
};
|
||||||
nixos = {
|
nixos = {
|
||||||
external = [ ./external.nix ];
|
external = [ ./external.nix ];
|
||||||
|
@ -33,7 +32,6 @@ in
|
||||||
];
|
];
|
||||||
garageInternal = [ ./garage-internal.nix ];
|
garageInternal = [ ./garage-internal.nix ];
|
||||||
garageExternal = [ ./garage-external.nix ];
|
garageExternal = [ ./garage-external.nix ];
|
||||||
garageLimitMemory = [ ./garage-limit-memory.nix ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,15 @@
|
||||||
distributed = true;
|
distributed = true;
|
||||||
requiredBy = [ "garage.service" ];
|
requiredBy = [ "garage.service" ];
|
||||||
after = [ "garage.service" "garage-layout-init.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 = {
|
services.garage.layout.initial = {
|
||||||
checkmate = { zone = "eu-central"; capacity = 1000; };
|
|
||||||
prophet = { zone = "eu-central"; capacity = 1000; };
|
prophet = { zone = "eu-central"; capacity = 1000; };
|
||||||
VEGAS = { zone = "eu-central"; capacity = 1000; };
|
VEGAS = { zone = "eu-central"; capacity = 1000; };
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
systemd.services.garage.serviceConfig = {
|
|
||||||
MemoryHigh = "128M";
|
|
||||||
MemorySwapMax = "256M";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -24,7 +24,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
package = depot.packages.garage;
|
package = depot.packages.garage;
|
||||||
settings = {
|
settings = {
|
||||||
replication_mode = 3;
|
replication_mode = "2-dangerous";
|
||||||
block_size = 16 * 1024 * 1024;
|
block_size = 16 * 1024 * 1024;
|
||||||
db_engine = "lmdb";
|
db_engine = "lmdb";
|
||||||
metadata_dir = "/var/lib/garage-metadata";
|
metadata_dir = "/var/lib/garage-metadata";
|
||||||
|
|
Loading…
Add table
Reference in a new issue