depot/cluster/services/ipfs/io-tweaks.nix

25 lines
428 B
Nix
Raw Permalink Normal View History

2023-06-02 18:51:00 +03:00
{
systemd.services.ipfs = {
serviceConfig = {
LimitNOFILE = 524288;
IOSchedulingPriority = 7;
};
};
systemd.slices.remotefshost.sliceConfig = {
IOWeight = 5;
IOReadIOPSMax = [
"/dev/sda 100"
"/dev/sdb 100"
];
IOWriteIOPSMax = [
"/dev/sda 100"
"/dev/sdb 100"
];
IODeviceLatencyTargetSec = [
"/dev/sda 500ms"
"/dev/sdb 500ms"
];
};
}