From 2c6036e28d52f41072a2fbfd64134ecf05c1fcb1 Mon Sep 17 00:00:00 2001 From: samliok Date: Mon, 30 Sep 2024 16:36:46 -0400 Subject: [PATCH 1/4] update spam script --- examples/morpheusvm/.bashrc | 0 examples/morpheusvm/scripts/deploy.devnet.sh | 9 +++++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 examples/morpheusvm/.bashrc diff --git a/examples/morpheusvm/.bashrc b/examples/morpheusvm/.bashrc new file mode 100644 index 0000000000..e69de29bb2 diff --git a/examples/morpheusvm/scripts/deploy.devnet.sh b/examples/morpheusvm/scripts/deploy.devnet.sh index 9466306698..90ef9c521d 100755 --- a/examples/morpheusvm/scripts/deploy.devnet.sh +++ b/examples/morpheusvm/scripts/deploy.devnet.sh @@ -34,6 +34,7 @@ if ! command -v go >/dev/null 2>&1 ; then echo -e "${RED}golang is not installed. exiting...${NC}" exit 1 fi +# added the profile because of perms issues if ! aws sts get-caller-identity >/dev/null 2>&1 ; then echo -e "${RED}aws credentials not set. exiting...${NC}" exit 1 @@ -42,14 +43,13 @@ fi # Set AvalancheGo Build (should have canPop disabled) AVALANCHEGO_COMMIT=29d8a7b11aa8dbaff90ea4d8e1d41524a593f68a -# Create temporary directory for the deployment +# Create temporary directory for the TMPDIR=/tmp/morpheusvm-deploy rm -rf $TMPDIR && mkdir -p $TMPDIR echo -e "${YELLOW}set working directory:${NC} $TMPDIR" # Install avalanche-cli -LOCAL_CLI_COMMIT=bd174d7620be44dc91dee9415c71142f59fa9df2 -REMOTE_CLI_COMMIT=v1.6.2 +LOCAL_CLI_COMMIT=61860a1346d08796d46a149e2a99694243970822 cd $TMPDIR git clone https://github.com/ava-labs/avalanche-cli cd avalanche-cli @@ -194,7 +194,8 @@ trap cleanup SIGINT # # It is not recommended to use an instance with burstable network performance. echo -e "${YELLOW}creating devnet${NC}" -$TMPDIR/avalanche node devnet wiz ${CLUSTER} ${VMID} --aws --node-type c7g.8xlarge --aws-volume-type=io2 --aws-volume-iops=2500 --aws-volume-size=100 --num-apis 1,1,1,1,1 --num-validators 10,10,10,10,10 --region us-west-2,us-east-1,ap-south-1,ap-northeast-1,eu-west-1 --use-static-ip=false --auto-replace-keypair --enable-monitoring --default-validator-params --custom-avalanchego-version $AVALANCHEGO_COMMIT --custom-vm-repo-url="https://www.github.com/ava-labs/hypersdk" --custom-vm-branch $VM_COMMIT --custom-vm-build-script="examples/morpheusvm/scripts/build.sh" --custom-subnet=true --subnet-genesis="${TMPDIR}/morpheusvm.genesis" --subnet-config="${TMPDIR}/morpheusvm.genesis" --chain-config="${TMPDIR}/morpheusvm.config" --node-config="${TMPDIR}/node.config" --remote-cli-version $REMOTE_CLI_COMMIT --add-grafana-dashboard="${TMPDIR}/hypersdk/examples/morpheusvm/grafana.json" +# TODO: change back to 10 +$TMPDIR/avalanche node devnet wiz ${CLUSTER} ${VMID} --aws --node-type c7g.8xlarge --aws-volume-type=io2 --aws-volume-iops=2500 --aws-volume-size=100 --num-apis 1,1,1,1,1 --num-validators 1,1,1,1,1 --region us-west-2,us-east-1,ap-south-1,ap-northeast-1,eu-west-1 --use-static-ip=false --auto-replace-keypair --enable-monitoring --default-validator-params --custom-avalanchego-version $AVALANCHEGO_COMMIT --custom-vm-repo-url="https://www.github.com/ava-labs/hypersdk" --custom-vm-branch $VM_COMMIT --custom-vm-build-script="examples/morpheusvm/scripts/build.sh" --custom-subnet=true --subnet-genesis="${TMPDIR}/morpheusvm.genesis" --subnet-config="${TMPDIR}/morpheusvm.genesis" --chain-config="${TMPDIR}/morpheusvm.config" --node-config="${TMPDIR}/node.config" --add-grafana-dashboard="${TMPDIR}/hypersdk/examples/morpheusvm/grafana.json" EPOCH_WAIT_START=$(date +%s) # Import the cluster into morpheus-cli for local interaction From 73bdad8fdc6ebd8cd8baba717e3a88d6e2abfd47 Mon Sep 17 00:00:00 2001 From: samliok Date: Mon, 30 Sep 2024 16:38:42 -0400 Subject: [PATCH 2/4] reset numbers --- examples/morpheusvm/scripts/deploy.devnet.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/morpheusvm/scripts/deploy.devnet.sh b/examples/morpheusvm/scripts/deploy.devnet.sh index 90ef9c521d..eb66aa791f 100755 --- a/examples/morpheusvm/scripts/deploy.devnet.sh +++ b/examples/morpheusvm/scripts/deploy.devnet.sh @@ -34,7 +34,7 @@ if ! command -v go >/dev/null 2>&1 ; then echo -e "${RED}golang is not installed. exiting...${NC}" exit 1 fi -# added the profile because of perms issues + if ! aws sts get-caller-identity >/dev/null 2>&1 ; then echo -e "${RED}aws credentials not set. exiting...${NC}" exit 1 @@ -43,7 +43,7 @@ fi # Set AvalancheGo Build (should have canPop disabled) AVALANCHEGO_COMMIT=29d8a7b11aa8dbaff90ea4d8e1d41524a593f68a -# Create temporary directory for the +# Create temporary directory for the deployment TMPDIR=/tmp/morpheusvm-deploy rm -rf $TMPDIR && mkdir -p $TMPDIR echo -e "${YELLOW}set working directory:${NC} $TMPDIR" @@ -195,7 +195,7 @@ trap cleanup SIGINT # It is not recommended to use an instance with burstable network performance. echo -e "${YELLOW}creating devnet${NC}" # TODO: change back to 10 -$TMPDIR/avalanche node devnet wiz ${CLUSTER} ${VMID} --aws --node-type c7g.8xlarge --aws-volume-type=io2 --aws-volume-iops=2500 --aws-volume-size=100 --num-apis 1,1,1,1,1 --num-validators 1,1,1,1,1 --region us-west-2,us-east-1,ap-south-1,ap-northeast-1,eu-west-1 --use-static-ip=false --auto-replace-keypair --enable-monitoring --default-validator-params --custom-avalanchego-version $AVALANCHEGO_COMMIT --custom-vm-repo-url="https://www.github.com/ava-labs/hypersdk" --custom-vm-branch $VM_COMMIT --custom-vm-build-script="examples/morpheusvm/scripts/build.sh" --custom-subnet=true --subnet-genesis="${TMPDIR}/morpheusvm.genesis" --subnet-config="${TMPDIR}/morpheusvm.genesis" --chain-config="${TMPDIR}/morpheusvm.config" --node-config="${TMPDIR}/node.config" --add-grafana-dashboard="${TMPDIR}/hypersdk/examples/morpheusvm/grafana.json" +$TMPDIR/avalanche node devnet wiz ${CLUSTER} ${VMID} --aws --node-type c7g.8xlarge --aws-volume-type=io2 --aws-volume-iops=2500 --aws-volume-size=100 --num-apis 10,10,10,10,10 --num-validators 1,1,1,1,1 --region us-west-2,us-east-1,ap-south-1,ap-northeast-1,eu-west-1 --use-static-ip=false --auto-replace-keypair --enable-monitoring --default-validator-params --custom-avalanchego-version $AVALANCHEGO_COMMIT --custom-vm-repo-url="https://www.github.com/ava-labs/hypersdk" --custom-vm-branch $VM_COMMIT --custom-vm-build-script="examples/morpheusvm/scripts/build.sh" --custom-subnet=true --subnet-genesis="${TMPDIR}/morpheusvm.genesis" --subnet-config="${TMPDIR}/morpheusvm.genesis" --chain-config="${TMPDIR}/morpheusvm.config" --node-config="${TMPDIR}/node.config" --add-grafana-dashboard="${TMPDIR}/hypersdk/examples/morpheusvm/grafana.json" EPOCH_WAIT_START=$(date +%s) # Import the cluster into morpheus-cli for local interaction From be2648bd45fd3f949b7606e3474d4394548e4f62 Mon Sep 17 00:00:00 2001 From: samliok Date: Mon, 30 Sep 2024 16:40:12 -0400 Subject: [PATCH 3/4] remove comment --- examples/morpheusvm/scripts/deploy.devnet.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/morpheusvm/scripts/deploy.devnet.sh b/examples/morpheusvm/scripts/deploy.devnet.sh index eb66aa791f..57b503beb0 100755 --- a/examples/morpheusvm/scripts/deploy.devnet.sh +++ b/examples/morpheusvm/scripts/deploy.devnet.sh @@ -194,7 +194,6 @@ trap cleanup SIGINT # # It is not recommended to use an instance with burstable network performance. echo -e "${YELLOW}creating devnet${NC}" -# TODO: change back to 10 $TMPDIR/avalanche node devnet wiz ${CLUSTER} ${VMID} --aws --node-type c7g.8xlarge --aws-volume-type=io2 --aws-volume-iops=2500 --aws-volume-size=100 --num-apis 10,10,10,10,10 --num-validators 1,1,1,1,1 --region us-west-2,us-east-1,ap-south-1,ap-northeast-1,eu-west-1 --use-static-ip=false --auto-replace-keypair --enable-monitoring --default-validator-params --custom-avalanchego-version $AVALANCHEGO_COMMIT --custom-vm-repo-url="https://www.github.com/ava-labs/hypersdk" --custom-vm-branch $VM_COMMIT --custom-vm-build-script="examples/morpheusvm/scripts/build.sh" --custom-subnet=true --subnet-genesis="${TMPDIR}/morpheusvm.genesis" --subnet-config="${TMPDIR}/morpheusvm.genesis" --chain-config="${TMPDIR}/morpheusvm.config" --node-config="${TMPDIR}/node.config" --add-grafana-dashboard="${TMPDIR}/hypersdk/examples/morpheusvm/grafana.json" EPOCH_WAIT_START=$(date +%s) From 2e5448e156a40be32316ae6750f5b5cc8feff259 Mon Sep 17 00:00:00 2001 From: samliok Date: Tue, 1 Oct 2024 14:23:58 -0400 Subject: [PATCH 4/4] fix nodes --- examples/morpheusvm/scripts/deploy.devnet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/morpheusvm/scripts/deploy.devnet.sh b/examples/morpheusvm/scripts/deploy.devnet.sh index 57b503beb0..84aceaeb35 100755 --- a/examples/morpheusvm/scripts/deploy.devnet.sh +++ b/examples/morpheusvm/scripts/deploy.devnet.sh @@ -194,7 +194,7 @@ trap cleanup SIGINT # # It is not recommended to use an instance with burstable network performance. echo -e "${YELLOW}creating devnet${NC}" -$TMPDIR/avalanche node devnet wiz ${CLUSTER} ${VMID} --aws --node-type c7g.8xlarge --aws-volume-type=io2 --aws-volume-iops=2500 --aws-volume-size=100 --num-apis 10,10,10,10,10 --num-validators 1,1,1,1,1 --region us-west-2,us-east-1,ap-south-1,ap-northeast-1,eu-west-1 --use-static-ip=false --auto-replace-keypair --enable-monitoring --default-validator-params --custom-avalanchego-version $AVALANCHEGO_COMMIT --custom-vm-repo-url="https://www.github.com/ava-labs/hypersdk" --custom-vm-branch $VM_COMMIT --custom-vm-build-script="examples/morpheusvm/scripts/build.sh" --custom-subnet=true --subnet-genesis="${TMPDIR}/morpheusvm.genesis" --subnet-config="${TMPDIR}/morpheusvm.genesis" --chain-config="${TMPDIR}/morpheusvm.config" --node-config="${TMPDIR}/node.config" --add-grafana-dashboard="${TMPDIR}/hypersdk/examples/morpheusvm/grafana.json" +$TMPDIR/avalanche node devnet wiz ${CLUSTER} ${VMID} --aws --node-type c7g.8xlarge --aws-volume-type=io2 --aws-volume-iops=2500 --aws-volume-size=100 --num-apis 1,1,1,1,1 --num-validators 10,10,10,10,10 --region us-west-2,us-east-1,ap-south-1,ap-northeast-1,eu-west-1 --use-static-ip=false --auto-replace-keypair --enable-monitoring --default-validator-params --custom-avalanchego-version $AVALANCHEGO_COMMIT --custom-vm-repo-url="https://www.github.com/ava-labs/hypersdk" --custom-vm-branch $VM_COMMIT --custom-vm-build-script="examples/morpheusvm/scripts/build.sh" --custom-subnet=true --subnet-genesis="${TMPDIR}/morpheusvm.genesis" --subnet-config="${TMPDIR}/morpheusvm.genesis" --chain-config="${TMPDIR}/morpheusvm.config" --node-config="${TMPDIR}/node.config" --add-grafana-dashboard="${TMPDIR}/hypersdk/examples/morpheusvm/grafana.json" EPOCH_WAIT_START=$(date +%s) # Import the cluster into morpheus-cli for local interaction