zb: pick client IPs from a pool, closes #472

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
Petu Eusebiu
2022-03-23 17:22:45 +02:00
committed by Ramkumar Chinchani
parent a5e091e3d2
commit ca8b866c46
3 changed files with 154 additions and 114 deletions
+23 -5
View File
@@ -1,11 +1,29 @@
# `zb`
`zb` is a registry benchmarking tool which can run against any [distribution spec](https://github.com/opencontainers/distribution-spec) comformant registry.
## `zb` is a registry benchmarking tool which can run against any [distribution spec](https://github.com/opencontainers/distribution-spec) comformant registry.
-n : total number of requests
-c : number of concurrent clients performing (n/c) requests per client
-d : working dir to store test data
-A : BASIC authentication in `username:passwd` format
```
Usage:
zb [options] <url> [flags]
Flags:
-A, --auth-creds string Use colon-separated BASIC auth creds
-c, --concurrency int Number of multiple requests to make at a time (default 1)
-h, --help help for zb
-o, --output-format string Output format of test results: stdout (default), json, ci-cd
-r, --repo string Use specified repo on remote registry for test data
-n, --requests int Number of requests to perform (default 1)
-s, --src-cidr string Use specified cidr to obtain ips to make requests from, src-ips and src-cidr are mutually exclusive
-i, --src-ips string Use colon-separated ips to make requests from, src-ips and src-cidr are mutually exclusive
-v, --version Show the version and exit
-d, --working-dir string Use specified directory to store test data
```
## Command example
```
./bin/zb-linux-amd64 -c 10 -n 100 --src-cidr 127.0.0.0/8 -A user:pass http://localhost:8080
```
# References