Skip to main content

RPC upstreams failing over

A network's RPC endpoints fail over or run out: read which endpoint fails and why, fix it where the failing client reads it, and know when to escalate.

A single RPC failover is routine and needs no action. Act when calls exhaust every endpoint, when failovers keep climbing, or when a network has only one endpoint. Because two clients read endpoints from different sources, identify which client is failing first.

Two clients call a network's RPC endpoints (Endpoint failover and retries):

  • Transaction engine client: signs, sends and confirms queued transactions, and serves chain reads in the Platform API and runner. It reads only the deployment Helm values (edits on Platform networks do not reach it), ranks endpoints by its own success record, and exports dalp_chain_evm_rpc_* metrics labelled by chain_id and rpc_method. Start here when transactions stop going out.
  • RPC endpoint pool: serves the Platform API and indexer, including index rebuild reads. A platform administrator manages it on Platform networks. Only the indexer ranks it on health scores and emits network.rpc-pool logs and dalp_rpc_* metrics. The Platform API tries endpoints in listed order.

Access: Platform networks is visible to platform administrators only. Without that role, use metrics and logs or ask a platform administrator to read the card.

Symptoms

  • Transaction engine client metrics (chain_id, rpc_method):
    • dalp_chain_evm_rpc_attempts_total (rpc_upstream_id, outcome success or failure) names which endpoint fails (rpc_upstream_id is the SHA-256 hex digest of the endpoint URL in deployment values).
    • dalp_chain_evm_rpc_failovers_total counts moves to the next endpoint.
    • dalp_chain_evm_rpc_upstreams_exhausted_total counts calls that failed on their final endpoint after at least one failover (stays flat on single-endpoint networks).
  • The transaction engine logs persisted RPC upstream health unavailable; ranking on local outcomes only (category chain-evm.upstream-selection) when stored health scores are unreadable.
  • Indexer logs (category network.rpc-pool, each with network):
Log line
Level
Fields
RPC upstream failed over
Warning
upstream_id, method, attempt, reason
RPC failover occurred
Warning
from_upstream_id, to_upstream_id
RPC upstream excluded for lag
Warning
upstream_id, block_head_lag, max_block_head_lag
All RPC upstreams exhausted
Error
method, failure_count, upstream_count, survivor_count, excluded_by_health, excluded_by_tip_lag, excluded_by_local_liveness
RPC health-based upstream selection disabled; ranking falls back to configured order
Warning
reason_class
  • Exhausted indexer pool calls fail with All healthy RPC upstreams exhausted for network <name> (core.network.RPC_UPSTREAMS_EXHAUSTED), a retryable dependency error.
  • Indexer pool metrics (Service · RPC & Network Dependencies dashboard): dalp_rpc_failovers_total, dalp_rpc_upstreams_exhausted_total and dalp_rpc_admission_throttles_total (429 responses retried on the same endpoint).
  • Bundled alerts: RpcHealthSelectionDisabled (health-score ranking off for 15 minutes) and IndexerWebSocketHeadLatchedOffline (newHeads WebSocket down past 5 minutes for 1 minute).
  • Related runbooks: stopped indexing belongs to Ledger indexing stalled, and NativeBalanceFetchErrors belongs to Transactions waiting for funding.

Checks

  1. Match the failing transaction-engine endpoint. Read dalp_chain_evm_rpc_attempts_total for chain_id grouped by rpc_upstream_id and outcome. Match each rpc_upstream_id against the endpoint URLs in your deployment values by computing its SHA-256 without a trailing newline (redact any provider API keys before sharing):

    printf '%s' "$URL" | sha256sum

    A rising dalp_chain_evm_rpc_upstreams_exhausted_total confirms calls ran out of endpoints.

  2. Check indexer pool logs and tell failover from exhaustion. Search indexer pods for network.rpc-pool lines:

    kubectl -n dalp logs -l 'app.kubernetes.io/component in (indexer,indexer-rebuild)' --tail=500 \
      | grep -E 'RPC upstream|RPC failover|All RPC upstreams exhausted|RPC health-based'

    Rising dalp_rpc_failovers_total with flat dalp_rpc_upstreams_exhausted_total means backup endpoints absorb failures. Any All RPC upstreams exhausted line means calls ran out of endpoints.

  3. Inspect the network card. Open Platform admin → Platform networks and read each endpoint's badge (“Healthy”, “Unhealthy”, “Excluded” or “Not measured”), latency (<value>ms), error rate (<value>% errors) and exclusion reason. “Serving now” marks the highest-priority healthy endpoint. Readings older than 3 minutes show as “Not measured”.

  4. Check card-level notices. “Endpoint health cannot be read right now, so nothing below states whether an endpoint is reachable.” means health readings are unavailable. “The platform has not measured these endpoints yet.” means no readings exist yet. “Chain head unknown: no endpoint answered.” means no endpoint returned a block number.

  5. Read exhaustion fields. excluded_by_health and excluded_by_tip_lag show endpoints filtered by scores, excluded_by_local_liveness shows endpoints skipped after recent failures, and failure_count vs upstream_count shows how many endpoints failed during the call.

  6. Check for rate limiting. A rising dalp_rpc_admission_throttles_total confirms the provider returns 429 and the indexer pool retries on the same endpoint.

  7. Check RpcHealthSelectionDisabled causes. Read dalp_rpc_health_scores_unavailable_total by reason (timeout, query_failed, read_unavailable or scoreless). Until scores return, the indexer ranks by Priority then configured order without excluding lagging endpoints. RPC health-based upstream selection restored marks recovery.

