RelayMiner Config

Set these in your full node's config:

# Set max_subscriptions_per_client  > (num_suppliers + num_relayminers)
max_subscriptions_per_client = <VALUE>

# Set max_open_connections > (2 * num_relayminers)
max_open_connections = <VALUE>

How to Calculate Scalable Values?

(Direct link to How to Calculate Scalable Values?): https://dev.poktroll.com/operate/configs/relayminer_config#how-to-calculate-scalable-values

Parameter
Formula
Explanation

max_subscriptions_per_client

> num_suppliers + num_relayminers

Each supplier requires 1 subscription + 1 for each RelayMiner's block events

max_open_connections

> 2 × num_relayminers

Each RelayMiner requires at least 2 connections for basic functionality.

Example Full Node Config Changes

(Direct link to Example Full Node Config Changes): https://dev.poktroll.com/operate/configs/relayminer_config#example-full-node-config-changes

1

Scenario 1: 1 RelayMiner managing N Suppliers

Example:

  • 1 RelayMiner managing 20 Suppliers

config.toml
2

Scenario 2: N RelayMiners w/ M Suppliers Each

Example:

  • RelayMiner 1: managing 2 Suppliers

  • RelayMiner 2: managing 3 Suppliers

  • RelayMiner 3: managing 1 Supplier

config.toml

Overhead Considerations

Always set these values higher than the calculated minimum to allow for:

  • Extra connections

  • Unexpected new subscriptions

For large deployments with many suppliers, do one of the following:

  • Increase these values substantially

  • Or, split RelayMiners across multiple RPC nodes

This helps maintain stability and performance as your system scales.

Was this helpful?