You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/devs/validators/run-full-node.mdx
+243-4Lines changed: 243 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,260 @@ import { Callout } from 'nextra/components'
4
4
5
5
> How to become a Validator on Allora
6
6
7
-
This guide provides instructions on how to run a full node for the Allora network. There are two primary methods for running an Allora node: using `docker compose` (preferred) or using a [script](https://github.com/allora-network/allora-chain/blob/main/scripts/l1_node.sh). It's important to choose the method that best suits your environment and needs.
7
+
This guide provides instructions on how to run a full node for the Allora network. There are two primary methods for running an Allora node: using systemd with cosmosvisor for easier upgrade management (recommended) or using docker compose. It's important to choose the method that best suits your environment and needs.
8
8
9
9
***
10
10
11
11
## Prerequisites
12
12
13
13
- Git
14
-
-Docker with `docker compose`
14
+
-Go (version 1.21 or later)
15
15
- Basic command-line knowledge
16
+
- Linux/Unix environment with systemd
17
+
- curl and jq utilities
16
18
17
19
***
18
20
19
-
## Method 1: Using `docker compose` (Recommended)
21
+
## Method 1: Using systemd with cosmosvisor (Recommended)
20
22
21
-
Running the Allora node with `docker compose` simplifies the setup and ensures consistency across different environments.
23
+
Running the Allora node with systemd and cosmosvisor provides production-grade reliability and easier binary upgrade management. This is the recommended approach for validators and production environments.
24
+
25
+
### Step 1: Install cosmosvisor
26
+
27
+
First, install cosmosvisor, which will manage binary upgrades:
28
+
29
+
```shell
30
+
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
31
+
```
32
+
33
+
Verify the installation:
34
+
35
+
```shell
36
+
cosmovisor version
37
+
```
38
+
39
+
### Step 2: Install allorad Binary
40
+
41
+
Download the latest `allorad` binary from the releases page:
42
+
43
+
1. Navigate to the [Allora Chain Releases page](https://github.com/allora-network/allora-chain/releases/latest).
44
+
2. Download the `allorad` binary appropriate for your operating system (e.g., `allorad-linux-amd64`, `allorad-darwin-amd64`).
45
+
3. Rename and move the binary to a standard location:
46
+
47
+
```shell
48
+
# Rename the downloaded binary
49
+
mv ./allorad-linux-amd64 ./allorad # Adjust filename as needed
50
+
51
+
# Move to system path
52
+
sudo mv ./allorad /usr/local/bin/allorad
53
+
54
+
# Make executable
55
+
sudo chmod +x /usr/local/bin/allorad
56
+
```
57
+
58
+
### Step 3: Initialize the Node
59
+
60
+
Initialize your node (replace `<your-moniker>` with your desired node name):
**Security Note**: `DAEMON_ALLOW_DOWNLOAD_BINARIES` is set to `false` for security. Validators should manually place upgrade binaries in the appropriate directories.
**Info**: cosmosvisor will automatically switch to the new binary at the upgrade height specified in the governance proposal. Monitor governance proposals and prepare upgrade binaries in advance.
254
+
</Callout>
255
+
256
+
***
257
+
258
+
## Method 2: Using `docker compose`
259
+
260
+
Running the Allora node with `docker compose` simplifies the setup and ensures consistency across different environments, but requires manual upgrade management.
0 commit comments