Merge staging-next-21.05 into staging-21.05

This commit is contained in:
github-actions[bot] 2021-08-08 18:02:47 +00:00 committed by GitHub
commit 5bb3f62a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -53,6 +53,14 @@ let cfg = config.services.victoriametrics; in
-retentionPeriod ${toString cfg.retentionPeriod} \ -retentionPeriod ${toString cfg.retentionPeriod} \
${lib.escapeShellArgs cfg.extraOptions} ${lib.escapeShellArgs cfg.extraOptions}
''; '';
# victoriametrics 1.59 with ~7GB of data seems to eventually panic when merging files and then
# begins restart-looping forever. Set LimitNOFILE= to a large number to work around this issue.
#
# panic: FATAL: unrecoverable error when merging small parts in the partition "/var/lib/victoriametrics/data/small/2021_08":
# cannot open source part for merging: cannot open values file in stream mode:
# cannot open file "/var/lib/victoriametrics/data/small/2021_08/[...]/values.bin":
# open /var/lib/victoriametrics/data/small/2021_08/[...]/values.bin: too many open files
LimitNOFILE = 1048576;
}; };
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];

View File

@ -4,6 +4,7 @@
, bison , bison
, flex , flex
, verilog , verilog
, which
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -29,6 +30,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
bison bison
flex flex
which
]; ];
buildInputs = [ buildInputs = [
@ -36,8 +38,9 @@ stdenv.mkDerivation rec {
]; ];
installPhase = '' installPhase = ''
mkdir -p $out/bin runHook preInstall
cp src/vhd2vl $out/bin/ install -D -m755 src/vhd2vl $out/bin/vdh2vl
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {