Skip to main content

1. Setting Up a Geth Archive Node

To run a Geth archive node, use --gcmode=archive instead of --gcmode=full. This ensures that Geth retains all historical blockchain state data, making it ideal for indexing services and blockchain analytics.
  • --syncmode=full: Ensures a complete blockchain sync.
  • --gcmode=archive: Retains full historical state data without pruning.

2. Enabling RPC (HTTP) and WebSocket in Geth

HTTP (RPC) Options

WebSocket (WS) Options

These configurations ensure external applications can interact with the Geth node using both HTTP-RPC and WebSocket.

3. Monitoring Geth and DATA Foundation

Geth Monitoring Configuration

  • --metrics: Enables Prometheus-compatible metrics for Geth.
  • --metrics.addr=0.0.0.0: Binds the metrics server to all interfaces.
  • --metrics.port=6060: Exposes metrics on port 6060.

DATA Foundation Monitoring

  • Modify config.toml and set:
  • The default Prometheus metrics port for DATA Foundation is 26660.
With these settings, both Geth and DATA Foundation expose monitoring metrics that can be collected using Prometheus and visualized with Grafana.