Skip to content

Commit 39a34ad

Browse files
Adds default workload profile
Signed-off-by: Elena Kolevska <elena@kolevska.com>
1 parent c1f06e9 commit 39a34ad

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ Override default operations and weights using escaped JSON format:
562562
```bash
563563
# Basic example with equal weights
564564
python main.py run --workload-profile basic_rw \
565-
--operation-weights "{\"SET\": 0.2, \"GET\": 0.2, \"LTRIM\": 0.2, \"LPUSH\": 0.2, \"INCR\": 0.2}"
565+
--operation-weights "{\"SET\": 0.2, \"GET\": 0.2}"
566566

567567
# High throughput with custom mix
568568
python main.py run --workload-profile high_throughput \

cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,7 @@ def _build_config_from_args(kwargs) -> RunnerConfig:
312312

313313

314314
# Build workload config
315-
workload_config = WorkloadConfig(
316-
type="custom",
317-
options={}
318-
)
315+
workload_config = WorkloadProfiles.get_profile("basic_rw")
319316

320317
# If a profile is specified, use it. If any additional options have been specified, they will override the defaults
321318
if kwargs['workload_profile']:

redis_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ def _connect_standalone(self):
174174
"""Connect to standalone Redis instance."""
175175
start_time = time.time()
176176

177-
print("\n\n---- Args:" + str(self._pool_kwargs))
178-
179177
if self.config.maintenance_notifications_enabled:
180178
# Build maintenance events config, only passing relaxed_timeouts if not None
181179
maintenance_config_kwargs = {"enabled": self.config.maintenance_notifications_enabled}

0 commit comments

Comments
 (0)