- Get to know Teku a bit
- Server with 4 (v)cpus & 8 gb memory & 100 gb storage
- geth
- beacon (including validator)
- prometheus
- grafana
All services are enabled by default.
Please complete the steps on launchpad and store the generated files of ~/eth2.0-deposit-cli/validator_keys
in ./launchpad
.
- Generate your validator(s) using launchpad and complete the process
- Copy your generated validator(s) from
~/eth2.0-deposit-cli/validator_keys
to./launchpad
- Create the validator password files in
./launchpad
. For each validatorkeystore-m_123....json
key file a corresponding passwordkeystore-m_123....txt
file is required. The password file will need to be named to match the correlating keystore file.
Repeat these steps as often as you like, restart your validator to make it notice your new accounts!
- Copy
exit-account.yaml
to the project's root directory (this directory) - Run
./teku_validator_exit.sh name-of-keystore-without-extension
For instance: If a keystore file is keystore-m_12381_3600_0_0_0-123456789.json
then the command should be ./teku_validator_exit.sh keystore-m_12381_3600_0_0_0-123456789
The "Expect" needs to be installed to execute teku_validator_exit.sh
. Run apt-get install expect
to install expect
Run with (as deamon with "-d")
docker-compose up -d
or run only certain services (in this case only beacon)
docker-compose up -d beacon
Stop services (or everything) like this
docker-compose stop beacon
Shut down your services (or everything) like this:
docker-compose down
Please note: This will also erase your logs, they are stored with your containers and will be deleted as well.
Docker takes care of log files and log file rotation as well as limit (set to 10x100mb log files for each service). View logs of a certain service (in this case beacon, only the last 100 lines)
docker-compose logs --tail=100 beacon
Runs on http://localhost:9090, scrapes data of beacon and validator.
Grafana listens on http://localhost:3000 and uses the data provided by prometheus service.
Login with username admin
and password admin
(Grafana defaults), data source to Prometheus is already established and dashboards installed.
Edit the line with eth1-endpoint:
in ./config/teku/beacon.yaml and set your Ethereum 1 node URL, e. g. use it with Infura.io and make it look like this: eth1-endpoint: https://goerli.infura.io:443/v3/put-your-infura-id-here
.