Skip to content

Commit

Permalink
Merge pull request #87 from scott-klaytn/node-package-url-update
Browse files Browse the repository at this point in the history
Update node package source urls
  • Loading branch information
scott-klaytn authored Aug 27, 2024
2 parents daa9ed3 + a0df450 commit e19df2d
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions docs/learn/storage/live-pruning.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ StateDB Live Pruning deletes data 48 hours (default) after the information has c

To use StateDB Live Pruning, the following environment should be set up:

1. Use a binary of kaia v1.0.0 or higher.
2. Please download the pruned DB snapshot from this [link](https://packages.klaytn.net/cypress/pruning-chaindata/) if you don't want to synchronize all blocks from the genesis block.
1. Use a binary of kaia v1.0.2 or higher.
2. Please download the pruned DB snapshot from this [link](https://packages.kaia.io/mainnet/pruning-chaindata/) if you don't want to synchronize all blocks from the genesis block.
3. (Optional) Add the flag `--state.live-pruning-retention <value>` for how long recent states are retained. Default value is 172800 (48 hours)
4. Refer to the following link to set the DB location and restart the node with `--state.live-pruning` added [chaindata-change](../../misc/operation/chaindata-change.md) section.
12 changes: 6 additions & 6 deletions docs/misc/operation/chaindata-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,31 @@ $ sudo mkdir /var/kcnd2/log

### Download the latest chaindata

Download Chain Data to the data of the new Kaia Data DIR. (You can check the details on Chain Data in [https://packages.klaytn.net/cypress/chaindata/](https://packages.klaytn.net/cypress/chaindata/))
Download Chain Data to the data of the new Kaia Data DIR. (You can check the details on Chain Data in [https://packages.kaia.io/mainnet/chaindata/](https://packages.kaia.io/mainnet/chaindata/))

1. Download with the following command

```bash
# (Option 1: recommended) curl
$ curl -o klaytn-cypress-chaindata-2021???????????.tar.gz "https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/klaytn-cypress-chaindata-2021???????????.tar.gz"
$ curl -o kaia-mainnet-chaindata-2021???????????.tar.gz "https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/mainnet/kaia-mainnet-chaindata-2021???????????.tar.gz"

# (Option 2) aws s3 command
$ aws s3 cp s3://klaytn-chaindata/cypress/klaytn-cypress-chaindata-2021???????????.tar.gz klaytn-cypress-chaindata-20211113011111.tar.gz
$ aws s3 cp s3://klaytn-chaindata/mainnet/kaia-mainnet-chaindata-2021???????????.tar.gz kaia-mainnet-chaindata-20211113011111.tar.gz

# (Option 3) axel (need to install axel)
sudo amazon-linux-extras install epel -y
sudo yum install axel pigz
$ axel -n8 https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/cypress/klaytn-cypress-chaindata-2021???????????.tar.gz
$ axel -n8 https://s3.ap-northeast-2.amazonaws.com/klaytn-chaindata/mainnet/kaia-mainnet-chaindata-2021???????????.tar.gz
```

2. Decompress

```bash
# (Option 1: recommended) tar
$ tar -xvf klaytn-cypress-chaindata-2021???????????.tar.gz
$ tar -xvf kaia-mainnet-chaindata-2021???????????.tar.gz

# (Option 2) pigz (need to isntall pigz)
$ tar -I pigz -xvf klaytn-cypress-chaindata-2021???????????.tar.gz
$ tar -I pigz -xvf kaia-mainnet-chaindata-2021???????????.tar.gz
```


Expand Down
8 changes: 4 additions & 4 deletions docs/nodes/core-cell/install/install-consensus-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $ yum install kcnd-baobab-vX.X.X.el7.x86_64.rpm
Alternatively, you can install `kcnd` from the Kaia Yum repo, run:

```bash
$ sudo curl -o /etc/yum.repos.d/klaytn.repo https://packages.klaytn.net/config/rhel/7/prod.repo && sudo yum install kcnd
$ sudo curl -o /etc/yum.repos.d/kaia.repo https://packages.kaia.io/config/rhel/7/kaia.repo && sudo yum install kcnd
```

### Installed Location <a id="installed-location"></a>
Expand Down Expand Up @@ -158,18 +158,18 @@ Each CN maintains a copy of the network's chain data. If a node is out of sync,

To accelerate this process, you may perform a fast sync by downloading a snapshot of the chain data before starting the CN. This can dramatically reduce the time the CN will spend syncing on first start.

Download the latest chaindata snapshot from the [Mainnet state-migrated chaindata snapshot](http://packages.klaytn.net/cypress/chaindata/) or [Kairos state-migrated chaindata snapshot](https://packages.kaia.io/kairos/chaindata/). Before starting `kcnd`, extract the snapshot inside the DATA_DIR you configured in `kcnd.conf`.
Download the latest chaindata snapshot from the [Mainnet state-migrated chaindata snapshot](http://packages.kaia.io/mainnet/chaindata/) or [Kairos state-migrated chaindata snapshot](https://packages.kaia.io/kairos/chaindata/). Before starting `kcnd`, extract the snapshot inside the DATA_DIR you configured in `kcnd.conf`.

For example:

```bash
$ tar -C ~/kcnd_home -xvf klaytn-cypress-chaindata-latest.tar.gz
$ tar -C ~/kcnd_home -xvf kaia-mainnet-chaindata-latest.tar.gz
```

Or,

```bash
$ tar -C ~/kcnd_home -xvf klaytn-baobab-chaindata-latest.tar.gz
$ tar -C ~/kcnd_home -xvf kaia-kairos-chaindata-latest.tar.gz
```

After the data is extracted, you may start the CN normally.
Expand Down
12 changes: 6 additions & 6 deletions docs/nodes/core-cell/install/install-proxy-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $ yum install kpnd-baobab-vX.X.X.el7.x86_64.rpm
Alternatively, you can install `kpnd` from the Kaia Yum repo, run:

```bash
$ sudo curl -o /etc/yum.repos.d/klaytn.repo https://packages.klaytn.net/config/rhel/7/prod.repo && sudo yum install kpnd
$ sudo curl -o /etc/yum.repos.d/kaia.repo https://packages.kaia.io/config/rhel/7/kaia.repo && sudo yum install kpnd
```

### Installed Location <a id="installed-location"></a>
Expand Down Expand Up @@ -144,18 +144,18 @@ Each PN maintains a copy of the network's chain data. If a node is out of sync,

To accelerate this process, you may perform a fast sync by downloading a snapshot of the chain data before starting the PN. This can dramatically reduce the time the PN will spend syncing on first start.

Download the latest chaindata snapshot from the [Mainnet state-migrated chaindata snapshot](http://packages.klaytn.net/cypress/chaindata/) or [Kairos state-migrated chaindata snapshot](https://packages.kaia.io/kairos/chaindata/). Before starting `kpnd`, extract the snapshot inside the DATA_DIR you configured in `kpnd.conf`.
Download the latest chaindata snapshot from the [Mainnet state-migrated chaindata snapshot](http://packages.kaia.io/mainnet/chaindata/) or [Kairos state-migrated chaindata snapshot](https://packages.kaia.io/kairos/chaindata/). Before starting `kpnd`, extract the snapshot inside the DATA_DIR you configured in `kpnd.conf`.

For example:

```text
$ tar -C /var/kpnd/data -xvf klaytn-cypress-chaindata-latest.tar.gz
```bash
$ tar -C /var/kpnd/data -xvf kaia-mainnet-chaindata-latest.tar.gz
```

Or,

```text
$ tar -C /var/kpnd/data -xvf klaytn-baobab-chaindata-latest.tar.gz
```bash
$ tar -C /var/kpnd/data -xvf kaia-kairos-chaindata-latest.tar.gz
```

After the data is extracted, you may start the PN normally.
Expand Down
16 changes: 8 additions & 8 deletions docs/nodes/endpoint-node/docker-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## Download the image

Choose an image tag from https://hub.docker.com/r/klaytn/klaytn/tags. `klaytn/klaytn:latest` is the recent release version. But you can choose a specific version. Currently, only linux/amd64 platform is supported. The container might not work correctly in Windows or Mac hosts.
Choose an image tag from https://hub.docker.com/r/kaiachain/kaia/tags. `kaiachain/kaia:latest` is the recent release version. But you can choose a specific version. Currently, only linux/amd64 platform is supported. The container might not work correctly in Windows or Mac hosts.

```
docker pull klaytn/klaytn:latest
docker pull kaiachain/kaia:latest
```

```
docker pull klaytn/klaytn:v1.12.0
docker pull kaiachain/kaia:v1.0.2
```

## Prepare configuration file
Expand All @@ -18,7 +18,7 @@ You can start from the existing configuration file. To obtain the template `kend

```sh
mkdir -p conf
docker run --rm klaytn/klaytn:latest cat /klaytn-docker-pkg/conf/kend.conf > conf/kend.conf
docker run --rm kaiachain/kaia:latest cat /klaytn-docker-pkg/conf/kend.conf > conf/kend.conf
```

Then edit the configuration. At least the `DATA_DIR` and `LOG_DIR` has to be specified. This guide will assume `/var/kend/data`.
Expand All @@ -34,15 +34,15 @@ Synching from the genesis block is time-consuming. You may perform a fast sync b

Download the latest chaindata snapshot from the following links:

- [Mainnet state-migrated chaindata snapshot](http://packages.klaytn.net/cypress/chaindata/)
- [Mainnet live-pruning chaindata snapshot](https://packages.klaytn.net/cypress/pruning-chaindata/)
- [Mainnet state-migrated chaindata snapshot](http://packages.kaia.io/mainnet/chaindata/)
- [Mainnet live-pruning chaindata snapshot](https://packages.kaia.io/mainnet/pruning-chaindata/)
- [Kairos state-migrated chaindata snapshot](https://packages.kaia.io/kairos/chaindata/)
- [Kairos live-pruning chaindata snapshot](https://packages.kaia.io/kairos/pruning-chaindata/)

Then uncompress:

```sh
tar -C data -xvf klaytn-cypress-chaindata-latest.tar.gz
tar -C data -xvf kaia-mainnet-chaindata-latest.tar.gz
```

## Start the container
Expand All @@ -55,7 +55,7 @@ docker run -d --name ken \
-p 8551:8551 \
-v $(pwd)/conf:/klaytn-docker-pkg/conf \
-v $(pwd)/data:/var/kend/data \
klaytn/klaytn:latest \
kaiachain/kaia:latest \
/bin/bash -c "kend start && touch /var/kend/logs/kend.out && tail -f /var/kend/logs/kend.out"
```

Expand Down
10 changes: 5 additions & 5 deletions docs/nodes/endpoint-node/install-endpoint-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ $ yum install kend-baobab-vX.X.X.el7.x86_64.rpm

Alternatively, you can install `kend` from the Kaia Yum repo, run:

```text
$ sudo curl -o /etc/yum.repos.d/klaytn.repo https://packages.klaytn.net/config/rhel/7/prod.repo && sudo yum install kend
```bash
$ sudo curl -o /etc/yum.repos.d/kaia.repo https://packages.kaia.io/config/rhel/7/kaia.repo && sudo yum install kend
```

### Installed Location <a id="installed-location"></a>
Expand Down Expand Up @@ -113,18 +113,18 @@ Each EN maintains a copy of the network's chain data. If a node is out of sync,

To accelerate this process, you may perform a fast sync by downloading a snapshot of the chain data before starting the EN. This can dramatically reduce the time the EN will spend syncing on first start.

Download the latest chaindata snapshot from the [Mainnet state-migrated chaindata snapshot](http://packages.klaytn.net/cypress/chaindata/) or [Kairos state-migrated chaindata snapshot](https://packages.kaia.io/kairos/chaindata/). Before starting `kend`, extract the snapshot inside the DATA_DIR you configured in `kend.conf`.
Download the latest chaindata snapshot from the [Mainnet state-migrated chaindata snapshot](http://packages.kaia.io/mainnet/chaindata/) or [Kairos state-migrated chaindata snapshot](https://packages.kaia.io/kairos/chaindata/). Before starting `kend`, extract the snapshot inside the DATA_DIR you configured in `kend.conf`.

For example:

```bash
$ tar -C ~/kend_home -xvf klaytn-cypress-chaindata-latest.tar.gz
$ tar -C ~/kend_home -xvf kaia-mainnet-chaindata-latest.tar.gz
```

Or,

```bash
$ tar -C ~/kend_home -xvf klaytn-baobab-chaindata-latest.tar.gz
$ tar -C ~/kend_home -xvf kaia-kairos-chaindata-latest.tar.gz
```

After the data is extracted, you may start the EN normally.
Expand Down
2 changes: 1 addition & 1 deletion docs/nodes/service-chain/quick-start/4nodes-setup-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ export PATH=$PATH:~/path/to/kscn-XXXXX-amd64/bin
SCN also provides various RPM distributions like RHEL, CentOS, and Fedora. For more information, please refer to [Installation](../install-service-chain.md#installation).

```console
$ curl -o /etc/yum.repos.d/klaytn.repo https://packages.klaytn.net/config/rhel/7/prod.repo
$ curl -o /etc/yum.repos.d/kaia.repo https://packages.kaia.io/config/rhel/7/prod.repo
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
100 118 100 118 0 0 1113 0 --:--:-- --:--:-- --:--:-- 1102

Expand Down

0 comments on commit e19df2d

Please sign in to comment.