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 host file input #298

Merged
merged 6 commits into from
Jan 28, 2024
Merged

Conversation

klauspost
Copy link
Collaborator

Allow file as host input for benchmark targets or clients.

Example warp-hosts.txt:

127.0.0.1:{9001...9004}

127.1.2.3
giga.abc.com

Debug printing loaded hosts:

λ warp stat --host=file:warp-hosts.txt
HOSTS: [127.0.0.1:9001 127.0.0.1:9002 127.0.0.1:9003 127.0.0.1:9004 127.1.2.3 giga.abc.com]

λ warp stat --warp-client=file:warp-hosts.txt
hosts [127.0.0.1:9001 127.0.0.1:9002 127.0.0.1:9003 127.0.0.1:9004 127.1.2.3 giga.abc.com]

Slightly more generic version of #297 (and avoids another flag)

Allow file as host input for benchmark targets or clients.

Example `warp-hosts.txt`:

```
127.0.0.1:{9001...9004}

127.1.2.3
giga.abc.com
```

Debug printing loaded hosts:
```
λ warp stat --host=file:warp-hosts.txt
HOSTS: [127.0.0.1:9001 127.0.0.1:9002 127.0.0.1:9003 127.0.0.1:9004 127.1.2.3 giga.abc.com]

λ warp stat --warp-client=file:warp-hosts.txt
hosts [127.0.0.1:9001 127.0.0.1:9002 127.0.0.1:9003 127.0.0.1:9004 127.1.2.3 giga.abc.com]
```

Slightly more generic version of minio#297 (and avoids another flag)
@klauspost klauspost merged commit 5a70e16 into minio:master Jan 28, 2024
9 checks passed
@klauspost klauspost deleted the file-hosts-alternative branch January 28, 2024 15:56
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.

None yet

2 participants