Skip to content

Commit 63d7902

Browse files
jberrymanhasura-bot
authored andcommitted
server/benchmarks: try to remove some possible sources of non-determi…
…nism see: https://hasurahq.slack.com/archives/C01TYPD4BEX/p1699388361615799 PR-URL: hasura/graphql-engine-mono#10481 GitOrigin-RevId: 262d74403c7ffcd3b5f8d71b79968cc5e22ee5de
1 parent 5355904 commit 63d7902

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/benchmarks/bench.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,16 @@ function maybe_launch_hasura_container() {
255255
--env HASURA_GRAPHQL_SERVER_PORT="$HASURA_GRAPHQL_SERVER_PORT" \
256256
--env HASURA_GRAPHQL_ADMIN_SECRET \
257257
--env HASURA_GRAPHQL_EE_LICENSE_KEY \
258+
--env HASURA_GRAPHQL_EVENTS_FETCH_INTERVAL=0 \
259+
--env HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL=0 \
258260
$DOCKER_NETWORK_HOST_MODE \
259261
"$REQUESTED_HASURA_DOCKER_IMAGE" \
260262
graphql-engine serve \
261263
+RTS -T $HASURA_RTS -RTS
262-
# ^^^ We run with `+RTS -T` to expose the /dev/rts_stats endpoint for
264+
# ^^^ - We run with `+RTS -T` to expose the /dev/rts_stats endpoint for
263265
# inspecting memory usage stats
266+
# - We disable some unneeded (currently) polling to try to eliminate
267+
# some sources of non-determinism
264268
else
265269
echo_pretty "We'll benchmark the hasura instance at port $HASURA_GRAPHQL_SERVER_PORT"
266270
fi

0 commit comments

Comments
 (0)