nix: Fix postgrest-loadtest after vegeta update

The recent nixpkgs update gave us a new version of vegeta. This version includes a new
DNS cache features - which unfortunately doesn't play well with unix sockets. Disabling
the DNS cache makes requests succeed again.
This commit is contained in:
Wolfgang Walther
2024-02-05 21:38:23 +01:00
parent 45cabacdcc
commit 63ff6d1f15
+1
View File
@@ -24,6 +24,7 @@ let
: "''${PGRST_SERVER_UNIX_SOCKET:?PGRST_SERVER_UNIX_SOCKET is required}"
${vegeta}/bin/vegeta -cpus 1 attack \
-dns-ttl -1 \
-unix-socket "$PGRST_SERVER_UNIX_SOCKET" \
-max-workers 1 \
-workers 1 \