From 2d26ac766fd1e6c12000c5e8b0bd2d55803e78a0 Mon Sep 17 00:00:00 2001 From: Anton Nikiforov Date: Thu, 22 Feb 2024 16:30:09 +0300 Subject: [PATCH] [#130] Update documentation Signed-off-by: Anton Nikiforov --- scenarios/run_scenarios.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scenarios/run_scenarios.md b/scenarios/run_scenarios.md index 9954360..5dcb733 100644 --- a/scenarios/run_scenarios.md +++ b/scenarios/run_scenarios.md @@ -71,11 +71,12 @@ $ ./scenarios/preset/preset_grpc.py --size 1024 --containers 1 --out grpc.json - 2. Execute scenario with options: ```shell -$ ./k6 run -e DURATION=60 -e WRITE_OBJ_SIZE=8192 -e READERS=20 -e WRITERS=20 -e DELETERS=30 -e DELETE_AGE=10 -e REGISTRY_FILE=registry.bolt -e CONFIG_FILE=/path/to/config.yaml -e PREGEN_JSON=./grpc.json scenarios/local.js +$ ./k6 run -e DURATION=60 -e WRITE_OBJ_SIZE=8192 -e READERS=20 -e WRITERS=20 -e DELETERS=30 -e DELETE_AGE=10 -e REGISTRY_FILE=registry.bolt -e CONFIG_FILE=/path/to/config.yaml -e CONFIG_DIR=/path/to/dir/ -e PREGEN_JSON=./grpc.json scenarios/local.js ``` Options (in addition to the common options): * `CONFIG_FILE` - path to the local configuration file used for the storage node. Only the storage configuration section is used. + * `CONFIG_DIR` - path to the folder with local configuration files used for the storage node. * `DELETERS` - number of VUs performing delete operations (using deleters requires that options `DELETE_AGE` and `REGISTRY_FILE` are specified as well). * `DELETE_AGE` - age of object in seconds before which it can not be deleted. This parameter can be used to control how many objects we have in the system under load. * `MAX_TOTAL_SIZE_GB` - if specified, max payload size in GB of the storage engine. If the storage engine is already full, no new objects will be saved. @@ -178,7 +179,7 @@ After this, the `pregen.json` file will contain a `containers` list field the sa 3. Execute the scenario with the desired options. For example: ```shell -$ ./k6 run -e DURATION=60 -e WRITE_OBJ_SIZE=8192 -e READERS=20 -e WRITERS=20 -e CONFIG_FILE=/path/to/node/config.yml -e PREGEN_JSON=pregen.json scenarios/s3local.js +$ ./k6 run -e DURATION=60 -e WRITE_OBJ_SIZE=8192 -e READERS=20 -e WRITERS=20 -e CONFIG_FILE=/path/to/node/config.yml -e CONFIG_DIR=/path/to/dir/ -e PREGEN_JSON=pregen.json scenarios/s3local.js ``` Note that the `s3local` scenario currently does not support deleters.