From fd690386f2fc00790bae0327ef6d782c9c42bb76 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 13 Dec 2014 22:57:31 +0100 Subject: [PATCH] increase file descriptor limit for source-backends --- dcs-source-backend.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dcs-source-backend.service b/dcs-source-backend.service index 111bea19..ff3efdf5 100644 --- a/dcs-source-backend.service +++ b/dcs-source-backend.service @@ -5,6 +5,9 @@ Description=Debian Code Search: source backend After=postgresql.service [Service] +# Increase the maximum number of file descriptors since each query uses up to +# 1000 goroutines, and each of these inherits file descriptors. +LimitNOFILE=16384 ExecStart=/usr/bin/dcs-source-backend -unpacked_path=/dcs-ssd/unpacked/ [Install]