Skip to content

Commit

Permalink
[doc] add instruction to close metrics port (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherry-x authored Jun 30, 2022
1 parent e358a61 commit e061fdb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions developer-docs-site/docs/nodes/ait/connect-to-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,36 @@ Before joining the testnet, you need to bootstrap your node with the genesis blo
- Stop your node and remove the data directory.
- Download the `genesis.blob` and `waypoint.txt` file published by Aptos Labs team.
- Pull the latest changes on `testnet` branch, make sure you're at commit `3b53225b5a1effcce5dee9597a129216510dc424`
- Close the metrics port `9101` for your validator and fullnode
- Restarting the node

### Using Docker

- Stop your node and remove the data volumes, `docker compose down --volumes`
- Download the `genesis.blob` and `waypoint.txt` file published by Aptos Labs team.
- Update your docker image to use tag `testnet_3b53225b5a1effcce5dee9597a129216510dc424`. Check the image sha256 [here](https://hub.docker.com/layers/validator/aptoslabs/validator/testnet_3b53225b5a1effcce5dee9597a129216510dc424/images/sha256-1625f70457a6060ae2e64e699274e1ddca02cb7856406a40d1891b6bf84ae072?context=explore)
- Close metrics port on 9101 for your validator and fullnode (remove it from the docker compose file)
- Restarting the node: `docker compose up`

### Using Terraform

- Increase `era` number in your Terraform config, this will wipe the data once applied.
- Update your docker image to use tag `testnet_3b53225b5a1effcce5dee9597a129216510dc424` in the Terraform config. Check the image sha256 [here](https://hub.docker.com/layers/validator/aptoslabs/validator/testnet_3b53225b5a1effcce5dee9597a129216510dc424/images/sha256-1625f70457a6060ae2e64e699274e1ddca02cb7856406a40d1891b6bf84ae072?context=explore)
- Close metrics port for validator and fullnode, add the helm values in your `main.tf ` file, for example:
```
module "aptos-node" {
...
helm_values = {
service = {
validator = {
enableMetricsPort = false
}
}
}
}
```
- Apply Terraform: `terraform apply`
- Download the `genesis.blob` and `waypoint.txt` file published by Aptos Labs team.
- Recreate the secrets, make sure the secret name matches your `era` number, e.g. if you have `era = 3`, you should replace the secret name to be `${WORKSPACE}-aptos-node-0-genesis-e3`
Expand Down

0 comments on commit e061fdb

Please sign in to comment.