forked from TrueCloudLab/xk6-frostfs
[#37] run_scenarios.md: K6 doc updates
Signed-off-by: Vladislav Karakozov <v.karakozov@yadro.com>
This commit is contained in:
parent
9c08b45619
commit
97fbe9af82
1 changed files with 8 additions and 4 deletions
|
@ -24,9 +24,10 @@ Examples of how to use these options are provided below for each scenario.
|
||||||
The tests will use all pre-created containers for PUT operations and all pre-created objects for READ operations.
|
The tests will use all pre-created containers for PUT operations and all pre-created objects for READ operations.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ ./scenarios/preset/preset_grpc.py --size 1024 --containers 1 --out grpc.json --endpoint host1:8080 --preload_obj 500
|
$ ./scenarios/preset/preset_grpc.py --size 1024 --containers 1 --out grpc.json --endpoint host1:8080 --preload_obj 500 --policy "REP 2 IN X CBF 1 SELECT 2 FROM * AS X"
|
||||||
```
|
```
|
||||||
|
* `--policy` - container policy. If parameter is omitted, the default value is "REP 1 IN X CBF 1 SELECT 1 FROM * AS X".
|
||||||
|
* `--update` - container id. Specify the existing container id, if parameter is omitted the new container will be created.
|
||||||
2. Execute scenario with options:
|
2. Execute scenario with options:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
@ -62,7 +63,7 @@ Options (in addition to the common options):
|
||||||
1. Create s3 credentials:
|
1. Create s3 credentials:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ neofs-s3-authmate issue-secret --wallet wallet.json --peer host1:8080 --gate-public-key 03d33a2cc7b8daaa5a3df3fccf065f7cf1fc6a3279efc161fcec512dcc0c1b2277 --gate-public-key 03ff0ad212e10683234442530bfd71d0bb18c3fbd6459aba768eacf158b0c359a2 --gate-public-key 033ae03ff30ed3b6665af69955562cfc0eae18d50e798ab31f054ee22e32fee993 --gate-public-key 02127c7498de0765d2461577c9d4f13f916eefd1884896183e6de0d9a85d17f2fb --bearer-rules rules.json --container-placement-policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X"
|
$ neofs-s3-authmate issue-secret --wallet wallet.json --peer host1:8080 --gate-public-key 03d33a2cc7b8daaa5a3df3fccf065f7cf1fc6a3279efc161fcec512dcc0c1b2277 --gate-public-key 03ff0ad212e10683234442530bfd71d0bb18c3fbd6459aba768eacf158b0c359a2 --gate-public-key 033ae03ff30ed3b6665af69955562cfc0eae18d50e798ab31f054ee22e32fee993 --gate-public-key 02127c7498de0765d2461577c9d4f13f916eefd1884896183e6de0d9a85d17f2fb --bearer-rules rules.json --container-placement-policy "REP 1 IN X CBF 1 SELECT 1 FROM * AS X" --container-policy ./scenarios/files/policy.json
|
||||||
|
|
||||||
Enter password for wallet.json >
|
Enter password for wallet.json >
|
||||||
{
|
{
|
||||||
|
@ -80,8 +81,9 @@ Run `aws configure`.
|
||||||
The tests will use all pre-created buckets for PUT operations and all pre-created objects for READ operations.
|
The tests will use all pre-created buckets for PUT operations and all pre-created objects for READ operations.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ ./scenarios/preset/preset_s3.py --size 1024 --buckets 1 --out s3.json --endpoint host1:8084 --preload_obj 500
|
$ ./scenarios/preset/preset_s3.py --size 1024 --buckets 1 --out s3_1024kb.json --endpoint host1:8084 --preload_obj 500 --location load-1-4
|
||||||
```
|
```
|
||||||
|
* '--location' - specify the name of container policy (from policy.json file). It's important to run 'aws configure' each time when the policy file has been changed to pick up the latest policies.
|
||||||
|
|
||||||
3. Execute scenario with options:
|
3. Execute scenario with options:
|
||||||
|
|
||||||
|
@ -109,6 +111,8 @@ To verify stored objects execute scenario with options:
|
||||||
Scenario picks up all objects in `created` status. If object is stored correctly, its' status will be changed into `verified`. If object does not exist or its' data is corrupted, then the status will be changed into `invalid`.
|
Scenario picks up all objects in `created` status. If object is stored correctly, its' status will be changed into `verified`. If object does not exist or its' data is corrupted, then the status will be changed into `invalid`.
|
||||||
Scenario ends as soon as all objects are checked or time limit is exceeded.
|
Scenario ends as soon as all objects are checked or time limit is exceeded.
|
||||||
|
|
||||||
|
Running `VERIFY` scenario modifies status of objects in `REGISTRY_FILE`. Objects that have been verified once won't be verified again. If you would like to verify the same set of objects multiple times, you can create a copy of `REGISTRY_FILE` produced by the `LOAD` scenario and run `VERIFY` against the copy of the file.
|
||||||
|
|
||||||
Objects produced by HTTP scenario will be verified via gRPC endpoints.
|
Objects produced by HTTP scenario will be verified via gRPC endpoints.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
Loading…
Reference in a new issue