Skip to content

Add Multi-RPC Round-Robin Support for cortensord#211

Open
cortensor-ryuma wants to merge 1 commit intomainfrom
dev-stable
Open

Add Multi-RPC Round-Robin Support for cortensord#211
cortensor-ryuma wants to merge 1 commit intomainfrom
dev-stable

Conversation

@cortensor-ryuma
Copy link
Contributor

@cortensor-ryuma cortensor-ryuma commented Feb 5, 2026

This PR adds optional support for using multiple RPC endpoints in cortensord with simple round-robin rotation, configurable via env vars:

ENABLE_MULTIPLE_RPC_HOST=1
NUM_RPC_HOST=10

RPC_HOST_0=...
RPC_HOST_1=...
RPC_HOST_2=...
RPC_HOST_3=...
RPC_HOST_4=...
RPC_HOST_5=...
RPC_HOST_6=...
RPC_HOST_7=...
RPC_HOST_8=...
RPC_HOST_9=...

When ENABLE_MULTIPLE_RPC_HOST=1, cortensord will rotate across RPC_HOST_0..RPC_HOST_{N-1} for on-chain calls.

If disabled (or unset), behavior falls back to the existing single-RPC config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant