From 47e4c341d51c2a4b938f2dd6ed69dbda49c55f12 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 29 Mar 2022 00:01:28 +0200 Subject: [PATCH] grafana: bump influxdb LimitNOFILES --- hosts/containers/grafana/default.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/hosts/containers/grafana/default.nix b/hosts/containers/grafana/default.nix index 24989552..db0cd5c2 100644 --- a/hosts/containers/grafana/default.nix +++ b/hosts/containers/grafana/default.nix @@ -61,14 +61,19 @@ in { }]; }; }; - systemd.services = builtins.foldl' (services: service: - services // { - "${service}".serviceConfig = { - RestartSec = 60; - Restart = "always"; - }; - } - ) {} restartServices; + systemd.services = + builtins.foldl' (services: service: + services // { + "${service}".serviceConfig = { + RestartSec = 60; + Restart = "always"; + }; + } + ) {} restartServices + // { + # work around our slow storage that can't keep up + influxdb.serviceConfig.LimitNOFILES = 102400; + }; # TODO: workaround for https://github.com/NixOS/nixpkgs/pull/157931 nixpkgs.config.permittedInsecurePackages = [