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:
@@ -24,6 +24,7 @@ let
|
|||||||
: "''${PGRST_SERVER_UNIX_SOCKET:?PGRST_SERVER_UNIX_SOCKET is required}"
|
: "''${PGRST_SERVER_UNIX_SOCKET:?PGRST_SERVER_UNIX_SOCKET is required}"
|
||||||
|
|
||||||
${vegeta}/bin/vegeta -cpus 1 attack \
|
${vegeta}/bin/vegeta -cpus 1 attack \
|
||||||
|
-dns-ttl -1 \
|
||||||
-unix-socket "$PGRST_SERVER_UNIX_SOCKET" \
|
-unix-socket "$PGRST_SERVER_UNIX_SOCKET" \
|
||||||
-max-workers 1 \
|
-max-workers 1 \
|
||||||
-workers 1 \
|
-workers 1 \
|
||||||
|
|||||||
Reference in New Issue
Block a user