Skip to content

Commit

Permalink
Merge pull request #8 from klaytn/11th-onboarding
Browse files Browse the repository at this point in the history
11th onboarding
  • Loading branch information
markyim-kaia authored Jan 8, 2024
2 parents e72a173 + 4796c2c commit e885864
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 10 deletions.
4 changes: 2 additions & 2 deletions content/10_prerequisites/20_package_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ draft: false

#### 2. Installation of Klaytn packages for CN and PN
_** We've already installed packages during the Pre-cypress stage. If you need to install newly, please refer these documents._
##### 1) CN - <https://docs.klaytn.foundation/node/core-cell/installation-guide/consensus-node-setup/installation-guide>
##### 2) PN - <https://docs.klaytn.foundation/node/core-cell/installation-guide/proxy-node-setup/installation-guide>
##### 1) CN - <https://docs.klaytn.foundation/docs/nodes/core-cell/install/install-consensus-nodes/>
##### 2) PN - <https://docs.klaytn.foundation/docs/nodes/core-cell/install/install-proxy-nodes/>

{{< line_break >}}
If you finish this step, please click the next button ```>``` on the right side of this page.
24 changes: 21 additions & 3 deletions content/30_download_chaindata/10_download_chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,42 @@ _** You can refer to the chaindata size via **[Boabab snapshot archive](https://
##### 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
{{< highlight html >}}
$ URL=`curl -s https://packages.klaytn.net/baobab/chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/klaytn-baobab-chaindata-20220714010711.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/klaytn-baobab-chaindata-20240107010111.tar.gz
$ wget $URL
{{< /highlight >}}
##### 2) For PN2
{{< 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
$ 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
{{< 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}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/klaytn-baobab-chaindata-20220714010711.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/klaytn-baobab-chaindata-20240107010111.tar.gz
$ axel -n8 $URL
{{< /highlight >}}
##### 2) For PN2
{{< 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}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/baobab/pruning/klaytn-baobab-chaindata-20240107010111.tar.gz
$ axel -n8 $URL
{{< /highlight >}}

{{< line_break >}}
If you finish this step, please click the next button ```>``` on the right side of this page.
13 changes: 9 additions & 4 deletions content/30_download_chaindata/20_unarchive_chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@ draft: false

##### 1) For CN,
{{< highlight html >}}
$ tar -C <your_klaytn_home_path>/kcnd/data -xvf klaytn-baobab-chaindata-20220714010711.tar.gz
$ tar -C <your_klaytn_home_path>/kcnd/data -xvf klaytn-baobab-chaindata-20240107010111.tar.gz --exclude klay/chaindata/receipts
{{< /highlight >}}
_** If you want to reduce the time for extracting, please refer this [pigz](https://zlib.net/pigz/) example._
{{< highlight html >}}
(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>/kcnd/data -xvf klaytn-baobab-chaindata-20220714010711.tar.gz
$ tar -I pigz -C <your_klaytn_home_path>/kcnd/data -xvf klaytn-baobab-chaindata-20240107010111.tar.gz --exclude klay/chaindata/receipts
{{< /highlight >}}

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

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

{{< line_break >}}
Expand Down
2 changes: 1 addition & 1 deletion content/30_download_chaindata/30_remove_chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ draft: false

##### 1) For both CN and PN,
{{< highlight html >}}
$ rm klaytn-baobab-chaindata-20220714010711.tar.gz
$ rm klaytn-baobab-chaindata-****************.tar.gz
{{< /highlight >}}

{{< line_break >}}
Expand Down

0 comments on commit e885864

Please sign in to comment.