---
description: Components for running a validator node and monitoring validator behavior
---

# Validator Node Architecture

The system architecture of a validator node on the Energy Web Chain is made up of two components:&#x20;

1. [The OpenEthereum Client](#openethereum-client)
2. [Telemetry monitoring system](#telemetry-monitoring-system)

Together these two components allow validators to run a local node of the chain, validate transactions, seal blocks, and monitor validator behavior and metrics.&#x20;

## OpenEthereum Client

A client is software that allows you to run a local node on your machine and interact directly with the blockchain. Every validator must run a full node in order to participate in validation.&#x20;

Remember that the Energy Web Chain is derived from the Ethereum blockchain. Because of this we use an Ethereum client to connect with the chain called [OpenEthereum](https://openethereum.github.io/). Anyone can create a client, as long as it implements the protocols laid out in [Ethereum’s yellow paper](https://ethereum.github.io/yellowpaper/paper.pdf), and there are a number of Ethereum clients to choose from.&#x20;

Energy Web uses the OpenEthereum client because it supports the [Authority Roundtable (AuRa)](https://openethereum.github.io/Aura), which is a consensus algorithm specifically for Proof-ofAuthority blockchains. **OpenEthereum allows validators to connect to the chain, collect transactions and seal blocks according the AuRa consensus algorithm.**

&#x20;To read more about OpenEthereum, you can [visit their wiki.](https://openethereum.github.io/index)

To read more about Ethereum clients, see the [Ethereum documentation.](https://ethereum.org/en/developers/docs/nodes-and-clients/)&#x20;

## Telemetry Monitoring system&#x20;

The monitoring system collects comprehensive, real-time data and metrics on validator performance and provides a user interface for viewing the data. It is  important  to gather as much data about the validator nodes as possible in order to ensure a secure and performant blockchain. To do so, we rely on well established industry solutions to transfer these metrics off the validator node to protect the sensitive nature of the data.&#x20;

**The use of the telemetry monitoring system is opt-in.** Validators can disable it if they have their own monitoring system in place that allows for real time tracking of all relevant metrics.

### Telemetry Architecture

There are four components involved in the data collection process:

* [OpenEthereum](https://openethereum.github.io/index) client - monitors validator node behavior
* [Telegraf](https://docs.influxdata.com/telegraf/v1.10/): open-source server agent that collects data from the OpenEthereum client
* [InfluxDB](https://docs.influxdata.com/influxdb/v1.7/) - open source database that stores the data collected from Telegraf
* [Grafana](https://grafana.com/docs/) - data visualization tool that queries the InfluxDB for data and provides graphical interface for data visualization

All components are run in separate docker containers managed by docker compose. For additional information on docker visit: [https://docs.docker.com/](https://docs.docker.com/) and [https://docs.docker.com/compose/](https://docs.docker.com/compose/).

![](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_pXALj14Egb-5Bal_p%2F-MhK0GRPXkCd6YXk4qa6%2F-MhK4tyNCi83QsHP6nLP%2FScreen%20Shot%202021-08-17%20at%201.09.16%20PM.png?alt=media\&token=334f30e5-ef71-4f95-9b08-6d67d3d9cf8e)

### Data Collection Process Overview

1. The OpenEthereum client collects data on the validator node. Collected data includes:
   * CPU usage
   * Memory usage
   * Disk usage
   * Number of connected peers
   * List of visible P2P peers
   * Current block
   * Network latency to 3 different and major locations (e.g. cloudflare, google, amazon)
   * Network throughput
   * Network error rate
   * Number of SSH keys
   * Service status for SSH, docker and the parity container
   * SHA256 hashes of key system components/binaries
   * Current chain specification file (or hash)
2. Telegraf collects relevant metrics from the host machine and the custom-built OpenEthereum metrics collector. The metrics collector allows Telegraf to receive the metrics from the OpenEthereum client
3. The collected metrics are stored in an InfluxDB database and can be visualized using Grafana
