Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.72 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.72 KB

Deploy a Tezos node using packages and snapshots

This is a prototype script to deploy Tezos nodes and initialise them from the snapshot server.

It relies on pkgbeta.tzinit.org having packages and snapshot.tzinit.org having snapshots.

The relevant cloud tools should be installed on your machine and wget. It's recommended to have the gcloud tools as it is the easiest way to check the snapshot files exist before proceeding.

Cost caveats

This script brings up resources on cloud platforms. Plan your cost! Tweak the scripts if necessary. The costs below do not include any data download costs.

GCP

On GCP, we use the e2-standard-4 compute class. At the time of writing (17th January) and assuming the default values used in the script, the cost estimates per month are:

disc (GB) us-central1 europe-west6
rolling 100 $102 $142
full 300 $110 $153
archive 2000 $178 $241

Examples

  1. Deploy a rolling node on mainnet in GCP in europe-west6-a
gcloud projects create "my-project"
gcloud beta billing projects link "my-project" \
    --billing-account 123456-789123-456789
sh deploy.sh -c gcp -p "my-project" -z europe-west6-a -n mainnet -t rolling
  1. Deploy a full node on mainnet in GCP in us-central1-a
sh deploy.sh -c gcp -p "my-project" -z us-central1-a -s us -n mainnet -t full
  1. Deploy an archive node on ghostnet in GCP in europe-west6-a
sh deploy.sh -c gcp -p "my-project" -z europe-west6-a -n mainnet -t archive
  1. On Debian machines, you can deploy locally. Be careful.
sh deploy.sh -c local -n oxfordnet -t rolling