Skip to content

Commit

Permalink
Merge pull request #48 from perftool-incubator/dev-kmr
Browse files Browse the repository at this point in the history
update the fio.run-file example to use the remotehosts endpoint
  • Loading branch information
k-rister authored Oct 24, 2024
2 parents 57dfd13 + 19dacf2 commit e2e9e6f
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 e2e9e6f

Please sign in to comment.