From 63ff6d1f15bff8a51ad09edd293460f69b668e29 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 5 Feb 2024 21:38:23 +0100 Subject: [PATCH] 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. --- nix/tools/loadtest.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/tools/loadtest.nix b/nix/tools/loadtest.nix index 0d514d54c..36635654b 100644 --- a/nix/tools/loadtest.nix +++ b/nix/tools/loadtest.nix @@ -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 \