2021-11-15 10:02:05 +00:00
|
|
|
{
|
|
|
|
systemd.services = {
|
|
|
|
dovecot2 = {
|
|
|
|
serviceConfig = {
|
2023-11-18 15:26:47 +00:00
|
|
|
CpuAccounting = true;
|
|
|
|
CpuQuota = "20%";
|
|
|
|
MemoryAccounting = true;
|
|
|
|
MemoryMax = "256M";
|
|
|
|
StartLimitIntervalSec = 500;
|
|
|
|
StartLimitBurst = 5;
|
|
|
|
BlockIOWeight = 25;
|
2021-11-15 10:02:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
postfix = {
|
|
|
|
serviceConfig = {
|
2023-11-18 15:26:47 +00:00
|
|
|
CpuAccounting = true;
|
|
|
|
CpuQuota = "20%";
|
|
|
|
MemoryAccounting = true;
|
|
|
|
MemoryMax = "256M";
|
|
|
|
StartLimitIntervalSec = 500;
|
|
|
|
StartLimitBurst = 5;
|
|
|
|
BlockIOWeight = 25;
|
2021-11-15 10:02:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
ocserv = {
|
|
|
|
serviceConfig = {
|
2023-11-18 15:26:47 +00:00
|
|
|
CpuAccounting = true;
|
|
|
|
CpuQuota = "70%";
|
|
|
|
MemoryAccounting = true;
|
|
|
|
MemoryMax = "512M";
|
|
|
|
StartLimitIntervalSec = 500;
|
|
|
|
StartLimitBurst = 5;
|
2021-11-15 10:02:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
nginx = {
|
|
|
|
serviceConfig = {
|
2023-11-18 15:26:47 +00:00
|
|
|
CpuAccounting = true;
|
|
|
|
CpuQuota = "70%";
|
|
|
|
MemoryAccounting = true;
|
|
|
|
MemoryMax = "768M";
|
|
|
|
StartLimitIntervalSec = 500;
|
|
|
|
StartLimitBurst = 5;
|
|
|
|
BlockIOWeight = 10;
|
2021-11-15 10:02:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|