Skip to content

Commit

Permalink
Merge pull request #11 from klaytn/12th-onboarding
Browse files Browse the repository at this point in the history
update contents
  • Loading branch information
markyim-kaia committed Mar 19, 2024
2 parents 4a5afb5 + e6a3fc2 commit 4ffc296
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 33 deletions.
2 changes: 1 addition & 1 deletion content/10_prerequisites/10_firewall_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ draft: false
#### 1. *(Only for CN)* Firewall configuration

##### 1) If pre-cypress performance test is completed, remove below Klaytn CN's IP address of Pre-cypress from your firewall ingress rule.
```61.109.239.176```
```61.109.238.31```
```52.199.8.244```

##### 2) For communication and multichannel between Baobab CN, allow TCP ```32323-32324``` with below IP addresses to your firewall ingress rule.
Expand Down
24 changes: 13 additions & 11 deletions content/30_download_chaindata/10_download_chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,49 @@ draft: false
{{< line_break >}}
#### 1. Download the latest chaindata snapshot from the Baobab snapshot archive.
##### 0) Before proceeding, please check if your disk space is enough to store and extract the Baobab chaindata.
_** You can refer to the chaindata size via **[Boabab snapshot archive](https://packages.klaytn.net/baobab/chaindata/)** where the Baobab chaindata snapshots have been snapshotted._
_** You can refer to the chaindata size via **[Boabab snapshot archive](https://packages.klaytn.net/baobab/pruning-chaindata/)** where the Baobab chaindata snapshots have been snapshotted._
{{< line_break >}}

##### 1) Download the latest one from the archive.
_** Please note that this step will take a lot of time to download since snapshot is more than 100 GB. If you want to reduce the time, please refer the next step._
_** The latest chaindata name can be different with this example due to the date information._
##### 1) For CN and PN1
##### 1) For CN
_** Please note that this step will take a lot of time to download since snapshot is more than 1.4 TB. If you want to reduce the time, please refer the next step._
_** The latest chaindata name can be different with this example due to the date information._
{{< highlight html >}}
$ URL=`curl -s https://packages.klaytn.net/baobab/chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ URL=`curl -s https://packages.klaytn.net/baobab/pruning-chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/klaytn-baobab-chaindata-20240107010111.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/pruning/klaytn-baobab-pruning-chaindata-20240131010111.tar.gz
$ wget $URL
{{< /highlight >}}
##### 2) For PN2
##### 2) For PN
{{< highlight html >}}
$ URL=`curl -s https://packages.klaytn.net/baobab/pruning-chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/pruning/klaytn-baobab-pruning-chaindata-20240107010112.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/pruning/klaytn-baobab-pruning-chaindata-20240131010111.tar.gz
$ wget $URL
{{< /highlight >}}

##### 2) Optional - If you want to save the time for downloading, you can consider using ```axel``` command.
_**[Axel](https://github.com/axel-download-accelerator/axel) tries to accelerate the download process by using multiple connections per file._
##### 1) For CN and PN1
##### 1) For CN
{{< highlight html >}}
(Amazon Linux 2) $ sudo amazon-linux-extras install epel
(CentOS) $ sudo yum install epel-release -y
$ sudo yum install axel -y
$ URL=`curl -s https://packages.klaytn.net/baobab/chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ URL=`curl -s https://packages.klaytn.net/baobab/pruning-chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/klaytn-baobab-chaindata-20240107010111.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/pruning/klaytn-baobab-pruning-chaindata-20240131010111.tar.gz
$ axel -n8 $URL
{{< /highlight >}}
##### 2) For PN2
##### 2) For PN
{{< highlight html >}}
(Amazon Linux 2) $ sudo amazon-linux-extras install epel
(CentOS) $ sudo yum install epel-release -y
$ sudo yum install axel -y
$ URL=`curl -s https://packages.klaytn.net/baobab/pruning-chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/pruning/klaytn-baobab-chaindata-20240107010111.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/pruning/klaytn-baobab-pruning-chaindata-20240131010111.tar.gz
$ axel -n8 $URL
{{< /highlight >}}
{{< line_break >}}
Expand Down
11 changes: 3 additions & 8 deletions content/30_download_chaindata/20_unarchive_chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ draft: false

##### 1) For CN,
{{< highlight html >}}
$ tar -C <your_klaytn_home_path>/kcnd/data -xvf klaytn-baobab-chaindata-20240107010111.tar.gz --exclude klay/chaindata/receipts
$ tar -C <your_klaytn_home_path>/kcnd/data -xvf klaytn-baobab-pruning-chaindata-20240107010111.tar.gz --exclude klay/chaindata/receipts
{{< /highlight >}}

##### 2) For PN1,
{{< highlight html >}}
$ tar -C <your_klaytn_home_path>/kpnd/data -xvf klaytn-baobab-chaindata-20240107010111.tar.gz --exclude klay/chaindata/receipts
{{< /highlight >}}

##### 3) For PN2,
##### 2) For PN,
{{< highlight html >}}
$ tar -C <your_klaytn_home_path>/kpnd/data -xvf klaytn-baobab-pruning-chaindata-20240107010111.tar.gz --exclude klay/chaindata/receipts
{{< /highlight >}}
Expand All @@ -29,7 +24,7 @@ _** If you want to reduce the time for extracting, please refer this [pigz](http
(Amazon Linux 2) $ sudo amazon-linux-extras install epel
(CentOS) $ sudo yum install epel-release -y
$ sudo yum install pigz
$ tar -I pigz -C <your_klaytn_home_path>/k*nd/data -xvf klaytn-baobab-chaindata-20240107010111.tar.gz --exclude klay/chaindata/receipts
$ tar -I pigz -C <your_klaytn_home_path>/k*nd/data -xvf klaytn-baobab-pruning-chaindata-20240107010111.tar.gz --exclude klay/chaindata/receipts
{{< /highlight >}}

{{< line_break >}}
Expand Down
18 changes: 5 additions & 13 deletions content/40_configure_network/20_node_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,22 @@ _** Note that CN and PN have some different information._

##### 1) For CN, your configuration should be modified as shown below.
{{< highlight html >}}
$ egrep "^NETWORK|NO_DISCOVER|BOOTNODES" /etc/kcnd/conf/kcnd.conf
$ egrep "^NETWORK|NO_DISCOVER|BOOTNODES|ADDITIONAL" /etc/kcnd/conf/kcnd.conf
NETWORK="baobab"
NETWORK_ID=
NO_DISCOVER=0 # setting 1 to disable discovery
BOOTNODES="kni://979159c738bb0c8c60b36267c56d2b4d4a995326be666460c3d612856caab522ebe6f81ea5cdbb605051f12cbf8f787ce0f172256545a5b3400c751afbdcd0c8@13.209.190.55:32323?discport=32323&ntype=bn"
ADDITIONAL="--state.trie-cache-limit 5000 --state.live-pruning"
{{< /highlight >}}

##### 2) For PN1, your configuration should be modified as shown below.
{{< highlight html >}}
$ egrep "^NETWORK|NO_DISCOVER|BOOTNODES" /etc/kpnd/conf/kpnd.conf
NETWORK="baobab"
NETWORK_ID=
NO_DISCOVER=1 # setting 1 to disable discovery
BOOTNODES=""
{{< /highlight >}}

##### 3) For PN2, your configuration should be modified as shown below.
##### 2) For PN
{{< highlight html >}}
$ egrep "^NETWORK|NO_DISCOVER|BOOTNODES|ADDITIONAL" /etc/kpnd/conf/kpnd.conf
NETWORK="baobab"
NETWORK="cypress"
NETWORK_ID=
NO_DISCOVER=1 # setting 1 to disable discovery
BOOTNODES=""
ADDITIONAL="--state.live-pruning"
ADDITIONAL="--state.trie-cache-limit 5000 --state.live-pruning"
{{< /highlight >}}
{{< line_break >}}

Expand Down

0 comments on commit 4ffc296

Please sign in to comment.