redisbench-admin 0.10.21__py3-none-any.whl → 0.10.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- redisbench_admin/run_local/args.py +15 -0
- redisbench_admin/run_local/local_db.py +18 -5
- redisbench_admin/run_local/run_local.py +4 -0
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.23.dist-info}/METADATA +1 -1
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.23.dist-info}/RECORD +8 -8
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.23.dist-info}/LICENSE +0 -0
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.23.dist-info}/WHEEL +0 -0
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.23.dist-info}/entry_points.txt +0 -0
|
@@ -8,9 +8,24 @@ import os
|
|
|
8
8
|
from redisbench_admin.run.args import common_run_args
|
|
9
9
|
from redisbench_admin.run.common import REDIS_BINARY
|
|
10
10
|
|
|
11
|
+
FLUSHALL_AT_START = bool(int(os.getenv("FLUSHALL_AT_START", "0")))
|
|
12
|
+
IGNORE_KEYSPACE_ERRORS = bool(int(os.getenv("IGNORE_KEYSPACE_ERRORS", "0")))
|
|
13
|
+
|
|
11
14
|
|
|
12
15
|
def create_run_local_arguments(parser):
|
|
13
16
|
parser = common_run_args(parser)
|
|
14
17
|
parser.add_argument("--port", type=int, default=6379)
|
|
15
18
|
parser.add_argument("--redis-binary", type=str, default=REDIS_BINARY)
|
|
19
|
+
parser.add_argument(
|
|
20
|
+
"--flushall_on_every_test_start",
|
|
21
|
+
type=bool,
|
|
22
|
+
default=FLUSHALL_AT_START,
|
|
23
|
+
help="At the start of every test send a FLUSHALL",
|
|
24
|
+
)
|
|
25
|
+
parser.add_argument(
|
|
26
|
+
"--ignore_keyspace_errors",
|
|
27
|
+
type=bool,
|
|
28
|
+
default=IGNORE_KEYSPACE_ERRORS,
|
|
29
|
+
help="Ignore keyspace check errors. Will still log them as errors",
|
|
30
|
+
)
|
|
16
31
|
return parser
|
|
@@ -46,8 +46,11 @@ def local_db_spin(
|
|
|
46
46
|
required_modules,
|
|
47
47
|
setup_type,
|
|
48
48
|
shard_count,
|
|
49
|
+
flushall_on_every_test_start=False,
|
|
50
|
+
ignore_keyspace_errors=False,
|
|
49
51
|
):
|
|
50
52
|
redis_conns = []
|
|
53
|
+
artifact_version = "n/a"
|
|
51
54
|
result = True
|
|
52
55
|
temporary_dir = tempfile.mkdtemp()
|
|
53
56
|
cluster_api_enabled = False
|
|
@@ -68,7 +71,13 @@ def local_db_spin(
|
|
|
68
71
|
if dataset is not None:
|
|
69
72
|
logging.info("Given this benchmark requires an RDB load will skip it...")
|
|
70
73
|
result = False
|
|
71
|
-
return
|
|
74
|
+
return (
|
|
75
|
+
result,
|
|
76
|
+
artifact_version,
|
|
77
|
+
cluster_api_enabled,
|
|
78
|
+
redis_conns,
|
|
79
|
+
redis_processes,
|
|
80
|
+
)
|
|
72
81
|
else:
|
|
73
82
|
# setup Redis
|
|
74
83
|
# copy the rdb to DB machine
|
|
@@ -152,6 +161,13 @@ def local_db_spin(
|
|
|
152
161
|
r.client_setname("redisbench-admin-standalone")
|
|
153
162
|
redis_conns.append(r)
|
|
154
163
|
|
|
164
|
+
if dataset is None:
|
|
165
|
+
if flushall_on_every_test_start:
|
|
166
|
+
logging.info("Will flush all data at test start...")
|
|
167
|
+
for shard_n, shard_conn in enumerate(redis_conns):
|
|
168
|
+
logging.info(f"Flushing all in shard {shard_n}...")
|
|
169
|
+
shard_conn.flushall()
|
|
170
|
+
|
|
155
171
|
if check_dbconfig_tool_requirement(benchmark_config):
|
|
156
172
|
logging.info("Detected the requirements to load data via client tool")
|
|
157
173
|
local_benchmark_output_filename = "{}/load-data.txt".format(temporary_dir)
|
|
@@ -189,10 +205,7 @@ def local_db_spin(
|
|
|
189
205
|
)
|
|
190
206
|
)
|
|
191
207
|
|
|
192
|
-
dbconfig_keyspacelen_check(
|
|
193
|
-
benchmark_config,
|
|
194
|
-
redis_conns,
|
|
195
|
-
)
|
|
208
|
+
dbconfig_keyspacelen_check(benchmark_config, redis_conns, ignore_keyspace_errors)
|
|
196
209
|
|
|
197
210
|
artifact_version = run_redis_pre_steps(
|
|
198
211
|
benchmark_config, redis_conns[0], required_modules
|
|
@@ -93,6 +93,8 @@ def run_local_command_logic(args, project_name, project_version):
|
|
|
93
93
|
required_modules = args.required_module
|
|
94
94
|
profilers_enabled = args.enable_profilers
|
|
95
95
|
s3_bucket_name = args.s3_bucket_name
|
|
96
|
+
flushall_on_every_test_start = args.flushall_on_every_test_start
|
|
97
|
+
ignore_keyspace_errors = args.ignore_keyspace_errors
|
|
96
98
|
profilers_list = []
|
|
97
99
|
if profilers_enabled:
|
|
98
100
|
profilers_list = args.profilers.split(",")
|
|
@@ -218,6 +220,8 @@ def run_local_command_logic(args, project_name, project_version):
|
|
|
218
220
|
required_modules,
|
|
219
221
|
setup_type,
|
|
220
222
|
shard_count,
|
|
223
|
+
flushall_on_every_test_start,
|
|
224
|
+
ignore_keyspace_errors,
|
|
221
225
|
)
|
|
222
226
|
if result_db_spin is False:
|
|
223
227
|
logging.warning(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: redisbench-admin
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.23
|
|
4
4
|
Summary: Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... ).
|
|
5
5
|
Author: filipecosta90
|
|
6
6
|
Author-email: filipecosta.90@gmail.com
|
|
@@ -205,11 +205,11 @@ redisbench_admin/run_async/log.py,sha256=cD7zfXt0VEmy0b7452HvcAxX_9kVj6Vm213yNdU
|
|
|
205
205
|
redisbench_admin/run_async/render_files.py,sha256=OMPy3-GnU14tQ4HNlF5utOnmzpRAXURwG_h8UDkTmYs,2674
|
|
206
206
|
redisbench_admin/run_async/run_async.py,sha256=g2ZOQqj9vXZYaRyNpJZtgfYyY9tMuRmEv3Hh3qWOUs8,14525
|
|
207
207
|
redisbench_admin/run_local/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
|
|
208
|
-
redisbench_admin/run_local/args.py,sha256=
|
|
208
|
+
redisbench_admin/run_local/args.py,sha256=rtIcyHiAisHgLAZ8Jv902B9fKNCMwGKfp0ea14nziCo,981
|
|
209
209
|
redisbench_admin/run_local/local_client.py,sha256=gwawMDOBrf7m--uyxu8kMZC5LBiLjbUBSKvzVOdOAas,124
|
|
210
|
-
redisbench_admin/run_local/local_db.py,sha256=
|
|
210
|
+
redisbench_admin/run_local/local_db.py,sha256=ZXKV6JDyEmBWrMa6nH_RZpyApTp9piNNIT0dQ-Fmiek,7036
|
|
211
211
|
redisbench_admin/run_local/local_helpers.py,sha256=JyqLW2-Sbm35BXjxxfOB1yK7ADdLfcVrq08NLNdIwac,7026
|
|
212
|
-
redisbench_admin/run_local/run_local.py,sha256=
|
|
212
|
+
redisbench_admin/run_local/run_local.py,sha256=OL_Qla12vZmJ2SjwJMOX3GDeXekpls_ltmyxBeR1bnk,23576
|
|
213
213
|
redisbench_admin/run_remote/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
|
|
214
214
|
redisbench_admin/run_remote/args.py,sha256=vhV87avBwXL8c2QLqrAkIyWD53MYhN06F-3wRv3l5xE,3829
|
|
215
215
|
redisbench_admin/run_remote/consts.py,sha256=bCMkwyeBD-EmOpoHKni7LjWy5WuaxGJhGhqpi4AL0RQ,386
|
|
@@ -235,8 +235,8 @@ redisbench_admin/utils/utils.py,sha256=FLDjhGkW0PWwcu_nlTnIW6aZtHzJGz4LIwvu1CpCa
|
|
|
235
235
|
redisbench_admin/watchdog/__init__.py,sha256=cD7zfXt0VEmy0b7452HvcAxX_9kVj6Vm213yNdUHP20,95
|
|
236
236
|
redisbench_admin/watchdog/args.py,sha256=nKsG1G6ATOZlAMHMtT9u3kXxduKCbejSZ5x8oB_ynZ8,1312
|
|
237
237
|
redisbench_admin/watchdog/watchdog.py,sha256=jFGtm5ktjKuXKWvH7lnmf3pp-ch1WBJUOomXILJMDAg,6158
|
|
238
|
-
redisbench_admin-0.10.
|
|
239
|
-
redisbench_admin-0.10.
|
|
240
|
-
redisbench_admin-0.10.
|
|
241
|
-
redisbench_admin-0.10.
|
|
242
|
-
redisbench_admin-0.10.
|
|
238
|
+
redisbench_admin-0.10.23.dist-info/LICENSE,sha256=AAMtfs82zOOvmG68vILivm6lxi2rcOlGObmA8jzxQvw,10768
|
|
239
|
+
redisbench_admin-0.10.23.dist-info/entry_points.txt,sha256=UUawXk_AS-PlieKJ1QxPQXGsRLb6OW_F0MtmA1W0KE8,113
|
|
240
|
+
redisbench_admin-0.10.23.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
|
241
|
+
redisbench_admin-0.10.23.dist-info/METADATA,sha256=uEBtr3c-EmfiSPpnI8RlZxI5tKjINeDtdlbG3BjdNJc,5336
|
|
242
|
+
redisbench_admin-0.10.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|