A highly available Tezos baker on Kubernetes

Limitation with current setup

Old design

Enter the active-standby baking node

  • if one node has an issue, switching over baking operations to the other one is much faster than in the cold standby case
  • automation is useful, but sometimes, you need to open a terminal into the baking node and perform manual operations (such as manual garbage collection). A switchover is an easy way to do maintenance without disrupting operations.
New design with active-standby baker

Switchover demo

tze-tezos-private-baking-node-self-0 is the leader
2021-01-22 23:01:25,454 INFO supervisord started with pid 6
We are now the leader, starting endorser
2021-01-22 23:01:55,234 INFO spawned: 'tezos-endorser' with pid 40
2021-01-22 23:01:56,266 INFO success: tezos-endorser entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tezos-endorser: started
$ kubectl delete pod tze-tezos-private-baking-node-self-1 -n tze
pod "tze-tezos-private-baking-node-self-1" deleted
We are now the leader, starting endorser
2021-01-26 03:59:43,273 INFO spawned: 'tezos-endorser' with pid 333796 2021-01-26 03:59:44,309 INFO success: tezos-endorser entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
tezos-endorser: startedNode is bootstrapped.
Endorser started.

Double baking protection

Load balancer acts as a single point of contact for both signers

Happy baking

--

--

--

Staking-as-a-service provider.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Changing the routing namespace in Laravel 8 like Laravel 7

iOS Multithreading Strategies For Beginners

Data Base Connection Through Python

A Case for Delta Live Table as the Workflow for Lakehouse — Integrating Source Data

Python Poetry Cheatsheet

How to backup and restore the ETCD in the Rancher cluster

Understanding Dictionary Datatype of Python Programming

Collaborative Project Management

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
MIDL.dev

MIDL.dev

Staking-as-a-service provider.

More from Medium

OPA as Kubernetes admission controller

Deepfence on the Kubernetes Podcast

cert-manager. self-signed CA. Where is a secret?

Initializing the Kubernetes Cluster on the master node.