Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pruning db #14

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions content/30_download_chaindata/10_download_chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ 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) 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/cypress/chaindata/ |grep latest |awk -F'"' '{print $2}'`
$ 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/klaytn-cypress-chaindata-20240131010151.tar.gz
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/pruning/klaytn-cypress-pruning-chaindata-20240131010111.tar.gz
$ wget $URL
{{< /highlight >}}
##### 2) For PN2
Expand All @@ -36,17 +36,17 @@ _**[Axel](https://github.com/axel-download-accelerator/axel) tries to accelerate
(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/cypress/pruning-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
https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/pruning/klaytn-cypress-pruning-chaindata-20240131010111.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}'`
$ 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
$ axel -n8 $URL
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,17 +11,12 @@ draft: false

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

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

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

{{< line_break >}}
Expand Down
16 changes: 4 additions & 12 deletions content/40_configure_network/10_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="cypress"
NETWORK_ID=
NO_DISCOVER=0 # setting 1 to disable discovery
BOOTNODES="kni://b286e4140aea469992146c299f8915e34d59a014c29a045de41e578014761114176f42dece34a54ce1e37f92ab981fe1bb14e54fe23576e1182778c40e6272a2@ston146.cypress.klaytn.net:32323?ntype=bn,kni://a6b61ee786952e3f8b681867d2535485622e80d0b9b7b89f26b2c631e59a4246b5f879487fbde7c324c3308ece0cdb1d7738430bdffce4f7f8c4f5a09eef80a3@ston738.cypress.klaytn.net:32323?ntype=bn,kni://b25838727eb6b4631c8f8910b4f6376fe28041f251ee21129078a61d18d62d0dc2601be5a97eab8bdb5772309f861fddb7192935483813ef20e5716a34266f16@ston903.cypress.klaytn.net: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="cypress"
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="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
Loading