cluster/services/storage: limit garage memory usage on low-memory nodes

This commit is contained in:
Max Headroom 2023-11-02 03:37:11 +01:00
parent 10c5d853d7
commit 7c3ee49b82
2 changed files with 8 additions and 0 deletions

View file

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

View file

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