Skip to content

Commit 976c7af

Browse files
committed
Update docs
1 parent 5bd1ce4 commit 976c7af

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

docs/infrastructure/configuration/data-retention/getting-full-history-data-with-clio.md renamed to docs/infrastructure/configuration/data-retention/get-full-history-data-with-clio.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ labels:
55
- Clio Server
66
- Data Retention
77
---
8-
# Getting Full History Data with Clio
8+
# Get Full History Data with Clio
99

1010
This page describes how to access full XRP Ledger history data with the [Clio](../../../concepts/networks-and-servers/the-clio-server.md) server.
1111

1212
Clio stores the full XRP Ledger history in a publicly accessible [AWS S3](https://aws.amazon.com/s3/) bucket. This data enables Clio to serve requests that require complete historical context. Ledger data is uploaded automatically to the S3 bucket on a daily basis to ensure you always have access to the latest full history up to the current day.
1313

1414
## Prerequisites
1515

16-
To proceed with this tutorial you need:
17-
18-
- A Clio server installed. To learn more about how to build and compile Clio, see [Install Clio on Ubuntu Linux](../../installation/install-clio-on-ubuntu.md).
16+
- Ensure you have the Clio server installed. To learn more about how to build and compile Clio, see [Install Clio on Ubuntu Linux](../../installation/install-clio-on-ubuntu.md).
1917
{% admonition type="info" name="Note" %}
2018
You need to add `-o snapshot=True` at the `conan install` build step to build the Clio server with the full history feature.
2119
{% /admonition %}
@@ -24,20 +22,26 @@ To proceed with this tutorial you need:
2422

2523
## Download Full History Data from S3
2624

27-
To download the full XRP Ledger history data on your machine, run the following command in a terminal:
25+
Before you can run the Clio server, you need to download the full XRP Ledger history data on your machine or environment. In a directory of your choosing, run the following command in a terminal:
26+
27+
```sh
28+
aws s3 sync s3://full-history-ledger-data/Full-History . --no-sign-request
29+
```
2830

29-
`aws s3 sync s3://full-history-ledger-data/Full-History . --no-sign-request`
31+
The command uses the `--no-sign-request` flag since the bucket is **public**, so you don't need AWS credentials to access it. The data is stored in the [EU-West (eu-west-2)](https://docs.aws.amazon.com/global-infrastructure/latest/regions/aws-regions.html) region, and due to its large size, the sync process can be slow.
3032

31-
The command uses the `--no-sign-request` flag since the bucket is public, so you don't need AWS credentials to access it. The data is stored in the [EU-West (eu-west-2)](https://docs.aws.amazon.com/global-infrastructure/latest/regions/aws-regions.html) region, and due to its large size, the sync process can be slow.
33+
To speed up the transfer, you can increase the number of concurrent AWS requests by setting the [`AWS_MAX_CONCURRENT_REQUESTS`](https://awscli.amazonaws.com/v2/documentation/api/latest/topic/s3-config.html#max-concurrent-requests) environment variable to an appropriate value for you system. For example:
3234

33-
{% admonition type="success" name="Tip" %}
34-
To speed up the transfer, consider increasing the number of concurrent requests by setting `export AWS_MAX_CONCURRENT_REQUESTS=64`, or a request value that is appropriate for you.
35-
{% /admonition %}
35+
```sh
36+
export AWS_MAX_CONCURRENT_REQUESTS=64
37+
```
3638

37-
Once the sync completes, your local directory should contain a structure similar to the example shown below:
39+
Once the sync completes, your directory should contain a structure similar to the example shown below:
3840

3941
![Clio history files](../../../img/clio-history.png)
4042

43+
Take note of the directory where you downloaded the ledger data, as you will need it for the next steps.
44+
4145
## Start Clio with Full History
4246

4347
To start the Clio server with full history:
@@ -50,9 +54,8 @@ To start the Clio server with full history:
5054
--path=<path_to_full_history_folder>
5155
```
5256

53-
This command starts a lightweight server that exposes the snapshot data over gRPC and WebSocket, and acts as a data source for Clio when it's running in full history mode.
54-
2. Start the Clio server, along with the database backend (e.g., ScyllaDB or Cassandra).
55-
3. Make sure to adjust your Clio configuration file to properly connect to the snapshot server, starting with the `etl_sources` field, which should match `grpc_server` address that you used in **step 1**:
57+
This command starts a lightweight [Go](https://github.com/XRPLF/clio/tree/develop/tools/snapshot) server that exposes the snapshot data over gRPC and WebSocket, and acts as a data source for Clio when it is running in full history mode.
58+
2. Make sure to adjust your Clio configuration file to properly connect to the snapshot server, starting with the `etl_sources` field, which should match `grpc_server` address that you used in **step 1**:
5659

5760
```json
5861
"etl_sources": {
@@ -61,7 +64,7 @@ To start the Clio server with full history:
6164
"grpc_port": "50052"
6265
}
6366
```
64-
4. Set the `start_sequeunce` and `end_sequence` to define the ledger range that you want. For example:
67+
3. Set the `start_sequeunce` and `end_sequence` to define the ledger range that you want. For example:
6568

6669
```json
6770
{
@@ -75,3 +78,5 @@ To start the Clio server with full history:
7578
{% admonition type="info" name="Note" %}
7679
You can find the actual start and end sequence in the `manifest.txt` file located in the root of your synced `Full-History` directory. It is formatted as `start_sequence | end_sequence`.
7780
{% /admonition %}
81+
4. Start the Clio server, along with the relevant database backend (e.g., ScyllaDB or Cassandra).
82+

sidebars.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@
645645
expanded: false
646646
items:
647647
- page: docs/infrastructure/configuration/data-retention/configure-full-history.md
648-
- page: docs/infrastructure/configuration/data-retention/getting-full-history-data-with-clio.md
648+
- page: docs/infrastructure/configuration/data-retention/get-full-history-data-with-clio.md
649649
- page: docs/infrastructure/configuration/data-retention/online-deletion.md
650650
- page: docs/infrastructure/configuration/data-retention/configure-online-deletion.md
651651
- page: docs/infrastructure/configuration/data-retention/configure-advisory-deletion.md

0 commit comments

Comments
 (0)