diff options
author | Vincent Ambo <mail@tazj.in> | 2021-05-06T13·26+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-05-06T19·28+0000 |
commit | c7af7ca91db16d9372411c0ff364cff1f1eb21cd (patch) | |
tree | 9f315ba9dc1c8878925a8b330a5b8c908bb89bd3 /ops/modules/sourcegraph.nix | |
parent | 90db61a6f4a62d29afd4e8a04112ad9021a6919c (diff) |
chore(sourcegraph): Increase nofile ulimit for Sourcegraph r/2571
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 <mail@tazj.in>
Diffstat (limited to 'ops/modules/sourcegraph.nix')
-rw-r--r-- | ops/modules/sourcegraph.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ops/modules/sourcegraph.nix b/ops/modules/sourcegraph.nix index a24328f3e366..a629060d2377 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" + ]; }; }; } |