From 93dfebf31c07b09a68166eb6fc8ab923df049103 Mon Sep 17 00:00:00 2001 From: Alberto Soutullo Date: Fri, 26 Sep 2025 19:05:12 +0200 Subject: [PATCH] Idle light (#22) * Add idle_light scenario * Update src/benchmark_scenarios/private_chats.py Co-authored-by: PearsonWhite --------- Co-authored-by: PearsonWhite --- src/benchmark_scenarios/private_chats.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/benchmark_scenarios/private_chats.py b/src/benchmark_scenarios/private_chats.py index 90a683d..91edd2d 100644 --- a/src/benchmark_scenarios/private_chats.py +++ b/src/benchmark_scenarios/private_chats.py @@ -27,3 +27,22 @@ async def idle_relay(): logger.info("Shutting down node connections") await asyncio.gather(*[node.shutdown() for node in relay_nodes.values()]) logger.info("Finished idle_relay") + + +async def idle_light(): + # 1 light node alice + # 100 light nodes - friends + # friends have accepted contact request with alice + + kube_utils.setup_kubernetes_client() + backend_light_pods = kube_utils.get_pods("status-backend-light", "status-go-test") + light_nodes = await initialize_nodes_application(backend_light_pods) + + alice = "status-backend-light-0" + friends = [key for key in light_nodes.keys() if key != alice] + requests_made = await send_friend_requests(light_nodes, [alice], friends) + _ = await accept_friend_requests(light_nodes, requests_made) + + logger.info("Shutting down node connections") + await asyncio.gather(*[node.shutdown() for node in light_nodes.values()]) + logger.info("Finished idle_light")