Skip to content

Commit

Permalink
update the fio.run-file example to use the remotehosts endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rister committed Oct 24, 2024
1 parent 57dfd13 commit 19dacf2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
23 changes: 18 additions & 5 deletions fio.run-file/fio.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions fio.run-file/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 19dacf2

Please sign in to comment.