Skip to content

Commit 42de8c3

Browse files
authored
chore(tiering_test): tune memory settings to be below 6GB (#5345)
Signed-off-by: Roman Gershman <[email protected]>
1 parent d2055a0 commit 42de8c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/dragonfly/tiering_test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,24 +96,25 @@ async def run(sub_ops):
9696
{
9797
"proactor_threads": 2,
9898
"tiered_prefix": "/tmp/tiered/backing_master",
99-
"maxmemory": "4G",
99+
"maxmemory": "2.0G",
100100
"cache_mode": True,
101-
"tiered_offload_threshold": "0.2",
101+
"tiered_offload_threshold": "0.1",
102+
"tiered_low_memory_factor": "0.2",
102103
"tiered_storage_write_depth": 100,
103104
}
104105
)
105106
async def test_full_sync(async_client: aioredis.Redis, df_factory: DflyInstanceFactory):
106107
replica = df_factory.create(
107108
proactor_threads=2,
108109
cache_mode=True,
109-
maxmemory="4G",
110+
maxmemory="2.0G",
110111
tiered_prefix="/tmp/tiered/backing_replica",
111112
tiered_offload_threshold="0.2",
112113
tiered_storage_write_depth=1000,
113114
)
114115
replica.start()
115116
replica_client = replica.client()
116-
await async_client.execute_command("debug", "populate", "3000000", "key", "2000")
117+
await async_client.execute_command("debug", "populate", "1700000", "key", "2000")
117118
await replica_client.replicaof(
118119
"localhost", async_client.connection_pool.connection_kwargs["port"]
119120
)

0 commit comments

Comments
 (0)