From cdf78c223e9eee3d2ed898dc936930eaae1555a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Wed, 11 Dec 2024 17:21:47 +0100 Subject: [PATCH] chore: tune the benchmark worker --- .github/workflows/benchmark.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index ed77771a..52d364e0 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -95,6 +95,12 @@ jobs: docker run -d --name nats-jetstream -p 4443:4443 -v ./nats/testdata:/testdata -v ./tls:/tls nats:latest --jetstream -c /testdata/nats-tls.conf sleep 2 + - name: Tune the environment + run: | + cat /proc/sys/fs/aio-max-nr + echo "fs.aio-max-nr = 1048576" >> /etc/sysctl.conf + sudo sysctl -p /etc/sysctl.conf + - name: Run Benchmarks run: | set -o pipefail