Sentry & RPC Node Setup
Detailed configuration guide for sentry nodes and RPC/API nodes
This document describes a recommended example configuration. In production, you should adjust the node architecture and settings based on your traffic volume, security requirements, and budget.
Network Architecture
| Layer | Node | Role |
|---|---|---|
| External | RPC Node (A, B) | External service API, full indexing |
| Middle | Sentry Node | DDoS protection, peer relay, IBC Relayer (Hermes) |
| Internal | Validator | Block signing (pex=false, connects only to Sentry) |
| IBC | External Chains | Cross-chain connections via Sentry |
Traffic flow: External Services → RPC → Sentry → Validator
Sentry Node Configuration
The sentry node is a DDoS protection layer that shields the validator from external networks.
config.toml
pex = true
persistent_peers = "<VALIDATOR_NODE_ID>@<VALIDATOR_IP>:26656"
# Do not expose the validator address to external peers
private_peer_ids = "<VALIDATOR_NODE_ID>"app.toml
# Keep only minimal state
pruning = "everything"
# Disable API (handled by RPC node)
[api]
enable = falseThe Hermes IBC relayer can be co-located on the sentry node, eliminating the need for a separate server. If traffic increases, separate it to a dedicated server.
RPC/API Node Configuration (Service-Optimized)
The RPC node is the core of external service integration, maintaining full history and indexing.
config.toml
[tx_index]
indexer = "kv" # Required for TX queries
[rpc]
laddr = "tcp://0.0.0.0:26657"
max_open_connections = 1000 # External service connections
max_subscription_clients = 200
max_subscriptions_per_client = 50
timeout_broadcast_tx_commit = "30s"
# WebSocket (for real-time block/TX detection)
experimental_subscription_buffer_size = 2000
experimental_websocket_write_buffer_size = 2000app.toml
# Keep full history
pruning = "nothing"
[api]
enable = true
swagger = true
max-open-connections = 1000
[grpc]
enable = true
address = "0.0.0.0:9090"
[state-sync]
snapshot-interval = 2000Node Configuration Summary
| Setting | Validator | Sentry | RPC |
|---|---|---|---|
| pex | false | true | true |
| pruning | custom | everything | nothing |
| API | disabled | disabled | enabled (0.0.0.0) |
| gRPC | localhost | localhost (Hermes) | enabled (0.0.0.0) |
| RPC | localhost | localhost | 0.0.0.0 (External) |
| Indexer | null | null | kv |
Service Integration Checklist
| Item | Status | Notes |
|---|---|---|
| TX Indexing | ✅ kv configured | Maintained on RPC node |
| REST API | ✅ Enabled | Enabled on RPC node only |
| gRPC | ✅ Enabled | Required for SDK integration |
| WebSocket | ⚙️ Configuration needed | Buffer size increased |
| Swagger docs | ✅ Enabled | API documentation |
| State-sync snapshot | ✅ 2000 | Fast sync for new nodes |