Skip to content

Commit

Permalink
Merge branch 'main' into denis/review-1
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkolegov committed Apr 5, 2024
2 parents e6cefcf + dda1323 commit 5426e0a
Show file tree
Hide file tree
Showing 16 changed files with 270 additions and 382 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/load_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ on:
required: false
type: number
default: 100
validators:
description: "Amount of validator nodes to launch (<= nodes)"
required: false
type: number
default: 100
peers:
description: "Amount of gossipnet peers each node should have"
required: false
type: number
default: 2
node_port:
description: "Executor port number"
required: false
Expand All @@ -21,6 +31,8 @@ on:

env:
NUM_INSTANCES: ${{ github.event.inputs.num_instances || '100' }}
VALIDATORS: ${{ github.event.inputs.validators || github.event.inputs.num_instances || '100' }}
PEERS: ${{ github.event.inputs.peers || '2' }}
NODE_PORT: ${{ github.event.inputs.node_port || '8080' }}
METRICS_PORT: ${{ github.event.inputs.metrics_port || '8081' }}
VM_AUTH_USERNAME: ${{ secrets.VM_AUTH_USERNAME }}
Expand Down Expand Up @@ -121,6 +133,8 @@ jobs:
cargo run -p zksync_consensus_tools \
--bin localnet_config -- \
--input-addrs ips_prts.txt \
--validator-count ${{ env.VALIDATORS }} \
--peer-count ${{ env.PEERS }} \
--metrics-server-port ${{ env.METRICS_PORT }} \
--output-dir artifacts/node_configs
Expand Down
1 change: 1 addition & 0 deletions infrastructure/loadtests/compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ resource "google_compute_instance" "zksync_bft_node" {
boot_disk {
initialize_params {
image = data.google_compute_image.ubuntu.self_link
size = 30
}
}

Expand Down
Loading

0 comments on commit 5426e0a

Please sign in to comment.