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

Add YAML configuration option #325

Merged
merged 4 commits into from
Jul 26, 2024
Merged

Conversation

klauspost
Copy link
Collaborator

@klauspost klauspost commented Jul 19, 2024

YAML configuration

As an alternative configuration option you can use an on-disk YAML configuration file.

See yml-samples for a collection of configuration files for each benchmark type.

To run a benchmark use λ warp run <file.yml>.

Values can be injected from the commandline using one or multiple -var VarName=Value. These values can be referenced inside YAML files with {{.VarName}}. Go text templates are used for this.

## YAML configuration

As an alternative configuration option you can use an on-disk YAML configuration file.

See [yml-samples](https://github.com/minio/warp/tree/master/yml-samples) for a collection of
configuration files for each benchmark type.

To run a benchmark use `λ warp run <file.yml>`.

Values can be injected from the commandline using one or multiple `-var VarName=Value`.
These values can be referenced inside YAML files with `{{.VarName}}`.
Go [text templates](https://pkg.go.dev/text/template) are used for this.
@klauspost klauspost requested a review from harshavardhana July 19, 2024 16:29
@harshavardhana harshavardhana merged commit b3452c3 into minio:master Jul 26, 2024
9 checks passed
@klauspost klauspost deleted the yaml-config branch July 26, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants