microvm-defaults: also increase conntrack table for 2G RAM

This commit is contained in:
Sandro - 2023-06-23 18:00:13 +02:00
parent 9999999b65
commit 120981064b
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
let
mem = if (config?microvm) then config.microvm.mem else config.deployment.mem;
in
lib.optionalAttrs (mem <= 1024) {
lib.optionalAttrs (mem <= 2*1024) {
# table overflow causing packets from nginx to the service to drop
# nf_conntrack: nf_conntrack: table full, dropping packet
"net.netfilter.nf_conntrack_max" = "65536";