Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed loadtest configuration #84

Merged
merged 20 commits into from
Apr 5, 2024
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: 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
Loading