Skip to content

Commit

Permalink
server/benchmarks: try to remove some possible sources of non-determi…
Browse files Browse the repository at this point in the history
…nism

see: https://hasurahq.slack.com/archives/C01TYPD4BEX/p1699388361615799

PR-URL: hasura/graphql-engine-mono#10481
GitOrigin-RevId: 262d74403c7ffcd3b5f8d71b79968cc5e22ee5de
  • Loading branch information
jberryman authored and hasura-bot committed Nov 13, 2023
1 parent 5355904 commit 63d7902
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/benchmarks/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,16 @@ function maybe_launch_hasura_container() {
--env HASURA_GRAPHQL_SERVER_PORT="$HASURA_GRAPHQL_SERVER_PORT" \
--env HASURA_GRAPHQL_ADMIN_SECRET \
--env HASURA_GRAPHQL_EE_LICENSE_KEY \
--env HASURA_GRAPHQL_EVENTS_FETCH_INTERVAL=0 \
--env HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL=0 \
$DOCKER_NETWORK_HOST_MODE \
"$REQUESTED_HASURA_DOCKER_IMAGE" \
graphql-engine serve \
+RTS -T $HASURA_RTS -RTS
# ^^^ We run with `+RTS -T` to expose the /dev/rts_stats endpoint for
# ^^^ - We run with `+RTS -T` to expose the /dev/rts_stats endpoint for
# inspecting memory usage stats
# - We disable some unneeded (currently) polling to try to eliminate
# some sources of non-determinism
else
echo_pretty "We'll benchmark the hasura instance at port $HASURA_GRAPHQL_SERVER_PORT"
fi
Expand Down

0 comments on commit 63d7902

Please sign in to comment.