From: Jérémie Galarneau Date: Tue, 26 Nov 2019 20:08:01 +0000 (-0500) Subject: relayd: add fd-cap option to limit the number of opened FDs X-Git-Tag: v2.12.0-rc1~67 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=896010e38f60e85d757a43778e25a51b890a7443;hp=896010e38f60e85d757a43778e25a51b890a7443 relayd: add fd-cap option to limit the number of opened FDs Add an --fd-cap option to the relay daemon in order to allow the launch of the relay daemon with a maximal number of file descriptors to be open at any given moment. When the value of the --fd-cap parameter is left unset, the maximal number of file descriptors is set to the system's NOFILE soft limit (see GETRLIMIT(3P)). A minimal number of file descriptors of 30 is imposed, mainly to prevent absurd configurations (someone setting 1 fd) which would not even allow one target to connect and stream traces. This also allows a bit of leverage to open file descriptors that could be needed by future changes without "breaking" an existing configuration. Signed-off-by: Jérémie Galarneau Change-Id: Ibaf49b25ccf3e3a8013115c9478744ca3646e306 ---