redisbench-admin 0.10.21__py3-none-any.whl → 0.10.22__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 +8 -0
- redisbench_admin/run_local/local_db.py +16 -1
- redisbench_admin/run_local/run_local.py +2 -0
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.22.dist-info}/METADATA +1 -1
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.22.dist-info}/RECORD +8 -8
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.22.dist-info}/LICENSE +0 -0
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.22.dist-info}/WHEEL +0 -0
- {redisbench_admin-0.10.21.dist-info → redisbench_admin-0.10.22.dist-info}/entry_points.txt +0 -0
|
@@ -8,9 +8,17 @@ 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
|
+
|
|
11
13
|
|
|
12
14
|
def create_run_local_arguments(parser):
|
|
13
15
|
parser = common_run_args(parser)
|
|
14
16
|
parser.add_argument("--port", type=int, default=6379)
|
|
15
17
|
parser.add_argument("--redis-binary", type=str, default=REDIS_BINARY)
|
|
18
|
+
parser.add_argument(
|
|
19
|
+
"--flushall_on_every_test_start",
|
|
20
|
+
type=bool,
|
|
21
|
+
default=FLUSHALL_AT_START,
|
|
22
|
+
help="At the start of every test send a FLUSHALL",
|
|
23
|
+
)
|
|
16
24
|
return parser
|
|
@@ -46,8 +46,10 @@ def local_db_spin(
|
|
|
46
46
|
required_modules,
|
|
47
47
|
setup_type,
|
|
48
48
|
shard_count,
|
|
49
|
+
flushall_on_every_test_start=False,
|
|
49
50
|
):
|
|
50
51
|
redis_conns = []
|
|
52
|
+
artifact_version = "n/a"
|
|
51
53
|
result = True
|
|
52
54
|
temporary_dir = tempfile.mkdtemp()
|
|
53
55
|
cluster_api_enabled = False
|
|
@@ -68,7 +70,13 @@ def local_db_spin(
|
|
|
68
70
|
if dataset is not None:
|
|
69
71
|
logging.info("Given this benchmark requires an RDB load will skip it...")
|
|
70
72
|
result = False
|
|
71
|
-
return
|
|
73
|
+
return (
|
|
74
|
+
result,
|
|
75
|
+
artifact_version,
|
|
76
|
+
cluster_api_enabled,
|
|
77
|
+
redis_conns,
|
|
78
|
+
redis_processes,
|
|
79
|
+
)
|
|
72
80
|
else:
|
|
73
81
|
# setup Redis
|
|
74
82
|
# copy the rdb to DB machine
|
|
@@ -152,6 +160,13 @@ def local_db_spin(
|
|
|
152
160
|
r.client_setname("redisbench-admin-standalone")
|
|
153
161
|
redis_conns.append(r)
|
|
154
162
|
|
|
163
|
+
if dataset is None:
|
|
164
|
+
if flushall_on_every_test_start:
|
|
165
|
+
logging.info("Will flush all data at test start...")
|
|
166
|
+
for shard_n, shard_conn in enumerate(redis_conns):
|
|
167
|
+
logging.info(f"Flushing all in shard {shard_n}...")
|
|
168
|
+
shard_conn.flushall()
|
|
169
|
+
|
|
155
170
|
if check_dbconfig_tool_requirement(benchmark_config):
|
|
156
171
|
logging.info("Detected the requirements to load data via client tool")
|
|
157
172
|
local_benchmark_output_filename = "{}/load-data.txt".format(temporary_dir)
|
|
@@ -93,6 +93,7 @@ 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
|
|
96
97
|
profilers_list = []
|
|
97
98
|
if profilers_enabled:
|
|
98
99
|
profilers_list = args.profilers.split(",")
|
|
@@ -218,6 +219,7 @@ def run_local_command_logic(args, project_name, project_version):
|
|
|
218
219
|
required_modules,
|
|
219
220
|
setup_type,
|
|
220
221
|
shard_count,
|
|
222
|
+
flushall_on_every_test_start,
|
|
221
223
|
)
|
|
222
224
|
if result_db_spin is False:
|
|
223
225
|
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.22
|
|
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=WrJtKkQeaYkdDScgLPMXIOo6QdTAWh6ziXe-EVPpris,702
|
|
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=l2qzR38TmV-tCQwpDJchjFcSAr7gnpW-kkbOi7HRg6Y,7001
|
|
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=Kzq0WjH7OmxD6RQt7RDynDNdhJ2fAa8i_mCtny9cmMQ,23455
|
|
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.22.dist-info/LICENSE,sha256=AAMtfs82zOOvmG68vILivm6lxi2rcOlGObmA8jzxQvw,10768
|
|
239
|
+
redisbench_admin-0.10.22.dist-info/entry_points.txt,sha256=UUawXk_AS-PlieKJ1QxPQXGsRLb6OW_F0MtmA1W0KE8,113
|
|
240
|
+
redisbench_admin-0.10.22.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
|
241
|
+
redisbench_admin-0.10.22.dist-info/METADATA,sha256=lEpx709afWMCeTYmbiwjafpBsifuAqqL5eZXVjmq3wI,5336
|
|
242
|
+
redisbench_admin-0.10.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|