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
2 changes: 2 additions & 0 deletions spartan/environments/tps-scenario.env
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ PROVER_RESOURCE_PROFILE="hi-tps"
PROVER_AGENT_POLL_INTERVAL_MS=10000
WAIT_FOR_PROVER_DEPLOY=false

P2P_PUBLIC_IP=false

RUN_TESTS=false

P2P_MAX_TX_POOL_SIZE=1000000000
Expand Down
2 changes: 1 addition & 1 deletion spartan/scripts/deploy_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ if [[ "${CLUSTER}" == "kind" ]]; then
P2P_PUBLIC_IP=false
else
P2P_NODEPORT_ENABLED=false
P2P_PUBLIC_IP=true
P2P_PUBLIC_IP=${P2P_PUBLIC_IP:-true}
fi

cat > "${DEPLOY_AZTEC_INFRA_DIR}/terraform.tfvars" << EOF
Expand Down
9 changes: 4 additions & 5 deletions spartan/terraform/deploy-aztec-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ locals {
p2p = { publicIP = var.P2P_PUBLIC_IP }
}
}
})], local.is_kind ? [yamlencode({
})], local.is_kind ? [yamlencode({
agent = {
nodeSelector = null
affinity = null
Expand Down Expand Up @@ -335,9 +335,9 @@ locals {
"broker.node.logLevel" = var.LOG_LEVEL
"broker.node.env.BOOTSTRAP_NODES" = "asdf"
"broker.node.env.PROVER_BROKER_DEBUG_REPLAY_ENABLED" = var.PROVER_BROKER_DEBUG_REPLAY_ENABLED
"agent.node.image.repository" = local.prover_agent_image.repository
"agent.node.image.tag" = local.prover_agent_image.tag
"agent.node.env.CRS_PATH" = "/usr/src/crs"
"agent.node.image.repository" = local.prover_agent_image.repository
"agent.node.image.tag" = local.prover_agent_image.tag
"agent.node.env.CRS_PATH" = "/usr/src/crs"
"agent.node.proverRealProofs" = var.PROVER_REAL_PROOFS
"agent.node.env.PROVER_AGENT_POLL_INTERVAL_MS" = var.PROVER_AGENT_POLL_INTERVAL_MS
"agent.replicaCount" = var.PROVER_REPLICAS
Expand Down Expand Up @@ -416,7 +416,6 @@ locals {
})]

custom_settings = merge({
"nodeType" = "rpc"
"replicaCount" = var.RPC_REPLICAS
"service.p2p.nodePortEnabled" = var.P2P_NODEPORT_ENABLED
"service.p2p.announcePort" = local.p2p_port_rpc
Expand Down
11 changes: 11 additions & 0 deletions spartan/terraform/deploy-aztec-infra/values/full-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ node:
env:
OTEL_SERVICE_NAME: "full-node"

preStartScript: |
if [ -n "${BOOT_NODE_HOST:-}" ]; then
until curl --silent --head --fail "${BOOT_NODE_HOST}/status" > /dev/null; do
echo "Waiting for boot node..."
sleep 1
done
echo "Boot node is ready!"

export BOOTSTRAP_NODES=$(curl -X POST -H "content-type: application/json" --data '{"method": "bootstrap_getEncodedEnr"}' $BOOT_NODE_HOST | jq -r .result)
fi
Comment on lines +6 to +15
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like full nodes did not wait for the boot node to be up


startCmd:
- --node
- --archiver
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node:
hostNetwork: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use hostNetwork: true with chaos mesh

node:
enableInspector: true
nodeJsOptions:
Expand Down
2 changes: 1 addition & 1 deletion spartan/terraform/deploy-aztec-infra/values/rpc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nodeType: "rpc-node"
node:
nodeType: "rpc-node"
env:
OTEL_SERVICE_NAME: "node"
AWS_ACCESS_KEY_ID: ""
Expand Down
Loading