validator-elector

command module
v0.0.0-...-e94066d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 19 Imported by: 0

README

validator-elector

validator-elector helps run a Celo validator on Kubernetes with automatic failover. You can use validator-elector to increase availability or enable rolling deployments.

Usage

Add a validator-elector container to run as a sidecar to each Pod running a Celo validator container. If the the Celo validator's current block is recent, the validator-elector sidecar will race to acquire a lock. The validator-elector container that successfully acquires the lock makes an JSONRPC request to the Celo validator to start validation.

The validator-elector periodically renews the lock. If the validator-elector fails to renew the lock (e.g., Node crash) within a default time period, other validator-elector containers can acquire the lock.

Before exit, a validator-elector will release the lock and make a JSONRPC request to the Celo validator to stop validation.

e2e has an example usage.

Testing

e2e/run.py

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL