nixos/containerd: StartLimit* options must be in the unit-section
also, raise limits to ensure reasonable startup time, now that StartLimits are actually enforced
This commit is contained in:
parent
2142f88526
commit
7e310dd8e8
@ -44,9 +44,7 @@ in
|
|||||||
KillMode = "process";
|
KillMode = "process";
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = "5";
|
RestartSec = "10";
|
||||||
StartLimitBurst = "8";
|
|
||||||
StartLimitIntervalSec = "120s";
|
|
||||||
|
|
||||||
# "limits" defined below are adopted from upstream: https://github.com/containerd/containerd/blob/master/containerd.service
|
# "limits" defined below are adopted from upstream: https://github.com/containerd/containerd/blob/master/containerd.service
|
||||||
LimitNPROC = "infinity";
|
LimitNPROC = "infinity";
|
||||||
@ -58,6 +56,10 @@ in
|
|||||||
StateDirectory = "containerd";
|
StateDirectory = "containerd";
|
||||||
RuntimeDirectory = "containerd";
|
RuntimeDirectory = "containerd";
|
||||||
};
|
};
|
||||||
|
unitConfig = {
|
||||||
|
StartLimitBurst = "16";
|
||||||
|
StartLimitIntervalSec = "120s";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user