Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the fio.run-file example to use the remotehosts endpoint #48

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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