cluster/services/storage: limit garage memory usage on low-memory nodes
This commit is contained in:
parent
10c5d853d7
commit
7c3ee49b82
2 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,7 @@ in
|
|||
garage = [ "checkmate" "prophet" "VEGAS" ];
|
||||
garageInternal = [ "VEGAS" ];
|
||||
garageExternal = [ "checkmate" "prophet" ];
|
||||
garageLimitMemory = [ "checkmate" ];
|
||||
};
|
||||
nixos = {
|
||||
external = [ ./external.nix ];
|
||||
|
@ -32,6 +33,7 @@ in
|
|||
];
|
||||
garageInternal = [ ./garage-internal.nix ];
|
||||
garageExternal = [ ./garage-external.nix ];
|
||||
garageLimitMemory = [ ./garage-limit-memory.nix ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
6
cluster/services/storage/garage-limit-memory.nix
Normal file
6
cluster/services/storage/garage-limit-memory.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
systemd.services.garage.serviceConfig = {
|
||||
MemoryHigh = "128M";
|
||||
MemorySwapMax = "256M";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue