From 3d7d902da4c2abc1b8f1ae181b67ccfaa9a03ebd Mon Sep 17 00:00:00 2001 From: "anatoly@nspcc.ru" Date: Tue, 2 Aug 2022 13:51:48 +0300 Subject: [PATCH] fix policy rules Signed-off-by: anatoly@nspcc.ru --- scenarios/files/policy.json | 10 +++++----- scenarios/s3.js | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/scenarios/files/policy.json b/scenarios/files/policy.json index 2248925..1e64b81 100644 --- a/scenarios/files/policy.json +++ b/scenarios/files/policy.json @@ -1,7 +1,7 @@ { - "load-1-1": "REP 1 IN X CBF 1 SELECT 1 FROM * AS X", - "load-1-2": "REP 1 IN X CBF 1 SELECT 2 FROM * AS X", - "load-1-3": "REP 1 IN X CBF 1 SELECT 3 FROM * AS X", - "load-1-4": "REP 1 IN X CBF 1 SELECT 4 FROM * AS X", - "node-off": "REP 2 IN X CBF 2 SELECT 2 FROM * AS X" + "load-1-1": "REP 1 CBF 1 SELECT 1 FROM *", + "load-1-2": "REP 1 CBF 1 SELECT 2 FROM *", + "load-1-3": "REP 1 CBF 1 SELECT 3 FROM *", + "load-1-4": "REP 1 CBF 1 SELECT 4 FROM *", + "node-off": "REP 2 CBF 2 SELECT 2 FROM *" } diff --git a/scenarios/s3.js b/scenarios/s3.js index 8ef01cb..1178861 100644 --- a/scenarios/s3.js +++ b/scenarios/s3.js @@ -17,6 +17,8 @@ const read_size = JSON.parse(open(__ENV.PREGEN_JSON)).obj_size; Format write:obj_size: * write - write operations in percent, relative to read operations * duration - duration in seconds + + OBJ_NAME - this name will be used for all write operations instead of randow generation in case of declared. */ const [ write, duration ] = __ENV.PROFILE.split(':');