#Getting started making a custom add-on to run etcd on the HA Green?

1 messages · Page 1 of 1 (latest)

earnest blaze
#

I have an HA Green that is mostly idle since I run most add-ons on two other minipc servers. I am looking to set up some high(er) availability services and am looking to support etcd quorum across the required three nodes... I am wondering where to start reading up on HA addons so that I can figure out the best way to spin up a docker addon that is just etcd running on the green for three-node quorum requirements (kinda how I do run the uptimekuma addon on the green as well to alert if the minipcs go down).

TL;DR How can I make the simplest add-on that will allow me to easily run etcd on my HA Green, and then start adding sensors around etcd stats, etc...

hidden slate
#

Not sure it's related to addons (which are essentially docker containers), it would need to be built at the OS, however etcd to my understanding is a key/value store, so what you would really be looking for is a distributed file system like ceph.

earnest blaze
#

@hidden slate I am looking to (ab)use the add-on system to run a dockerized etcd (I need full etcd as it requires running on a minimum of three nodes to survive a single node failure - so the green can be my 3rd node)

hidden slate
#

and do what with it?, run etcd to replicate key/value stores? HA is an app that runs in a singular instance

earnest blaze
#

It would talk to the other two nodes running etcd and if one failed would agree with the remaining node to allow it to remain active. This is really just a way to get more use out of the green while learning about addons. Some folks run their 3rd etcd instance on an old raspberry pi.

#

Everyone's up, everyone's up everyone's up, I see node 1 down, yes so do I, ok, keep serving whatever you're serving, we agree it's 1 that's down

hidden slate
#

And how would the application know that?, or how is a key/value store of any benefit to HA?

earnest blaze
#

It has absolutely nothing to do with ha other than getting it running on the green, and in the future, could provide useful stats in HA

hidden slate
#

There is no concept of High Availability in Home Assistant, the best you can do is backup and restore in case of failure

earnest blaze
#

This question really boils down to how do I run an arbitrary docker container as an addon, the write your own addon guide starts pretty deep

hidden slate
#

If that doesn't help look at the HA published addons and the Community ones

frank aspen
#

There's a portainer addon to run random docker containers but it will likely make your system unhealthy as HAOS does not really support that.
Had you any other hardware I would have suggested using debian instead of HAOS and simply running HA core and whatever else you want in docker containers that you control.
If you want help with developing addons then there's #developers.
If you have many Mini PCs you can run HAOS as a VM and have HA via the hypervisor. I use Proxmox VE for example.

earnest blaze
#

hmmm... I see "then there's 🔒 ⁠No Access."

#

I read about the portainer addon, but couldn't find it... hmm

frank aspen