-
Notifications
You must be signed in to change notification settings - Fork 116
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
automated devent deploy + skip verify on build #94
Conversation
@@ -37,9 +37,10 @@ chmod +x /tmp/avalancheup-aws | |||
|
|||
### Step 2 | |||
|
|||
Now we can spin up a new network of 6 nodes with some defaults: | |||
Now we can spin up a new network of 6 nodes with some defaults. `avalanche-ops` also supports [Graviton-based processors](https://aws.amazon.com/ec2/graviton/) (ARM64). Use `--arch-type arm64` to run nodes in ARM64 CPUs. `avalanche-ops` also supports Spot instances for cost savings. Use `--instance-mode=spot` to run instances in spot mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
d482040
to
8dfc98c
Compare
Signed-off-by: Gyuho Lee <[email protected]>
05b10b7
to
bf6575f
Compare
Example commands: # EXAMPLE: write subnet config
/home/ubuntu/avalanche-ops/target/release/avalancheup-aws subnet-config \
--log-level=info \
--proposer-min-block-delay 0 \
--file-path /tmp/subnet-config.json
cat <<EOF > /tmp/allocations.json
[{"address":"token1rvzhmceq997zntgvravfagsks6w0ryud3rylh4cdvayry0dl97nsjzf3yp", "balance":1000000000000}]
EOF
rm -f /tmp/tokenvm-genesis.json
/tmp/token-cli genesis generate /tmp/allocations.json \
--genesis-file /tmp/tokenvm-genesis.json
cat /tmp/tokenvm-genesis.json
cat <<EOF > /tmp/tokenvm-chain-config.json
{
"mempoolSize": 10000000,
"mempoolExemptPayers":["token1rvzhmceq997zntgvravfagsks6w0ryud3rylh4cdvayry0dl97nsjzf3yp"],
"parallelism": 5,
"trackedPairs":["*"],
"logLevel": "info",
"stateSyncServerDelay": 0
}
EOF
cat /tmp/tokenvm-chain-config.json
/home/ubuntu/avalanche-ops/target/release/avalancheup-aws install-subnet-chain \
--log-level info \
--region us-west-2 \
--s3-bucket avalanche-ops-202303-3hxfve9pfh-us-west-2 \
--s3-key-prefix aops-custom-202303-uAnbAp/install-subnet-chain \
--ssm-doc aops-custom-202303-uAnbAp-ssm-install-subnet-chain \
--chain-rpc-url http://54.71.147.118:9650 \
--key 0x56289e99c94b6912bfc12adc093c9b51124f0dc54ac7a766b2bc5ccf558d8027 \
--staking-perioid-in-days 15 \
--subnet-config-local-path /tmp/subnet-config.json \
--subnet-config-remote-dir /data/avalanche-configs/subnets \
--vm-binary-local-path /tmp/tokenvm \
--vm-binary-remote-dir /data/avalanche-plugins \
--chain-name tokenvm1 \
--chain-genesis-path /tmp/tokenvm-genesis.json \
--chain-config-local-path /tmp/tokenvm-chain-config.json \
--chain-config-remote-dir /data/avalanche-configs/chains \
--avalanchego-config-remote-path /data/avalanche-configs/config.json \
--node-ids-to-instance-ids '{"NodeID-CtgUPgUxEP74QzWCGXCXbZWe7AatMZXi":"i-0e86b8a0816e2bc4f","NodeID-PJZbK8d7jTygnMAhaWw55cypP7EzE4a49":"i-0f96c61ec4e4430e2","NodeID-GJEiqPr2gZvu5v9pUniSf9mbbTtn98tsy":"i-0fde89668ae67d894"}'
# Vm Id tHBYNu8ikt25R77fH4znHYC4B5mkaEnXPFmsJnECZjq59dySw
# created a blockchain DKmZansv3VnDVAXZSzpXwSid2aFurhYbJxkdezx4F1AR1dqiz for subnet 2vF4eZUKQMWpefJ2ympzp3t82S2dder1gKcpFHBke4K3nWmtAg
/home/ubuntu/avalanche-ops/target/release/avalancheup-aws install-subnet-chain \
--log-level info \
--region us-west-2 \
--s3-bucket avalanche-ops-202303-3hxfve9pfh-us-west-2 \
--s3-key-prefix aops-custom-202303-uAnbAp/install-subnet-chain \
--ssm-doc aops-custom-202303-uAnbAp-ssm-install-subnet-chain \
--chain-rpc-url http://54.71.147.118:9650 \
--key 0x56289e99c94b6912bfc12adc093c9b51124f0dc54ac7a766b2bc5ccf558d8027 \
--staking-perioid-in-days 15 \
--subnet-config-local-path /tmp/subnet-config.json \
--subnet-config-remote-dir /data/avalanche-configs/subnets \
--vm-binary-local-path /tmp/tokenvm \
--vm-binary-remote-dir /data/avalanche-plugins \
--chain-name tokenvm2 \
--chain-genesis-path /tmp/tokenvm-genesis.json \
--chain-config-local-path /tmp/tokenvm-chain-config.json \
--chain-config-remote-dir /data/avalanche-configs/chains \
--avalanchego-config-remote-path /data/avalanche-configs/config.json \
--node-ids-to-instance-ids '{"NodeID-E2tRmg87X57SAAvy4PYt3dsL3ShBNNhYW":"i-03a7e453bdbb80064","NodeID-E9vKaRMRE7TusJgxfP4qCmbw9m6g5cRqK":"i-0f1ed3fd7fba149fc","NodeID-NpPH3V9HrrM2Ts6ruirDK7fNLz2t9eS7d":"i-094416ec533aeffbc"}'
# tHBYNu8ikt4i8cEV4nsSuj7Ldc9sXAHc8L6qKRJR4e5CR7T3t
# SUCCESS: subnet Id 22areT4JiTwZwVPEQ4hony6uiG4XtzMfDEjoYDeNsLcmP8F8hr, blockchain Id oD9AREFxtsj7P6dw3WtRWmxsCCjQty7h5NV74y8BDQNmWGoDP
|
Signed-off-by: Gyuho Lee <[email protected]>
Signed-off-by: Gyuho Lee <[email protected]>
Signed-off-by: Gyuho Lee <[email protected]>
Signed-off-by: Gyuho Lee <[email protected]>
Signed-off-by: Gyuho Lee <[email protected]>
Signed-off-by: Gyuho Lee <[email protected]>
|
Signed-off-by: Gyuho Lee <[email protected]>
* insert height into state * add merkledb metrics * cleanup more metrics handling * add additional arguments for config * add HeightKey * log lock wait * use NodeID as random * fix profiles * gofumpt * gofmt * add more logs * perform proper verify * cache built block * reduce memory usage of tstate * improve memory efficiency of storage * align devnets and scripts * re-add proposer delay * use default peer gossip size
Processed 120M transactions at a sustained throughput of 7500 TPS. Nodes used ~2.5 cores and the consensus engine was busy 180 ms/s. |
* add verify metrics * cleanup wording * add more comments * update resolution
* make balance checking optional * config nit
TODO
consensus-on-accept-gossip-peer-size
--instance-types
flag