Skip to content

Commit

Permalink
fix: bump max mem limit for nimbus on holesky (ethpandaops#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Jan 8, 2024
1 parent 5584cc8 commit fb84787
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cl/nimbus/nimbus_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fb84787

Please sign in to comment.