From 19dacf2241c50b2c11953e11f3ad75e1673d9494 Mon Sep 17 00:00:00 2001 From: Karl Rister Date: Thu, 24 Oct 2024 16:15:52 -0500 Subject: [PATCH] update the fio.run-file example to use the remotehosts endpoint --- fio.run-file/fio.json | 23 ++++++++++++++++++----- fio.run-file/run.sh | 4 ++-- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/fio.run-file/fio.json b/fio.run-file/fio.json index b8399db..529d45e 100644 --- a/fio.run-file/fio.json +++ b/fio.run-file/fio.json @@ -120,11 +120,24 @@ }, "endpoints": [ { - "type": "remotehost", - "host": "foo.example.com", - "user": "root", - "client": "1", - "userenv": "rhubi8" + "type": "remotehosts", + "settings": { + "user": "root", + "userenv": "rhubi8" + }, + "remotes": [ + { + "engines": [ + { "role": "client", "ids": [ 1 ] } + ], + "config": { + "host": "foo.example.com", + "settings": { + "osruntime": "podman" + } + } + } + ] } ], "run-params": { diff --git a/fio.run-file/run.sh b/fio.run-file/run.sh index dca6bd8..87367f2 100755 --- a/fio.run-file/run.sh +++ b/fio.run-file/run.sh @@ -41,9 +41,9 @@ function replace_value() { mv fio.json.tmp fio.json } -replace_value string remote_host ${remote_host} '."endpoints"[0]."host" = $remote_host' +replace_value string remote_host ${remote_host} '."endpoints"[0]."remotes"[0]."config"."host" = $remote_host' -replace_value string userenv ${userenv} '."endpoints"[0]."userenv" = $userenv' +replace_value string userenv ${userenv} '."endpoints"[0]."settings"."userenv" = $userenv' replace_value int samples ${samples} '."run-params"."num-samples" = $samples'