Cluster on cloud
This doc is for google cloud, but can be used for any.
On your machine
Create a testnetwork.
sudo rm -rf mytestnet
tendermint testnet
cd mytestnet
1
2
3
2
3
Create 4 instance on Google Cloud
Send the files created from your system for a localnetwork.
gcloud compute scp --recurse node0/ instance-1:~
gcloud compute scp --recurse node1/ instance-2:~
gcloud compute scp --recurse node2/ instance-3:~
gcloud compute scp --recurse node3/ instance-4:~
1
2
3
4
5
2
3
4
5
In the instance on gcp
First clone and install all the requirements to check if its working
now you can see the node0
in the /home/user in your gcp folder
start the vimana server using python vimana/tmserver/start.py
then in a new terminal start the tendermint server using
sudo tendermint node --p2p.persistent_peers "id1@ip1:26656,id2@ip2:26656,id3@ip3:26656,id4f@ip4:26656" --consensus.create_empty_blocks=false --home $NODE
1
id,ip for the respective id and ip address
the $NODE is equal to "node0", "node1", "node2", "node3"
i use fish shell, do convert to bash if you are into it.
To delete blockchain and do again
sudo tendermint unsafe_reset_all --home $NODE
sudo tendermint node --p2p.persistent_peers "$id1@$ip1,$id2@$ip2,$id3@$ip3,$id4@$ip4" --consensus.create_empty_blocks=false --home $NODE
1
2
2