From c7af7ca91db16d9372411c0ff364cff1f1eb21cd Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 6 May 2021 15:26:07 +0200 Subject: chore(sourcegraph): Increase nofile ulimit for Sourcegraph Sourcegraph logs warnings about this on startup otherwise. Unclear to what degree it really affects operation though. Change-Id: I6ee7c5358631aafd9a7f8155150361bf7499314d Reviewed-on: https://cl.tvl.fyi/c/depot/+/3098 Tested-by: BuildkiteCI Reviewed-by: tazjin --- ops/modules/sourcegraph.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ops/modules/sourcegraph.nix b/ops/modules/sourcegraph.nix index a24328f3e3..a629060d23 100644 --- a/ops/modules/sourcegraph.nix +++ b/ops/modules/sourcegraph.nix @@ -46,6 +46,12 @@ in { ]; environment.SRC_SYNTECT_SERVER = "http://172.17.0.1:${toString cfg.cheddarPort}"; + + # Sourcegraph needs a higher nofile limit, it logs warnings + # otherwise (unclear whether it actually affects the service). + extraOptions = [ + "--ulimit" "nofile=10000:10000" + ]; }; }; } -- cgit 1.4.1