Actions

  • Queued transactions fail on an endpoint: Fix the endpoint at the provider or replace it under the network's rpc entry in Helm values and run helm upgrade (Adding or changing a network). Edits on Platform networks do not update the transaction engine client.
  • Single-endpoint network: Add a second independent provider endpoint in deployment values so calls can fail over during outages.
  • One indexer pool endpoint fails or lags: Open Platform networks → Edit network → RPC endpoints. Record the current list first (no version history is stored), lower the failing endpoint's Priority or select Remove endpoint when another healthy endpoint exists, then select Save network. Note that endpoints added only in Console are not health-probed (“Not measured”) and are never auto-excluded.
  • Provider rate-limiting (429): Raise your provider quota or add an endpoint from another provider.
  • All endpoints excluded for lag on a healthy chain: Raise Max block-head lag under Endpoint health scoring if the chain's normal lag exceeds 50 blocks. The endpoint badges on the network card apply the new value. The transaction engine client keeps the built-in 50-block and 0.25 defaults.
  • Missing-state or pruned-history errors on old blocks: Switch to an archive-capable endpoint (What RPC provider does a rebuild need?).
  • Health scores unavailable: Restore the failing score source from Check 7, and temporarily give the most reliable endpoint the highest Priority.

Verify recovery

dalp_chain_evm_rpc_upstreams_exhausted_total and dalp_rpc_upstreams_exhausted_total stay flat, logs show no new All RPC upstreams exhausted lines, and Platform networks shows every kept endpoint as “Healthy”.

Escalate

Escalate to your DALP support contact when exhaustion counters keep climbing after your provider confirms endpoints are healthy, when RpcHealthSelectionDisabled persists, or when an endpoint shown as “Healthy” keeps failing calls. Include:

  • Network name and chain ID.
  • dalp_chain_evm_rpc_attempts_total by rpc_upstream_id and outcome, plus dalp_chain_evm_rpc_* and dalp_rpc_* counters for the window.
  • All RPC upstreams exhausted log lines with all fields.
  • Each endpoint's badge, latency, error rate and exclusion reason from Platform networks, alongside provider status.

How the indexer's pool picks an endpoint

The indexer uses health-score ranking when a network has multiple endpoints (at least one HTTP) and Score endpoint health is enabled (default). Otherwise it tries endpoints in configured order without emitting network.rpc-pool logs or dalp_rpc_* exhaustion counters.

  • Exclusion first: Leaves out endpoints that are unhealthy, score below Minimum score (0 to 1) (default 0.25) or trail head past Max block-head lag (default 50 blocks). If every endpoint is excluded, the pool still serves from them in ranked order rather than failing all calls.
  • Then priority: Highest Priority wins, then highest health score, then configured order.
  • Health score (0 to 1): Weights probe reachability (45%), head lag (25%), latency (20%, scoring zero at 5 seconds or more) and finalisation lag (10%) across endpoints listed in deployment values.
  • Penalty and stickiness: Failed endpoints are skipped for at least 1 second and penalised with Penalty half-life (ms) (default 60000). Within Min switch interval (ms) (default 60000), an equal-priority contender must beat the active endpoint by Switch hysteresis (0 to 1) (default 0.1).
  • Call budget: One call gets Maximum endpoint attempts (default 32) within Request deadline (ms) (default 120000), with RPC retries (default 3) per endpoint. eth_sendRawTransaction is not retried on the same endpoint by default, though it still fails over to the next candidate.