Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/cl/prysm/prysm_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ DISCOVERY_UDP_PORT_NUM = 12000
RPC_PORT_NUM = 4000
HTTP_PORT_NUM = 3500
BEACON_MONITORING_PORT_NUM = 8080
PROFILING_PORT_NUM = 6060

# The min/max CPU/memory that the beacon node can use
BEACON_MIN_CPU = 100
Expand Down Expand Up @@ -235,13 +236,19 @@ def get_beacon_config(
{constants.RPC_PORT_ID: public_ports_for_component[3]}
)
)
public_ports.update(
shared_utils.get_port_specs(
{constants.PROFILING_PORT_ID: public_ports_for_component[4]}
)
)

used_port_assignments = {
constants.TCP_DISCOVERY_PORT_ID: discovery_port,
constants.UDP_DISCOVERY_PORT_ID: discovery_port,
constants.HTTP_PORT_ID: HTTP_PORT_NUM,
constants.METRICS_PORT_ID: BEACON_MONITORING_PORT_NUM,
constants.RPC_PORT_ID: RPC_PORT_NUM,
constants.PROFILING_PORT_ID: PROFILING_PORT_NUM,
}
used_ports = shared_utils.get_port_specs(used_port_assignments)

Expand All @@ -266,8 +273,11 @@ def get_beacon_config(
# vvvvvvvvv METRICS CONFIG vvvvvvvvvvvvvvvvvvvvv
"--disable-monitoring=false",
"--monitoring-host=0.0.0.0",
"--monitoring-port={0}".format(BEACON_MONITORING_PORT_NUM)
# ^^^^^^^^^^^^^^^^^^^ METRICS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--monitoring-port={0}".format(BEACON_MONITORING_PORT_NUM),
# vvvvvvvvv PROFILING CONFIG vvvvvvvvvvvvvvvvvvvvv
"--pprof",
"--pprofaddr=0.0.0.0",
"--pprofport={0}".format(PROFILING_PORT_NUM),
]

# If checkpoint sync is enabled, add the checkpoint sync url
Expand Down
1 change: 1 addition & 0 deletions src/package_io/constants.star
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ RPC_PORT_ID = "rpc"
WS_RPC_PORT_ID = "ws-rpc"
WS_PORT_ID = "ws"
HTTP_PORT_ID = "http"
PROFILING_PORT_ID = "profiling"
VALIDATOR_HTTP_PORT_ID = "http-validator"
METRICS_PORT_ID = "metrics"
ENGINE_RPC_PORT_ID = "engine-rpc"
Expand Down
3 changes: 2 additions & 1 deletion src/shared_utils/shared_utils.star
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ HTTP_APPLICATION_PROTOCOL = "http"
NOT_PROVIDED_APPLICATION_PROTOCOL = ""
NOT_PROVIDED_WAIT = "not-provided-wait"

MAX_PORTS_PER_CL_NODE = 4
MAX_PORTS_PER_CL_NODE = 5
MAX_PORTS_PER_EL_NODE = 5
MAX_PORTS_PER_VC_NODE = 3
MAX_PORTS_PER_ADDITIONAL_SERVICE = 2
Expand Down Expand Up @@ -290,6 +290,7 @@ def get_port_specs(port_assignments):
constants.WS_RPC_PORT_ID,
constants.LITTLE_BIGTABLE_PORT_ID,
constants.WS_PORT_ID,
constants.PROFILING_PORT_ID,
]:
ports.update({port_id: new_port_spec(port, TCP_PROTOCOL)})
elif port_id == constants.UDP_DISCOVERY_PORT_ID:
Expand Down