From fb84787694faa86872828b92529f51e6c9ac7d44 Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Mon, 8 Jan 2024 12:07:07 +0100 Subject: [PATCH] fix: bump max mem limit for nimbus on holesky (#439) --- src/cl/nimbus/nimbus_launcher.star | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cl/nimbus/nimbus_launcher.star b/src/cl/nimbus/nimbus_launcher.star index 4c1ad4f11..55a33bc5a 100644 --- a/src/cl/nimbus/nimbus_launcher.star +++ b/src/cl/nimbus/nimbus_launcher.star @@ -21,7 +21,7 @@ BEACON_METRICS_PORT_NUM = 8008 # The min/max CPU/memory that the beacon node can use BEACON_MIN_CPU = 50 BEACON_MAX_CPU = 1000 -BEACON_MIN_MEMORY = 128 +BEACON_MIN_MEMORY = 256 BEACON_MAX_MEMORY = 1024 DEFAULT_BEACON_IMAGE_ENTRYPOINT = ["nimbus_beacon_node"] @@ -149,6 +149,13 @@ def launch( participant_log_level, global_log_level, NIMBUS_LOG_LEVELS ) + # Holesky has a bigger memory footprint, so it needs more memory + if launcher.network == "holesky": + holesky_beacon_memory_limit = 4096 + bn_max_mem = ( + int(bn_max_mem) if int(bn_max_mem) > 0 else holesky_beacon_memory_limit + ) + bn_min_cpu = int(bn_min_cpu) if int(bn_min_cpu) > 0 else BEACON_MIN_CPU bn_max_cpu = int(bn_max_cpu) if int(bn_max_cpu) > 0 else BEACON_MAX_CPU bn_min_mem = int(bn_min_mem) if int(bn_min_mem) > 0 else BEACON_MIN_MEMORY