Skip to content

Commit 1cdf5fd

Browse files
Selective query 1% and 5%; Decrease counting entities interval
1 parent 29f2b2c commit 1cdf5fd

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

stress-tests/stress/l3/locustfile.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ def on_test_stop(environment, **kwargs):
9595

9696

9797
class ArkivL3User(JsonRpcUser):
98-
wait_time = constant_pacing(10)
99-
10098
def __init__(self, *args, **kwargs):
10199
super().__init__(*args, **kwargs)
102100
self.unique_ids = set()
@@ -444,6 +442,14 @@ def selective_query(self, percent: int = 50):
444442
)
445443
raise
446444

445+
@task(1)
446+
def selective_query_1Percent(self):
447+
self.selective_query(1)
448+
449+
@task(1)
450+
def selective_query_5Percent(self):
451+
self.selective_query(5)
452+
447453
@task(1)
448454
def selective_query_20Percent(self):
449455
self.selective_query(20)

stress-tests/stress/tools/entity_count_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class EntityCountUpdater:
1313

1414
instance = None
1515

16-
def __init__(self, environment, update_interval: int = 3):
16+
def __init__(self, environment, update_interval: int = 10):
1717
"""
1818
Initialize the entity count updater.
1919

0 commit comments

Comments
 (0)