nixos/systemd: CPUAccounting is deprecated (#454999)
This commit is contained in:
@@ -362,7 +362,6 @@ in
|
|||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Slice = "kubernetes.slice";
|
Slice = "kubernetes.slice";
|
||||||
CPUAccounting = true;
|
|
||||||
MemoryAccounting = true;
|
MemoryAccounting = true;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "1000ms";
|
RestartSec = "1000ms";
|
||||||
|
|||||||
@@ -173,7 +173,6 @@ in
|
|||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
MemoryAccounting = true;
|
MemoryAccounting = true;
|
||||||
CPUAccounting = true;
|
|
||||||
|
|
||||||
ExecStart = "${pkgs.prefect}/bin/prefect server start --host ${cfg.host} --port ${toString cfg.port}";
|
ExecStart = "${pkgs.prefect}/bin/prefect server start --host ${cfg.host} --port ${toString cfg.port}";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
@@ -216,7 +215,6 @@ in
|
|||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
MemoryAccounting = true;
|
MemoryAccounting = true;
|
||||||
CPUAccounting = true;
|
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.prefect}/bin/prefect worker start \
|
${pkgs.prefect}/bin/prefect worker start \
|
||||||
--pool ${poolName} \
|
--pool ${poolName} \
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ in
|
|||||||
systemd.user.extraConfig = mkOption {
|
systemd.user.extraConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
example = "DefaultCPUAccounting=yes";
|
example = "DefaultTimeoutStartSec=60";
|
||||||
description = ''
|
description = ''
|
||||||
Extra config options for systemd user instances. See {manpage}`systemd-user.conf(5)` for
|
Extra config options for systemd user instances. See {manpage}`systemd-user.conf(5)` for
|
||||||
available options.
|
available options.
|
||||||
|
|||||||
@@ -370,7 +370,6 @@ in
|
|||||||
Type = "simple";
|
Type = "simple";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
Slice = "azure.slice";
|
Slice = "azure.slice";
|
||||||
CPUAccounting = true;
|
|
||||||
MemoryAccounting = true;
|
MemoryAccounting = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user