Skip to content

Commit

Permalink
Merge pull request #12 from klaytn/11th
Browse files Browse the repository at this point in the history
update contents
  • Loading branch information
markyim-kaia authored Feb 1, 2024
2 parents b0342a4 + 2ff1663 commit 9e79f73
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 16 deletions.
28 changes: 23 additions & 5 deletions content/30_download_chaindata/10_download_chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,43 @@ draft: false
_** You can refer to the chaindata size via **[Cypress snapshot archive](https://packages.klaytn.net/cypress/chaindata/)** where the Cypress 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 700 GB. If you want to reduce the time, please refer the next step._
##### 1) For CN and PN1
_** 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/cypress/chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/klaytn-cypress-chaindata-20220719010712.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/klaytn-cypress-chaindata-20240131010151.tar.gz
$ wget $URL
{{< /highlight >}}
##### 2) For PN2
{{< highlight html >}}
$ URL=`curl -s https://packages.klaytn.net/cypress/pruning-chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/pruning/klaytn-cypress-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
{{< 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/cypress/chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ 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/cypress/klaytn-cypress-chaindata-20240131010151.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/pruning-chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ echo $URL
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/klaytn-cypress-chaindata-20220719010712.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/pruning/klaytn-cypress-pruning-chaindata-20240131010111.tar.gz
$ axel -n8 $URL
{{< /highlight >}}

Expand Down
14 changes: 6 additions & 8 deletions content/30_download_chaindata/20_unarchive_chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ draft: false

##### 1) For CN,
{{< highlight html >}}
$ tar -C <your_klaytn_home_path>/kcnd/data -xvf klaytn-cypress-chaindata-20220719010712.tar.gz
$ tar -C <your_klaytn_home_path>/kcnd/data -xvf klaytn-cypress-chaindata-20240131010151.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._

##### 2) For PN1,
{{< 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-cypress-chaindata-20220719010712.tar.gz
$ tar -C <your_klaytn_home_path>/kpnd/data -xvf klaytn-cypress-chaindata-20240131010151.tar.gz --exclude klay/chaindata/receipts
{{< /highlight >}}

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

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

##### Since the information in the static-nodes.json is different for each PN, we will inform each CCO individually by Slack DM.
_** Please refer the diagram below and the docs to understand PNN(Proxy Node Network)._
https://docs.klaytn.foundation/klaytn#tiered-networks
https://docs.klaytn.foundation/docs/learn/#tiered-networks-

> PNN(Proxy Node Network) consists of PNs within the Cypress network topology.
> Typically, PNs maintain just one connection with a PN in a neighboring Core Cell. The number of peer connections is subject to change depending on the network configuration.
Expand Down
2 changes: 1 addition & 1 deletion content/50_start_services/30_check_the_services.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ draft: false
#### 3. Watch the service log to confirm if your nodes are correctly joined.

_** If the node is not a proposer at that block, and the consensus is successful, the node have executed(==validates) the block. In other words, a block is inserted._
_** You can refer [this document](https://docs.klaytn.foundation/node/node-log#info-logs) for more details about node log.
_** You can refer [this document](https://docs.klaytn.foundation/docs/misc/operation/node-log/#info-logs) for more details about node log.

##### 1) For CN,
{{< highlight html >}}
Expand Down
2 changes: 1 addition & 1 deletion content/50_start_services/40_check_monitoring_dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ draft: false
{{< line_break >}}

_** You can refer this document to check your services further._
_https://docs.klaytn.foundation/node/core-cell/installation-guide/testing-the-core-cell#kcn-console-kpn-console_
_https://docs.klaytn.foundation/docs/nodes/core-cell/install/install-proxy-nodes/#kpn-console-_
{{< line_break >}}

1. If your CN/PN Inter Connections looks 2 and blockNumber increases correctly in this dashboard, everything is configured normally.
Expand Down

0 comments on commit 9e79f73

Please sign in to comment.