config.json.commented: increase RLIMIT_NOFILE
Set the RLIMIT_NOFILE to the same value the host has. The latter is
obtained by running ulimit -n in the docker image.
The increased value can help with "too many open files" issue since
gvisor caches file handles: closing a file will not necessarily close
it immediately.
Change-Id: I8f6a287eb57e83337b6f97d6b05023c725bd8274
Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/479595
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/config.json.commented b/config.json.commented
index 30a0932..73997a0 100644
--- a/config.json.commented
+++ b/config.json.commented
@@ -57,8 +57,8 @@
"rlimits": [
{
"type": "RLIMIT_NOFILE",
- "hard": 10024,
- "soft": 10024
+ "hard": 1048576,
+ "soft": 1048576
}
]
},