For the complete documentation index, see llms.txt. This page is also available as Markdown.

Coordinated Mining

Example arweave configuration for coordinated mining

  • When mining your Exit Node needs to have a valid wallet installed - see Node Wallet

  • For the following examples we will alway use En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI or Q5EfKawrRazp11HEDf_NJpxjYMV385j21nlQNjR8_pY as mining addresses. Replace them with your own address(es) before running the sample commands.

1. Overview

  • Please review the Coordinated Mining guide for more information

  • You are running a coordinated mining cluster with the following nodes:

    • Exit Node at IP:PORT 10.0.0.100:1984

    • Worker 1 at IP:PORT 10.0.0.101:1985

    • Worker 2 at IP:PORT 10.0.0.102:1986

  • You've downloaded and packed all your data to 16TB disks using the mining address En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI

  • Each miner has 4 partitions

  • You'll use one of the DHA-provided public VDF servers forwarded through your Exit Node

  • You'll use the publicly available NSFW filter provided by Shepherd

  • See the Coordinated Mining guiide and Running Your Node for more information

2. Sample Directory Structure

2.1 Exit Node Directory Structure

  • data_dir: /opt/data

2.2 Worker 1 Directory Strcuture

  • Mount point for 16TB disk that will store the packed data:

    • /mnt/a

  • data_dir: /opt/data

  • Storage module symlinks:

    • /opt/data/storage_modules/storage_module_0_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9 -> /mnt/a/storage_module_0_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9

    • /opt/data/storage_modules/storage_module_1_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9 -> /mnt/a/storage_module_1_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9

    • /opt/data/storage_modules/storage_module_2_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9 -> /mnt/a/storage_module_2_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9

    • /opt/data/storage_modules/storage_module_3_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9 -> /mnt/a/storage_module_3_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9

2.2 Worker 2 Directory Strcuture

  • Mount point for 16TB disk that will store the packed data:

    • /mnt/b

  • data_dir: /opt/data

  • Storage module symlinks:

    • /opt/data/storage_modules/storage_module_4_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9 -> /mnt/b/storage_module_4_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9

    • /opt/data/storage_modules/storage_module_5_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9 -> /mnt/b/storage_module_5_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9

    • /opt/data/storage_modules/storage_module_6_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9 -> /mnt/b/storage_module_6_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9

    • /opt/data/storage_modules/storage_module_7_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9 -> /mnt/b/storage_module_7_En2eqsVJARnTVOSh723PBXAKGmKgrGSjQ2YIGwE_ZRI.replica.2.9

3. Sample Configuration

Each node gets its own configuration, shown below in YAML, JSON, and command-line form. Run ./bin/arweave config help cm for more information on the coordinated mining options.

3.1 Exit Node Configuration

/opt/arweave/config.yaml:

Launch command:

/opt/arweave/config.json:

Launch command:

With the CLI form there is no config file - every option is passed as a flag, with list options as a single-quoted JSON value (see Command-line Flags for the value syntax). The pre-2.9.7 space-separated launch style also still works (Legacy Configuration). For example:

3.2 Worker 1 Configuration

/opt/arweave/config.yaml:

Launch command (the --port flag overrides any value in the configuration file):

/opt/arweave/config.json:

Launch command (the --port flag overrides any value in the configuration file):

With the CLI form there is no config file - every option is passed as a flag, with list options as a single-quoted JSON value (see Command-line Flags for the value syntax). The pre-2.9.7 space-separated launch style also still works (Legacy Configuration). For example:

3.3 Worker 2 Configuration

/opt/arweave/config.yaml:

Launch command:

/opt/arweave/config.json:

Launch command:

With the CLI form there is no config file - every option is passed as a flag, with list options as a single-quoted JSON value (see Command-line Flags for the value syntax). The pre-2.9.7 space-separated launch style also still works (Legacy Configuration). For example:

Last updated

Was this helpful?